Dear sir. At first, sorry for my poor english. I'm using samba-2.2.3a. I had configured it with the options, --with-ldapsam --with-pam_smbpass and used it as a domain controller with LDAPSAM auth. (It's GREAT!! Thank you.) I tried pam_smbpass with LDAPSAM, but had 2 problems. (1) I had following message in /var/log/messages: Mar 31 20:27:47 aswad sshd(pam_unix)[7913]: session opened for user honda by (uid=0) Mar 31 20:27:47 aswad sshd[7913]: PAM unable to dlopen(/lib/security/pam_smbpass.so) Mar 31 20:27:47 aswad sshd[7913]: PAM [dlerror: /lib/security/pam_smbpass.so: undefined symbol: get_interfaces] So, I had change Makefile. [honda@aswad samba-2.2.3a]$ diff -u source/Makefile.20020331 source/Makefile --- source/Makefile.20020331 Sun Mar 31 20:00:54 2002 +++ source/Makefile Sun Mar 31 20:38:31 2002 @@ -355,6 +355,7 @@ PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \ pam_smbpass/pam_smb_acct.o pam_smbpass/support.o \ + lib/interfaces.o \ lib/debug.o lib/util_sid.o lib/messages.o lib/util_str.o \ lib/wins_srv.o lib/substitute.o lib/select.o lib/util.o \ nsswitch/wb_client.o nsswitch/wb_common.o lib/system.o \ (2) pam_smbpass do not access LDAP server. It does not initialize rootdn password. So I append calling secrets_init() function: [honda@aswad samba-2.2.3a]$ diff -u source/pam_smbpass/pam_smb_auth.c.DIST source/pam_smbpass/pam_smb_auth.c --- source/pam_smbpass/pam_smb_auth.c.DIST Sun Mar 31 21:53:07 2002 +++ source/pam_smbpass/pam_smb_auth.c Sun Mar 31 23:19:09 2002 @@ -99,7 +99,7 @@ retval = PAM_AUTHINFO_UNAVAIL; AUTH_RETURN; } - + secrets_init(); pdb_init_sam(&sampass); found = pdb_getsampwnam( sampass, name ); Regards, -- Shigehiro Honda fwif0083@mb.infoweb.ne.jp
On Mon, 1 Apr 2002 fwif0083@mb.infoweb.ne.jp wrote:> Dear sir. > At first, sorry for my poor english. > > I'm using samba-2.2.3a. I had configured it with the options, > --with-ldapsam --with-pam_smbpass and used it as a domain > controller with LDAPSAM auth. (It's GREAT!! Thank you.) > > I tried pam_smbpass with LDAPSAM, but had 2 problems. > > (1)Already fixed in the SAMBA_2_2 cvs tree.> (2) > pam_smbpass do not access LDAP server. > It does not initialize rootdn password. So I append calling > secrets_init() function:Patch applied. Thanks. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Hi. I had posted 4/1 for this problem. Please check below urls: http://lists.samba.org/pipermail/samba/2002-April/070090.html and http://lists.samba.org/pipermail/samba/2002-April/070369.html (Thank you, Jerry. I had tried CVS and got success.) From: "Mariano M." <mmunoz@gcivil.mir.es> Subject: [Samba] pam_smbpass.so error Date: Wed, 10 Apr 2002 11:55:30 +0200> Hi. I get the following error when I try to connect with pam. It seems like it > is a compilation error, but I don't get any errors when I make it. > > Apr 10 11:43:05 Samba32 PAM_pwdb[30233]: (samba) session opened for user probe > by (uid=0) > Apr 10 11:44:00 Samba32 CROND[30239]: (root) CMD ( > /usr/share/msec/promisc_check.sh) > Apr 10 11:44:50 Samba32 smbd[30233]: PAM unable to > dlopen(/lib/security/pam_smbpass.so) > Apr 10 11:44:50 Samba32 smbd[30233]: PAM [dlerror: > /lib/security/pam_smbpass.so: undefined symbol: get_interfaces] > Apr 10 11:44:50 Samba32 smbd[30233]: PAM adding faulty module: > /lib/security/pam_smbpass.so > > I've compiled 2.2.3a with > ./configure --with-smbmount --with-pam --with-pam_smbpass > > > Could somebody help me please??Regards, -- Shigehiro Honda