How to distinguish LDAP account from local account

This is a discussion on How to distinguish LDAP account from local account within the Linux Security forums, part of the System Security and Security Related category; Hi, I have my system's PAM configured to authenticate through LDAP. I need a way, given an account or ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2003
Xin Li
 
Posts: n/a
Default How to distinguish LDAP account from local account

Hi,

I have my system's PAM configured to authenticate through LDAP. I
need a way, given an account or group, to figure out two things:

A) Is the account or group a local account or a remote LDAP account
B) Is there a local account or group that shares the same name?

Any help would be greatly appreciated. Thanks.

Xin Li
Reply With Quote
  #2 (permalink)  
Old 10-22-2003
[Sauron De Mordor]
 
Posts: n/a
Default Re: How to distinguish LDAP account from local account



Xin Li wrote:

> Hi,
>
> I have my system's PAM configured to authenticate through LDAP. I
> need a way, given an account or group, to figure out two things:
>
> A) Is the account or group a local account or a remote LDAP account
> B) Is there a local account or group that shares the same name?
>
> Any help would be greatly appreciated. Thanks.
>
> Xin Li


in file /etc/nsswitch.conf

see order, if file nisplus nis ldap ....

Reply With Quote
  #3 (permalink)  
Old 10-22-2003
dkoleary@attbi.com
 
Posts: n/a
Default Re: How to distinguish LDAP account from local account

Xin Li <xinli1@illinoisalumni.org> wrote:

> A) Is the account or group a local account or a remote LDAP account
> B) Is there a local account or group that shares the same name?


grep ${user} /etc/passwd
grep ${group} /etc/group

??

Doug

--------
Senior UNIX Admin
O'Leary Computer Enterprises
dkoleary@attbi.com (w) 630-904-6098 (c) 630-248-2749
resume: http://home.attbi.com/~dkoleary/resume.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0