RHEL and Ldap authentication

Posted on 2011-09-08
Last Modified: 2012-05-12
I have configured my RHEL server to authenticate to AD 2008.  wbinfo -u and finger username all work fine, no errors in joining domain, but when I try to ssh it fails.  The only think i see that could possibly be of use is in the /var/log/secure, stating:

 error: Could not get shadow information for USERNAME

Any ideas?
Question by:Elemental12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3

Expert Comment

ID: 36504676
try running pwck and make sure the login shell and home directory exist
LVL 10

Expert Comment

ID: 36504760
shadow information is the password, I guess.

Author Comment

ID: 36505011
I ran pwck, and it said pwck: no changes.  I am not sure what your shadow information comment means abbright.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Expert Comment

ID: 36508772
I mean that while your configuration allows for the retrieval of user data it seems not to work for the password information in AD. As Active Directory does not provide clear text password you may need to configure the authentication mechanism separately (PAM, Kerberos, ...).

Author Comment

ID: 36510190
How do I configure that ?

Also, if I do USERNAME@DOMAIN.COM, I can authenticate just fine.  Also, wbinfo -u works just fine, as well as id USERNAME.  So I can definitely auth and read from AD.  Almost seems like ssh is the one with the issue ?
LVL 10

Expert Comment

ID: 36510215
Ok, this looks like the authentication-packages does not know / use the information about the domain.
Maybe the option "winbind use default domain = yes" helps (see

Author Comment

ID: 36510250
  workgroup = DOMAIN
   password server = DC1.DOMAIN.COM DC2.DOMAIN.COM
   realm = DOMAIN.COM
   security = ads
   idmap uid = 10000000-4000000000
   idmap gid = 10000000-4000000000
   template shell = /bin/bash
   winbind use default domain = true
   winbind offline logon = true

This is part of my smb.conf file.

Accepted Solution

Elemental12 earned 0 total points
ID: 36510727
Fixed it.  In the sshd_config, the UsePam was set to no for some reason.  Set it to yes and then service sshd restart, and it is working.


Author Closing Comment

ID: 36534679
problem was in the sshd_config.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question