-1

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 = "10.0.0.10";
ldap1.ldap_attribute = "uid";

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

Radek
  • 1,153
  • 4
  • 26
  • 39

1 Answers1

4

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

Are you familiar with schema, objectclass, and attribute?

E.g.,:

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
mail: radek@domain.com
...
userPassword: {SSHA}abc

The userPassword value can be generated by using slappasswd utility:

$ slappasswd 
New password: 
Re-enter new password: 
{SSHA}p7pvonyVFAHbVB2ux+exlkl3PhLa29SO

and using ldapadd to add it to OpenLDAP:

ldapadd -x -W -D "cn=Manager,dc=domain,dc=com" -f file.ldif
d-cubed
  • 115
  • 4
quanta
  • 51,413
  • 19
  • 159
  • 217