samba ldap howto.pdf

Vista previa de texto
The SAMBA-LDAP-PDC Howto
21
Revision : 1.24
Samba-Ldap on Debian Woody
The standard Samba Debian package is compiled with PAM Support. So you have to get the
samba source and recompile it yourself.
For this howto, I used Samba version 2.2.4-1:
# apt-get source samba
Then, in the samba-2.2.4/debian edit the following files:
• rules: get rid of any pam compile options. I have added any missing options mentioned
in this redhat howto. Also comment some files which are not created (so don’t install
or move them):
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[ -f source/Makefile ] || (cd source && ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--with-fhs \
--prefix=/usr \
--sysconfdir=/etc \
--with-privatedir=/etc/samba \
--localstatedir=/var \
--with-netatalk \
--with-smbmount \
--with-syslog \
--with-sambabook \
--with-utmp \
--with-readline \
--with-libsmbclient \
--with-winbind \
--with-msdfs \
--with-automount \
--with-acl-support \
--with-profile \
--disable-static \
--with-ldapsam)
131
132
#install -m 0644 source/nsswitch/pam_winbind.so \
#$(DESTDIR)/lib/security/
142
#mv $(DESTDIR)/usr/bin/pam_smbpass.so $(DESTDIR)/lib/security/
182
#cp debian/samba.pamd $(DESTDIR)/etc/pam.d/samba
• libpam-smbpass.files: get rid of the lib/security/pam smbpass.so entry (yes the file is
then empty),
page 49/56
