Bug 236 - sudo-1.6.8p12 ./configure --with-pam --with-ldap
sudo-1.6.8p12 ./configure --with-pam --with-ldap
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Configure
1.6.8
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-22 16:46 MDT by Farzan Jameel Mufti
Modified: 2008-06-11 09:34 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Farzan Jameel Mufti 2007-03-22 16:46:47 MDT
Hi,
May be this is something that I am doing wrong but this is what I get.  If I compile Sudo with the following configuration options, I can never make it to work with Open LDAP.

./configure --with-pam –with-ldap

Problem was in --with-pam.  When I removed it, it just worked fine.  Is it a bug or am I doing it the wrong way?

LDAP Config Summary
===================
uri          ldap://spp20845.spp.org
ldap_version 3
sudoers_base ou=SUDOers,dc=spp20845,dc=spp
binddn       (anonymous)
bindpw       (anonymous)
ssl          no
===================
ldap_initialize(ld,ldap://spp20845.spp.org)
ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,0x03)
ldap_bind() ok
found:cn=defaults,ou=SUDOers,dc=spp20845,dc=spp
ldap search '(|(sudoUser=fmufti)(sudoUser=%msims)(sudoUser=%msims)(sudoUser=ALL))'
found:cn=fmufti,ou=SUDOers,dc=spp20845,dc=spp
ldap sudoHost 'ALL' ... MATCH!
ldap sudoCommand 'ALL' ... MATCH!
Perfect Matched!
user_matches=-1
host_matches=-1
sudo_ldap_check(0)=0x02
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
Comment 1 Todd C. Miller 2007-06-19 12:23:35 MDT
This sounds like a pam configuration problem.  You should check to make sure that /etc/pam.d/sudo is configured correctly for your version of Linux.
Comment 2 Todd C. Miller 2008-06-11 09:34:35 MDT
Believed to be a PAM configuration problem.