Difference between revisions of "Set up an ldap server"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 11: | Line 11: | ||
=== add an entry === | === add an entry === | ||
See http://ubuntuforums.org/showthread.php?p=1582401 | See http://ubuntuforums.org/showthread.php?p=1582401 | ||
+ | |||
+ | === Restart ldap server === | ||
+ | Restarting ldap server must be possible: | ||
+ | /etc/init.d/ldap stop | ||
+ | /etc/init.d/ldap start | ||
+ | Now the command | ||
+ | /etc/init.d/ldap status | ||
+ | Should show <code>running</code>. The port must be reachable via network: | ||
+ | nmap localhost | ||
+ | Should show one line | ||
+ | 389/tcp open ldap | ||
=== query ldap server === | === query ldap server === | ||
To prove your ldap server works, let it show all users that you have added: | To prove your ldap server works, let it show all users that you have added: | ||
slapcat | slapcat | ||
+ | |||
+ | === connect to ldap server === | ||
+ | Use kaddressbook to connect to an ldap server, search for Sam. The expected entry is Sam Smith. |
Revision as of 15:57, 1 September 2008
Contents
For SUSE
install ldap server
Just follow http://en.opensuse.org/Howto_LDAP_server
test ldap server
initialize ldap server
See http://ubuntuforums.org/showthread.php?p=1582401
add an entry
See http://ubuntuforums.org/showthread.php?p=1582401
Restart ldap server
Restarting ldap server must be possible:
/etc/init.d/ldap stop /etc/init.d/ldap start
Now the command
/etc/init.d/ldap status
Should show running
. The port must be reachable via network:
nmap localhost
Should show one line
389/tcp open ldap
query ldap server
To prove your ldap server works, let it show all users that you have added:
slapcat
connect to ldap server
Use kaddressbook to connect to an ldap server, search for Sam. The expected entry is Sam Smith.