On Fri, 19 Jul 1996, Kaare Digernes wrote:
> Can I add my own custom fields? Is it the comma
> that ends the record?
Yes, but you have to modify the dictionary file also. I've added 2 to
ours.
> Can I have default template/user that the other
> will get their settings from? It's a little awkward
> to duplicate the settings in each record. :-/
You can add them with a script. Another possibility (I'm just finishing
implementing it now on our system) is to modify the users.c file so that
it adds a template to the end of the user's entry. The funtion to look at
is user_find().
What I did was add a new attribute Shore-Acct-Prefixes that takes a string
parameter, like "CPS ". If the entry for username has this in it, it will
match "Pusername" and apply the entry it finds under "P" as a template.
It will also match "username" and apply the entry "SHELL" as a template.
To apply a template, it adds the attributes in the template iff they do
not already exist in the username record. That way you can override the
template if you want.
Steven P. Crain scrain@shore.net
Unix Administration and Programming
North Shore Access
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Finger me for a public key.
iQB1AwUBMfFCSo0DAXSiDippAQFMUAMAj+m1SxCO0W/imP7cKFk7CAeXfYvdtqPz
gZpPD/5GDL2wZeQKFzKH1L1cEUEb052tQiCKBd9H28kx2zrtmgiiH+rM4pYtwASD
NFFL614O5mOEYqKFoHIS/JEatwkMzYUl
=qF9w
-----END PGP SIGNATURE-----