Bug 114509 - sshd fails authentication with pam_ldap
Summary: sshd fails authentication with pam_ldap
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-28 21:46 UTC by Glen Eustace
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-30 01:26:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
nsswitch (1.66 KB, text/plain)
2004-01-28 21:49 UTC, Glen Eustace
no flags Details
ldap.conf (764 bytes, text/plain)
2004-01-28 21:54 UTC, Glen Eustace
no flags Details
system-auth (1011 bytes, text/plain)
2004-01-28 21:55 UTC, Glen Eustace
no flags Details

Description Glen Eustace 2004-01-28 21:46:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1)

Description of problem:
nss_ldap successfully retrieves data from MS ADS using getpwnam() which would indicate that nsswitch.conf and ldap.conf are ok.
When authconfig has setup system-auth file, sshd fails to find user.  The query being passed to LDAP is looking for NOUSER.


Version-Release number of selected component (if applicable):
nss_ldap-207-6,openssh-3.6.1p2-19

How reproducible:
Always

Steps to Reproduce:
1. Run authconfig and select LDAP
2. Attempt ssh to localhost

    

Actual Results:  Login declined, invalid user.

Additional info:

Comment 1 Glen Eustace 2004-01-28 21:49:32 UTC
Created attachment 97313 [details]
nsswitch

Comment 2 Glen Eustace 2004-01-28 21:54:27 UTC
Created attachment 97314 [details]
ldap.conf

Comment 3 Glen Eustace 2004-01-28 21:55:38 UTC
Created attachment 97315 [details]
system-auth

Comment 4 Glen Eustace 2004-01-28 21:57:06 UTC
Query send to ADS 
-------------------- 
Lightweight Directory Access Protocol 
    Message Id: 2 
    Message Type: Search Request (0x03) 
    Message Length: 104 
    Base DN: ou=Staff,ou=Clients,dc=massey,dc=ac,dc=nz 
    Scope: Subtree (0x02) 
    Dereference: Never (0x00) 
    Size Limit: 1 
    Time Limit: 0 
    Attributes Only: False 
    Filter: (&(objectclass=User)(msSFUName=NOUSER)) 
 

Comment 5 Glen Eustace 2004-01-30 01:26:39 UTC
This not a bug, running sshd in debug showed that the shell for the 
user in ldap was invalid on the system running sshd. Using a user 
that has a valid shell for the system concerned works fine. 
 


Note You need to log in before you can comment on or make changes to this bug.