Personal tools
You are here: Home Weblog Archive 2006 August 13 Miniguide to openldap
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Miniguide to openldap

by tibi last modified 2006-08-23 04:54
Filed Under:

LDAP is a lot easier then one might think at first sight. First, reading this short introduction to LDAP will tell us that LDAP is just an object database, that holds trees of objects and schemas of those objects. This is nice and easy for anyone acustomed to ZODB and Archetypes.

Next, installing. The OpenLDAP server on Debian is called slapd, so apt-get install slapd. After that, run dpkg-reconfigure -plow slapd which will allow reconfiguring the domains. For example, I've set my domain to pixelblaster.ro and the organization unit (ou) to Pixelblaster, which would result in base dn of dc=pixelblaster,dc=ro for the server and ou=Pixelblaster,dc=pixelblaster,dc=ro for the Pixelblaster branch. Another common setup is to create the following base dn: ou=programmers,o=Pixelblaster

With a tools such as JXplorer a connection to the server, to the dc=pixelblaster,dc=ro base db, with a binding authentication of cn=admin,dc=pixelblaster,dc=ro

Some of the common shortcuts used by ldap:

o = organization
ou = organization unit
dc = domain component
cn = common name
sn = surname

To make an address book, I have created the following dn: ou=people,o=Pixelblaster,dc=pixelblaster,dc=ro Now I just have to add inetOrgPerson objects that will act as addressbook entries. Some tools dedicated to this tasks are:

  • directoryassistant, a nice python based utility that can be used to search and edit this address book
  • kaddressbook is a much more complex tool, integrated with the KDE desktop
  • just as fun is luma, a python based Qt app that can be used, among many other functions, as addressbook

Next step is to put the LDAP server to work and make it serve samba and unix accounts


Weblog
Atom
RDF
RSS 2.0
Powered by Quills
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: