Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ASCEND) alternative to /etc/passwd



> from scanning through the mail archive, this question seems to be a bit of
> an old chestnut, but there doesn't seem to be a definitive answer there.
> I'd like to run radius and use the password = "UNIX" attribute in the users
> file, but I'd like to use a file other than /etc/passwd for this. On the
> Ascend site it says edit /etc/nsswitch.conf. What entry should you change
> or add in this file to specify another file?

I looked through the code and it (livingston/Ascend radius) and it uses
getpwnam which on Linux/BSD/Solaris at least is hardcoded to /etc/passwd
(unless there is some header file somewhere I don't know about).

You could write your own version of getpwnam to take a second character
string of a password file location and then replace getpwnam in the
source code.

nsswitch.conf is for NIS/NIS+ which I don't think would do what you are
trying to do here.  

R. Marc 


++ Ascend Users Mailing List ++
To unsubscribe:	send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd:	<http://www.nealis.net/ascend/faq>


Follow-Ups: References: