1. install slapd
sudo apt-get update sudo apt-get install slapd ldap-utils phpldapadmin2. envoke slapd configuration guide by executing
sudo dpkg-reconfigure slapd
- Omit OpenLDAP server configuration? No
- DNS domain name? macondo04.eait.uq.edu.au
- Organization name? macondo04.eait.uq.edu.au
- Administrator password? input password
- Database backend to use? HDB
- Remove the database when slapd is purged? No
- Move old database? Yes
- Allow LDAPv2 protocol? No
$servers->setValue('server','host','domain_nam_or_IP_address');
$servers->setValue('server','host','macondo04.eait.uq.edu.au');
$servers->setValue('server','host','127.0.0.1');
$servers->setValue('server','base',array('dc=macondo04,dc=eait,dc=uq,dc=edu,dc=au'));
$servers->setValue('login','auth_type','session');
$servers->setValue('login','bind_id','cn=admin,dc=macondo04,dc=eait,dc=uq,dc=edu,dc=au');
4. Now you should be able to log in by macondo04.eait.uq.edu.au/phpldapadmin.note that the ldap server is only availabe via student region. so one needs to forward into the staff region by:
ssh -L9980:127.0.0.1:80 -L10000:127.0.0.1:10000 -XY mpiuser@macondo04
then one should be abe to logon ldapserver by:
http://127.0.0.1:9980/phpldapadmin/
If one wish his home folders not seen by others, he/she can do:
chmod 700:503 /home/user/chenming
Reference:
https://help.ubuntu.com/community/LDAPClientAuthentication
https://help.ubuntu.com/community/LDAPClientAuthentication
http://hswong3i.net/blog/hswong3i/ldap-single-sign-webmin-ubuntu-12-04-howto
http://www.linux.com/learn/tutorials/377952%3Amanage-ldap-data-with-phpldapadmin
https://www.digitalocean.com/community/tutorials/how-to-authenticate-client-computers-using-ldap-on-an-ubuntu-12-04-vps
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps
No comments:
Post a Comment