DEPENDENCIES
------------

+ eBox components 

	+ ebox
	+ ebox-usersandgroups
	+ ebox-network
	+ ebox-firewall
	
+ Debian packages (apt-get install <package>)

	+ samba
	+ libnss-ldap
	+ libcrypt-smbhash-perl
	+ quota
	+ smbldap-tools
	+ bzip2

+ Others

	+ a Linux kernel with support for quotas

INSTALLATION
------------

- Once eBox base has been installed:
	
	./configure
	make install

	Please it is necessary to perform all the steps below
	in strict sequence:
	
	Copy samba.schema and ebox.schema from directory 'schemas' to
	/etc/ldap/schema .

	Kill gconf daemon

		pkill gconf

	Create spool directory for samba with correct permissions

		mkdir /var/spool/samba
		chmod 1777 /var/spool/samba

	You need to create some directories:

		mkdir -p /home/samba/users
		mkdir /home/samba/groups
		mkdir /home/samba/profiles
		mkdir /home/samba/logon

	Now you must change your /etc/nsswitch.conf file to add
	ldap support:

		passwd:         files ldap
		group:          files ldap
		shadow:         files ldap

	Execute 'ebox-init-ldap genconfig' from ebox-usersandgroups

	Restart slapd

		/etc/init.d/slapd restart

	Now you  have to update the current LDAP database with samba
	user objects:

		ebox-samba-ldap update-users

	Executing ebox-runit

		ebox-runit

	Now you must generate  smb.conf file and  libnss-ldap.conf. 
	Use ebox-samba-ldap in tools:

		ebox-samba-ldap genconfig

	
	Set the samba admin password to your ldap admin password:

		smbpasswd -w YOUR_LDAP_ADMIN_PASSWORD

	Now you  have to update the current LDAP database with samba
	PDC objects:

		ebox-samba-ldap update-pdc
	
	Quota support:
	
		Your kernel must be compiled with quota support

		Modify your /etc/fstab to support quotas(usrquota, grpquota) 
		in your mounting point for home directories:
		
		/dev/hda12      /home           ext3    defaults,usrquota,grpquota      
	
		Remount the partition or reboot
		
		quotaon -u "mounting point for home directories"

		invoke-rc.d quota restart

	Restart all daemons:

		invoke-rc.d ebox samba restart
