Skip navigation

Tag Archives: Samba

First you are probably wondering why you would want to install Samba 3.4.7 in Ubuntu 8.04

  • AD authentication with Windows Server 2008

~/working# wget http://samba.org/samba/ftp/stable/samba-3.4.7.tar.gz
~/working# tar xf samba-3.4.7.tar.gz
~/working# cd samba-3.5.6/source3
~/source3# apt-get install libldap2-dev libkrb5-dev uuid-dev libpam0g-dev zlib1g-dev

The following configure line was generated by Jeremy Cole and credited to one of his commenters (yogg)


~/source3# ./configure ./configure --cache-file=./config.cache \
--with-fhs \
--enable-shared \
--enable-static \
--disable-pie \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-piddir=/var/run/samba \
--localstatedir=/var \
--with-rootsbindir=/sbin \
--with-pammodulesdir=/lib/security \
--with-pam \
--with-syslog \
--with-utmp \
--with-readline \
--with-pam_smbpass \
--with-libsmbclient \
--with-winbind \
--with-shared-modules=idmap_rid,idmap_ad \
--with-automount \
--with-ldap \
--with-ads \
--with-dnsupdate \
--with-cifsmount \
--with-acl-support \
--with-quotas

Next you’ll want to compile the package


~/source3# make

Provided this goes without a hitch (if it doesn’t you may need to fix some dependencies)


~/source3# make install

There is a possibility you will need to upgrade you nss module, easy to do


~/source3# make nssplugin
~/source3# mv ../nsswitch/libnss_winbind.so /lib/libnss_winbind.so.2

At this point you should be ready to restart samba


~/source3# /etc/init.d/samba restart

This failed for me, if it also fails for you try this


~/source3# echo "/etc/samba" > /etc/ld.so.conf.d/samba.conf
~/source3# ldconfig
~/source3# /etc/init.d/samba restart

Finally if you are using LDAP with samba you will want to copy the schema over


~/source3# cp ../../examples/LDAP/samba.schema /etc/ldap/schema/samba.schema

This is where I chose to reboot to ensure everything was kosher

Sources:
http://www.jeremycole.com