Thread: HOWTO: Quick Simple LDAP Server
downloaded ubuntu 11.04 64-bit server
installing using hostname: slookytech
no proxy
setup lamp server.
set mysql root password.
reboot.
login.
run following:
set settings in slapd:code:sudo apt-get install slapd ldap-utils migrationtools sudo rm -r /etc/ldap/slapd.d sudo dpkg-reconfigure slapd
omit openldap server configuration - no
dns domain name: slookytech.local
name of org: slookytech
password - of course put in need
bdb
want db removed when slapd purged? - no
move old database? - yes
allow ldapv2 protocol? - no
make sure can search ldap server via:code:sudo /etc/init.d/slapd restart
next modify /etc/migratetools/migrate_common.ph - use pico can sub in vi or vim if needed:code:ldapsearch -x -b dc=slookytech,dc=local
change put slookytech.local yours, , dc=slookytech,dc=local down below:code:sudo pico /etc/migrationtools/migrate_common.ph
now do:code:$default_mail_domain = "slookytech.local"; $default_base = "dc=slookytech,dc=local";
now create file with:code:cd /usr/share/migrationtools/ sudo ./migrate_group.pl /etc/group ~/group.ldif sudo ./migrate_passwd.pl /etc/passwd ~/passwd.ldif
changing dc= reflects on ldap server. save as: people_group.ldif in home folder, run:code:dn: ou=people, dc=slookytech, dc=local ou: people objectclass: organizationalunit dn: ou=group, dc=slookytech, dc=local ou: group objectclass: organizationalunit
server config finished.code:sudo ldapadd -x -w -d "cn=admin,dc=slookytech,dc=local" -f ~/people_group.ldif sudo ldapadd -x -w -d "cn=admin,dc=slookytech,dc=local" -f ~/group.ldif sudo ldapadd -x -w -d "cn=admin,dc=slookytech,dc=local" -f ~/passwd.ldif
server easy part, client, however, not. check in while see if i've uploaded client part.
Forum The Ubuntu Forum Community Other Discussion and Support Tutorials Outdated Tutorials & Tips HOWTO: Quick Simple LDAP Server
Ubuntu
Comments
Post a Comment