[29193] in Kerberos

home help back first fref pref prev next nref lref last post

How to determine the authentication domain of a user ?

daemon@ATHENA.MIT.EDU (vasantha.prabhu)
Wed Feb 6 23:00:23 2008

From: "vasantha.prabhu" <gaurab.paul@gmail.com>
Date: Wed, 6 Feb 2008 19:47:34 -0800 (PST)
Message-ID: <481ddda1-d50b-47e9-a926-9967466fe5fe@b2g2000hsg.googlegroups.com>
Mime-Version: 1.0
X-Complaints-To: groups-abuse@google.com
Complaints-To: groups-abuse@google.com
To: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

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
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post