Skip to main content

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:
code:
sudo apt-get install slapd ldap-utils migrationtools  sudo rm -r /etc/ldap/slapd.d  sudo dpkg-reconfigure slapd
set settings in 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
code:
sudo /etc/init.d/slapd restart
make sure can search ldap server via:
code:
ldapsearch -x -b dc=slookytech,dc=local
next modify /etc/migratetools/migrate_common.ph - use pico can sub in vi or vim if needed:
code:
sudo pico /etc/migrationtools/migrate_common.ph
change put slookytech.local yours, , dc=slookytech,dc=local down below:
code:
$default_mail_domain = "slookytech.local";  $default_base = "dc=slookytech,dc=local";
now do:
code:
cd /usr/share/migrationtools/  sudo ./migrate_group.pl /etc/group ~/group.ldif  sudo ./migrate_passwd.pl /etc/passwd ~/passwd.ldif
now create file with:
code:
dn: ou=people, dc=slookytech, dc=local  ou: people  objectclass: organizationalunit    dn: ou=group, dc=slookytech, dc=local  ou: group  objectclass: organizationalunit
changing dc= reflects on ldap server. save as: people_group.ldif in home folder, run:
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 config finished.

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support