Samba
Jump to navigation
Jump to search
Configurare Samba per autenticazione Active Directory su Solaris 9
- Berkeley DB
rm -rf /opt/db-4.4.20 rm -rf db-4.4.20 gzcat db-4.4.20.tar.gz | tar xvf - cd db-4.4.20/build_unix/ ../dist/configure --prefix=/opt/db-4.4.20 \ CFLAGS='-O3 -R/opt/sfw/gcc-3/lib' \ CPPFLAGS='-O3 -R/opt/sfw/gcc-3/lib' \ LDFLAGS='-R/opt/sfw/gcc-3/lib' gmake gmake install
- OpenLDAP
rm -rf /opt/openldap rm -rf openldap-2.3.30 gzcat openldap-2.3.30.tgz | tar xvf - cd openldap-2.3.30 ./configure --prefix=/opt/openldap --disable-bdb --enable-null --without-tls \ CPPFLAGS='-O3 -I/opt/db-4.4.20/include -L/opt/db-4.4.20/lib -R/opt/db-4.4.20/lib -R/opt/sfw/gcc-3/lib' \ CFLAGS='-O3 -I/opt/db-4.4.20/include -L/opt/db-4.4.20/lib -R/opt/db-4.4.20/lib -R/opt/sfw/gcc-3/lib' \ LDFLAGS='-L/opt/db-4.4.20/lib -R/opt/db-4.4.20/lib -R/opt/sfw/gcc-3/lib' gmake depend gmake gmake install
- Kerberos 5
rm -rf /opt/krb5 rm -rf krb5-1.5.1 gzcat krb5-1.5.1.tar.gz | tar xvf - cd krb5-1.5.1/src ./configure --prefix=/opt/krb5 \ CPPFLAGS='-O3 -R/opt/sfw/gcc-3/lib' \ CFLAGS='-O3 -R/opt/sfw/gcc-3/lib' \ LDFLAGS='-R/opt/sfw/gcc-3/lib' gmake gmake install
- Samba
gzcat samba-latest.tar.gz | tar xf - cd samba-3.0.23d gpatch -p1 < /x/samba_makepkg.diff cd packaging/Solaris sh ./makepkg.sh build
- File samba_makepkg.diff
--- samba-3.0.23d.old/packaging/Solaris/makepkg.sh 2006-04-20 04:29:48.000000000 +0200 +++ samba-3.0.23d/packaging/Solaris/makepkg.sh 2006-12-18 13:18:12.318434000 +0100 @@ -138,7 +138,13 @@ --with-lockdir=/var/lib/samba \ --with-pam --with-acl-support \ --with-quotas --with-included-popt \ - && make + --with-ads --enable-static --enable-shared \ + --with-winbindd --with-krb5=/opt/krb5 \ + CFLAGS='-O3 -I/opt/krb5/include -I/opt/openldap/include' \ + CPPFLAGS='-O3 -I/opt/krb5/include -I/opt/openldap/include' \ + LDFLAGS='-L/opt/openldap/lib -L/opt/krb5/lib + -R/opt/openldap/lib -R/opt/krb5/lib -R/opt/sfw/gcc-3/lib' \ + && gmake if [ $? -ne 0 ]; then echo "Build failed! Exiting...." @@ -147,7 +152,7 @@ fi mkdir $TMPINSTALLDIR -make DESTDIR=$TMPINSTALLDIR install +gmake DESTDIR=$TMPINSTALLDIR install ## clear out *.old find $TMPINSTALLDIR -name \*.old |while read x; do rm -rf "$x"; done
Altre informazioni si trovano in:
http://lists.samba.org/archive/samba-technical/2006-May/046971.html
http://info.ccone.at/INFO/Samba-2.2.12/winbind.html
http://www.occam.com/tools/ad_auth.html
http://marc.theaimsgroup.com/?l=samba&m=115347076210130&w=2
http://lists.samba.org/archive/samba-docs/2002-May/000171.html