Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-18-2005, 12:37 AM   #1
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
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
Old 07-18-2005, 12:48 AM   #2
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup OpenLDAP or OpenRadius Server for User Authentication? Akhran Linux - Newbie 1 08-10-2005 04:55 AM
authentication token manipulation error abuelmaati Linux - Newbie 3 02-04-2005 07:21 AM
pop authentication error manicajk Linux - General 0 08-17-2004 05:22 PM
dovecot authentication error snurckle Linux - Newbie 4 08-13-2004 05:32 PM
LAMP with OpenLdap-Support; Bug//Funny error // SOLVED Trucker Linux - Software 0 02-27-2003 10:27 AM

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration