Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-04-2011, 08:19 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Angry getent shadow works but getent passwd does not???

Hello guys,

I have been working on Kerberos and Ldap Authentication on SUSE 11.3.

I was successful with Kerberos authentication and had no issue. then i moved to configure LDAP as i want to configure this authentication method for APACHE server.

Now after configuring ldap and pam, I am able to check the command 'getent shadow' with no issue and this command lists all the users of that OU too. but when i try getent passwd or getent group , it results nothing but local users.

I have been stuck at this place and cannot move forward.

How can it return the shadow but does not return the passwd option.

your help will be much appreciated.

Old 04-04-2011, 09:06 AM   #2
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 404

Rep: Reputation: 73

Try using getent with a specified (existing LDAP user name).

getent passwd valid_ldap_user
This is the new behaviour on RHEL6.
There should be a configuration directive somewhere on LDAP or nsswitch to restore the old behaviour of RHEL5 and previous.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu karmic nis client 'ypcat shadow.byname' works, but 'getent shadow' fails casterln Linux - Networking 1 03-06-2010 02:47 AM
getent passwd problems carlos23 Linux - Server 1 01-24-2009 02:17 AM
getent passwd not showing some users dmusil Linux - Software 0 05-14-2008 01:20 PM
getent passwd only pulls local info - getent group works? epoh Linux - Server 2 03-14-2008 08:56 AM
getent passwd and wibinfo -u not working bahadur Linux - Networking 0 06-14-2004 01:20 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration