[Samba] about pam_smbpass with LDAPSAM
fwif0083 at mb.infoweb.ne.jp
fwif0083 at mb.infoweb.ne.jp
Mon Apr 1 05:09:04 GMT 2002
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 at 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 at 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 at mb.infoweb.ne.jp
More information about the samba
mailing list