[Date Prev][Date Next] [Chronological] [Thread] [Top]

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