UNIX: How do we determine the domain against which an user has logged in ?
- From: vasantha.prabhu@xxxxxxxxx
- Date: Wed, 6 Feb 2008 06:42:39 -0800 (PST)
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
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.
- Prev by Date: Re: Looking for best practice guide for sendmail
- Next by Date: Download 18 Movies And 18 Games All Direct Download Links, No Rapidshare & Megaupload Links
- Previous by thread: Looking for best practice guide for sendmail
- Next by thread: Download 18 Movies And 18 Games All Direct Download Links, No Rapidshare & Megaupload Links