Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to test that our application can connect to more than one LDAP servers. We have one working one (running on OSX server). I need to setup another one.

  • We tried to set LDAP server on SuSE using Yast. I can connect but I don't know how to add new user.
  • I tried to set up LDAP server on my OSX. LDAP is installed by default. But I didn't manage to connect to this server.

All I need is running LDAP server where I can add users.

Existing setting for our application are

ldap1.domain = "mrserver.edumate";
ldap1.basedn = "dc=mrserver,dc=edumate";
ldap1.ldap_host = "";
ldap1.ldap_attribute = "uid";

I can install the LDAP server on Windows, SuSE, linux, OSX (not the server as we have only one server)

share|improve this question
If you downvote please say why. – Radek Sep 18 '12 at 5:16

I can connect but I don't know how to add new user.

Are you familiar with schema, objectclass, and attribute?


A base.ldif:

dn: dc=domain,dc=com
dc: domain
objectClass: top
objectClass: domain

An organization unit:

dn: ou=it,dc=domain,dc=com
ou: it
objectClass: top
objectClass: organizationalUnit

A user:

dn: cn=radek,ou=it,dc=domain,dc=com
cn: radek
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
userPassword: {SSHA}abc

The userPassword value can be generated by using slappasswd utility:

$ slappasswd 
New password: 
Re-enter new password: 

and using ldapadd to add it to OpenLDAP:

ldapadd -x -W -D "cn=Manager,dc=domain,dc=com" -f file.ldif
share|improve this answer
I tried two OSX LDAP browers/editor but none let me add new user... How can I do the password thing? – Radek Dec 9 '11 at 3:51
I'm not an OSX guy but which browsers did you try? I'm using phpldapadmin, lam (ldap admin manager), ... on Linux. – quanta Dec 9 '11 at 3:56
I tried Gawor_ldapbrowser_282 and LDAPManager. Does one of your browser come with GUI? – Radek Dec 9 '11 at 4:04
Sure, they are PHP web-based. – quanta Dec 9 '11 at 4:09
Try Apache Directory Studio sometime. – ptman Dec 9 '11 at 5:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.