- OpenLDAP (Samba 3.x depends on working OpenLDAP installation)
# Dependency #1: Samba 3.x with AD support installation assumes you have OpenLDAP installed:
# Download site: http://www.openldap.org/software/download/
# OpenLDAP installation:
% cd installdir
installdir % ./configure --prefix=/opt/openldap-x.y.z --without-bdb --disable-bdb --enable-null --disable-slapd
installdir % make depend
installdir % make
installdir % sudo make install
installdir % cd /opt
/opt % sudo rm openldap
/opt % sudo ln -s openldap-x.y.z/ openldap
- Kerberos (Samba 3.x depends on working Kerberos installation)
# Dependency #2: Samba 3.x with AD support installation assumes you have MIT Kerberos installed:
# Download site: http://web.mit.edu/kerberos/dist/
# Kerberos installation:
% cd installdir
installdir % cd src
installdir/src % ./configure -CFLAGS=-i -prefix=/opt/krb5-x.y.z
installdir/src % make
installdir/src % sudo make install
installdir/src % cd /opt
/opt % sudo rm krb5
/opt % sudo ln -s krb5-x.y.z/ krb5
- Samba installation
# Set environment variables
setenv FLAGS "-I/opt/openldap/include -I/opt/krb5/include"
setenv CPPFLAGS "-I/opt/openldap/include -I/opt/krb5/include"
setenv LDFLAGS "-L/opt/openldap/lib -L/opt/krb5/lib"
setenv CFLAGS "-I/opt/openldap/include -I/opt/krb5/include"
installdir % cd source
installdir/source % ./configure --prefix=/utiloss/samba-x.y.z --with-acl-support --with-ads
installdir/source % make
installdir/source % sudo make install
installdir/source % cd /utiloss/samba-x.y.z
samba-x.y.z % sudo rm -rf var
samba-x.y.z % sudo ln -s /var/samba/var var
samba-x.y.z % sudo rmdir private
samba-x.y.z % sudo ln -s /var/samba/private private
samba-x.y.z % sudo cp -r lib/* /var/samba/lib/
samba-x.y.z % sudo rm -rf lib
samba-x.y.z % sudo ln -s /var/samba/lib lib
samba-x.y.z % cd ..
/utiloss % sudo rm samba
/utiloss % sudo ln -s samba-x.y.z/ samba