LDAP
Benötigte Software:
openldap
openldap-clients
openldap-servers
nss_ldap
Installation:
# yum install openldap openldap-clients openldap-servers
nss_ldap
# cd /tmp
# wget http://www.padl.com/download/MigrationTools.tgz
# mkdir /usr/share/openldap
# cd /usr/share/openldap
# tar zxvf /tmp/MigrationTools.tgz
# mv Migra*
migration
# cd migration
# export PATH=$PWD:$PATH
# vi migration_common.ph
Editorkommandos:
:%s/padl/example/g
:wq
# vi migration_all_offline.sh
:%s/ADD –l/ADD
–c –l/
:wq
Konfiguration des Servers:
# mkdir /var/lib/ldap/example.com
# cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/example.com/DB_CONFIG
# vi /etc/openldap/slap.d/cn=config/olcDatabase:{1}bdb
Editorkommandos:
:%s/my-domain/example/g
:wq
# migration_all_offline.sh
# chown –R ldap:ldap
/var/lib/ldap/example.com
# service slapd start
# chkconfig slapd
on
# ldapsearch –x –b ‘dc=example,dc=com’ ‘(objectclass=*)’
Die Ausgabe sollte jetzt alle Nutzerkennungen enthalten.