I have followed the
instructions, if you can call them that, from red hat to install openLDAP on a RHEL6 box.
I configured the old fashioned slapd.conf file, deleted /etc/openldap/slap.d and ran
Code:
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/
After setting the right permissions on the slapd.d directory, I managed to get the service started and I get this error:
Quote:
bdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2).
Expect poor performance for suffix "dc=domain,dc=com"
|
Unfortunately, I have no DB_CONFIG example file to copy to this directory, but since this appears to be a warning, I'm hoping that it can be ignored.
The problem I have, assuming that the above is not a deal breaker, is when I try to add users to the domain:
Quote:
ldapadd -f ldapuser -x -W -D "cn=root,dc=domain,dc=com"
Enter LDAP Password:
adding new entry "cn=Barbara Jensen,dc=rh,dc=com objectClass: person cn: Barbara Jensen sn: Jensen mail: bjensen@rh.com uid: bjensen"
ldap_add: Protocol error (2)
additional info: no attributes provided
|
where ldapuser contains:
Quote:
dn: cn=Barbara Jensen,dc=rh,dc=com
objectClass: person
cn: Barbara Jensen
sn: Jensen
mail: bjensen@rh.com
uid: bjensen
|
The file is from the man page for ldapadd.
any ideas?
TIA