I think you need to include the nis.schema in your slapd.conf. Also you might want to try a LDAP browser, as it helps add users and allows you to see what objectclass are available and which attributes are needed.
Vinh
Nuno Manuel Martins nuno.mmartins_externo@sonae.com Sent by: openldap-technical-bounces+vinh.ctr.hoang=faa.gov@OpenLDAP.org 02/01/2008 12:58 PM
To "openldap-technical@openldap.org" openldap-technical@openldap.org cc
Subject LDAP Auth
Hello List,
I am very new to OpenLDAP and I am trying to put a Linux box authenticating trough OpenLDAP instead of using the standard password file.
For this use I followed the tutorial you can find at http://ldots.org/ldap/ but it seems this howto is out of date. The first problem I ran into was when trying to insert a new user in LDIF format, I corrected the first error I got and now this is the file I have
dn: uid=myuser,ou=People,dc=example,dc=com uid: myuser cn: myuser sn: Doe givenname: John objectclass: person objectclass: posixaccount objectclass: account ou: People uidnumber: 10001 gidnumber: 10001 homedirectory=: /home/ldap/john loginshell: /bin/bash
When I try to run ldapadd I get the following error: adding new entry "uid=branc0,ou=People,dc=example,dc=com" ldap_add: Invalid syntax (21) additional info: objectclass: value #1 invalid per syntax
I am not sure what the problem is, although I?m pretty sure it is between the chair and the keyboard. Maybe someone on the list can direct me to a more up-to-date tutorial on setting up authentication with LDAP ?
OpenLDAP version is 2.4.7