LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   OpenLDAP Authentication error (https://www.linuxquestions.org/questions/linux-networking-3/openldap-authentication-error-344159/)

paul_mat 07-18-2005 12:37 AM

OpenLDAP Authentication error
 
hi there, i'm trying to get openLDAP and phpldapadmin working, and i need to Authenticate to server My LDAP Server and i can't, because i don't know how to add a ldap user via the command line.

i've tryed

[root@fedora /]# ldapadd -f /tmp/users.ldif -x -D "dc=***,dc=***=qld,dc=***,dc=***" -w secret
adding new entry "dc=***,dc=***=qld,dc=***,dc=***"


and then i get this error message

ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax


this is my /tmp/users.ldif file

dn: dc=***,dc=***=qld,dc=***,dc=***
objectclass: top
objectclass: organization
o: The Fedora Test
dc: dc=school

dn: cn=Manager,dc=***,dc=***=qld,dc=***,dc=***
objectclass: top
cn: Manager


what am i doing wrong?

i've just completed a clean install with fedora core 4, and i know every little about ldap

paul_mat 07-18-2005 12:48 AM

i've managed to get it to reduce the amount of errors

[root@fedora /]# ldapadd -x -D "cn=Manager,dc=school,dc=cathedral,dc=qld,dc=edu,dc=au" -f /tmp/users.ldif -W
Enter LDAP Password:
ldap_bind: Invalid credentials (49)


thats what i get now? what credentials do i need?

i changes my users.ldif file to


dn: dc=school,dc=cathedral,dc=qld,dc=edu,dc=au
objectclass: dcObject
objectclass: organization
o: The Fedora Test
dc: school

dn: cn=Manager,dc=school,dc=cathedral,dc=qld,dc=edu,dc=au
objectclass: organizationalRole
cn: Manager


All times are GMT -5. The time now is 05:34 AM.