Gensec Install Guide
This document is aimed at people who want to try out the experimental GENSEC patches for secur32.
First of all, grab a copy of samba 4. As in the current version some authentication things are broken using shared libraries, I'd recommend revision 15656.
$ svn co -r 15656 svn://svnanon.samba.org/samba/branches/SAMBA_4_0 samba4
Now, compile the whole shebang.
$ cd samba4/source $ ./autogen.sh $ ./configure --prefix=$HOME --enable-dso --with-fhs $ make pch # only if you have a gcc 4.x $ make all $ make install
You can of course use a different --prefix, but the following assumes you used $HOME.
You will need to make sure that the libraries and the pkg-config files can be found.
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib $ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/lib/pkgconfig
And because ldconfig doesn't look into my home directory, I also did the following:
$ cd lib $ for i in *.so; do ln -s $i $i.0; done
This won't be needed if you install to a location ldconfig has access to. You'll just need to run ldconfig then.
Now, you need to provision samba 4, but you will need to make sure that the provision process is able to run all the commands needed:
$ cd samba4/source $ PATH=$PATH:$HOME/bin ./setup/provision --realm=YOUR.REALM --domain=YOURDOM --adminpass=SOMEPASSWORD
