Solved

RHEL and Ldap authentication

Posted on 2011-09-08
9
710 Views
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?
0
Comment
Question by:Elemental12
[X]
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
9 Comments
 
LVL 8

Expert Comment

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

Expert Comment

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

Author Comment

by:Elemental12
ID: 36505011
I ran pwck, and it said pwck: no changes.  I am not sure what your shadow information comment means abbright.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 10

Expert Comment

by:abbright
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, ...).
0
 

Author Comment

by:Elemental12
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 ?
0
 
LVL 10

Expert Comment

by:abbright
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 http://www.ccs.neu.edu/home/battista/articles/winbind/winbind.html).
0
 

Author Comment

by:Elemental12
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.
0
 

Accepted Solution

by:
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.

Thanks
0
 

Author Closing Comment

by:Elemental12
ID: 36534679
problem was in the sshd_config.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

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…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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