Professional Documents
Culture Documents
The Fedora Directory Server (FDS) is an LDAP (Lightweight Directory Access Protocol) server developed
by Red Hat, as part of Red Hat's community-supported Fedora Project. Fedora Directory Server is
identical to the Red Hat Directory Server, just rebranded.
Installation:
Download the FDS from http://directory.fedoraproject.org/wiki/Download for your respective os
version.
For this howto I am using RHEL4 and Fedora Directory Server 1.0.4 version.
#cd /etc/alternatives
#rm ./java
#ln -sf /opt/java/jre1.5.0_09/bin/java java
/opt/fedora-ds/setup/setup to complete .
It will ask the series of question like hostname, default port, ldap user etc select appropriate option.
Normally most of the options selected by default so don’t need to change them.
During this process it will select some port randomly for console, note it or select of your own choice.
# system-config-authentication
Here select the Ldap tab, mention your Ldap search Base DN and Ldap Server address on user
information Tab and Authentication Tab and select OK.
/etc/nsswitch.conf file
passwd: files ldap
shadow: files ldap
group: files ldap
and in /etc/ldap.conf
host alpha.example.com
base dc=example,dc=com
Here user able to login on client machine with the warning messages that its home directory not found
on the system.
Now you have two options for the user home directory.
For This case, scenario is very simple. Login at client with root user, create the home directory at the
path you have specified in the user information at server. like in above case it is /home/ldapuser/ali.
# mkdir –p /home/ldapuser/ali
# chown –R ali /home/ldapuser/ali
You can set the ownership to uid which you have specified FDS
Now share user home directory with NFS
Check by
[root@alpha ~]# showmount -e localhost
Export list for localhost:
/home/ldapuser *
# vi /etc/auto.master
/home/ldapuser /etc/auto.ldap --timeout=60
# vi /etc/auto.ldap
* -rw,soft,intr 192.168.20.105:/home/ldapuser/&
NOTE : Here & sign is very import,don’t miss it,when & sign is there then only home directory of that
use will be mount which user is being login.
Now login at client machine and its home directory will be mounted automatically.(Inshalla)
http://www.linuxjournal.com/article/9517
http://www.linux.com/feature/58731
http://www.opensourcehowto.org/how-to/samba/openldap-lam-samba-as-pdc.html