LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2017, 03:20 PM   #1
bluforce
Member
 
Registered: Apr 2012
Posts: 51

Rep: Reputation: Disabled
RHEL 7 getent passwd not working for LDAP


Guys,
In RHEL 6 we used to be able to see if a user had a LDAP account by typing:

Code:
getent passwd | grep -i username
We could enter the last few letters of their last name to be able to tell. Now, I cannot get this command to work in RHEL 7. Are there any alternatives for RHEL 7?

Thanks
 
Old 07-12-2017, 07:54 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,320
Blog Entries: 13

Rep: Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372Reputation: 4372
getent should be there in RHEL7 and I thought it was part of glibc-common or just part of glibc

Given that you're using RHEL, at the very least you could ask RedHat Support the details of this, but first I'd try to find and install getent. I even see some source of it where you can just download, make, and install it.
 
Old 07-12-2017, 11:18 AM   #3
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
I'm assuming you're using sssd for LDAP. If so, then try adding 'enumerate = True' to the LDAP section in the /etc/sssd/sssd.conf file and restart sssd.

By default, sss doesn't enumerate, so getent will only show local information. If you set enumerate to true, then getent should list the LDAP users.
 
  


Reply


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
openLDAP: getent passwd doesn't show ldap users Xplosive Linux - Server 1 02-08-2013 11:49 AM
getent passwd only pulls local info - getent group works? epoh Linux - Server 2 03-14-2008 07:56 AM
nss_ldap not working (getent passwd) WindowBreaker Slackware 2 06-27-2006 02:19 AM
getent passwd and wibinfo -u not working bahadur Linux - Networking 0 06-14-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 PM.

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