Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to determine the authentication domain of a user ?

Reply
Thread Tools Display Modes

How to determine the authentication domain of a user ?

 
 
vasantha.prabhu
Guest
Posts: n/a

 
      02-07-2008, 02:51 AM
Hi,

Suppose if there are two user accounts with the same name (vprabhu on
local (i.e. files) as well as NIS), then /etc/nsswitch.conf determines
which domain to authenticate against. However, depending on the OS
(for example authconfig settings in linux) can alter the nsswitch.conf
procedure.

For example,

cat /etc/nsswitch.conf|grep passwd
passwd: nis files

then if vprabhu logs in it will be authenticated against NIS. However,
if authconfig settings are "Local authorization is sufficient" is ON,
it will authenticate against FILES.

Now, given this situation, how do we reliably know against which
domain (local/NIS) a user has authenticated against while logging in ?
If there is a POSIX API or portable API or even OS commands across
major UNIX versions please let us know.

Thanks
 
Reply With Quote
 
 
 
 
goarilla@work
Guest
Posts: n/a

 
      02-07-2008, 02:32 PM
vasantha.prabhu wrote:
> Hi,
>
> Suppose if there are two user accounts with the same name (vprabhu on
> local (i.e. files) as well as NIS), then /etc/nsswitch.conf determines
> which domain to authenticate against. However, depending on the OS
> (for example authconfig settings in linux) can alter the nsswitch.conf
> procedure.
>
> For example,
>
> cat /etc/nsswitch.conf|grep passwd
> passwd: nis files
>
> then if vprabhu logs in it will be authenticated against NIS. However,
> if authconfig settings are "Local authorization is sufficient" is ON,
> it will authenticate against FILES.
>
> Now, given this situation, how do we reliably know against which
> domain (local/NIS) a user has authenticated against while logging in ?
> If there is a POSIX API or portable API or even OS commands across
> major UNIX versions please let us know.
>
> Thanks


cat /etc/HOSTNAME ?
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New user authentication over wireless msteinhoff Wireless Networks 6 02-18-2009 11:34 PM
Can we do without user authentication? Al Blake Wireless Networks 5 10-12-2004 05:53 PM
CIPE user authentication Ann Linux Networking 0 05-04-2004 11:43 PM
Netatalk+Mysql user Authentication Daniel Linux Networking 0 09-08-2003 02:57 PM
Wireless User Authentication using Linux? Jim Reynolds Linux Networking 3 08-07-2003 07:01 PM



1 2 3 4 5 6 7 8 9 10 11