dlopen error when using sudo with pam_ldap

Steven Romero sromero1 at emc.sema.slb.com
Tue Jul 8 14:03:35 EDT 2003


Hello,

I'm getting a dynamic loading error when I try to use sudo with 
pam_ldap.  My specs are:

+ solaris 8
+ sudo-1.6.6
+ pam_ldap-164
+ openldap-2.1.17

The sudo portion of my pam.conf file reads:

# Support for sudo
sudo    auth    sufficient      /usr/lib/security/pam_ldap.so.1 debug

I've gotten other applications to work fine (OpenSSH for example), and have 
verified that it is using pam_ldap, but sudo just doesn't want to work.  I 
always get the following error when I try to authenticate to sudo using 
pam_ldap:

bash-2.03$ sudo -s
sudo: pam_authenticate: Dlopen failure

bash-2.03$ sudo vi /etc/pam.conf
sudo: pam_authenticate: Dlopen failure

Looking in /var/adm/messages I see:

Jul  8 22:57:58 munchie sudo[11823]: [ID 487707 user.error] load_modules: 
can not open module /usr/lib/security/pam_ldap.so.1
Jul  8 22:57:58 munchie sudo: [ID 702911 local2.alert]  sromero : 
pam_authenticate: Dlopen failure ; TTY=pts/3 ; 
PWD=/export/home/sromero/sudo-1.6.6 ; USER=root ; COMMAND=/bin/bash
Jul  8 22:58:21 munchie sudo[11825]: [ID 487707 user.error] load_modules: 
can not open module /usr/lib/security/pam_ldap.so.1
Jul  8 22:58:21 munchie sudo: [ID 702911 local2.alert]  sromero : 
pam_authenticate: Dlopen failure ; TTY=pts/3 ; 
PWD=/export/home/sromero/sudo-1.6.6 ; USER=root ; COMMAND=/usr/bin/vi 
/etc/pam.conf

Does anyone have any ideas why this isn't working?  I was very careful to 
compile everything with shared libraries, and as I said I did confirm that 
pam_ldap is working with other applications.

Thanks for your help.

Regards,
Steven Romero



More information about the sudo-users mailing list