Unix Technical Forum

ldap_add: Invalid syntax

This is a discussion on ldap_add: Invalid syntax within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I have been running Slackware 10 When I use the following command: ldapadd -x -D "cn=Manager,dc=tac,dc=com" -W -f tac.ldif ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:10 PM
nntp.valuelinx.net
 
Posts: n/a
Default ldap_add: Invalid syntax

I have been running Slackware 10

When I use the following command:

ldapadd -x -D "cn=Manager,dc=tac,dc=com" -W -f tac.ldif

I get the following error:

adding new entry "dc=tac,dc=com "
ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax

I have ran slapd with option -d and this it the output I get:

@(#) $OpenLDAP: slapd 2.2.15 (Aug 27 2004 12:11:55) $
root@SRVR01:/root/openldap-2.2.15/servers/slapd
daemon: IPv6 socket() failed errno=97 (Address family not supported by
protocol)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_db_init: Initializing bdb database
slapd starting
conn=0 fd=11 ACCEPT from IP=10.1.4.2:33287 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="cn=Manager,dc=tac,dc=com" method=128
conn=0 op=0 BIND dn="cn=Manager,dc=tac,dc=com" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 ADD dn="dc=tac,dc=com"
conn=0 op=1 RESULT tag=105 err=21 text=objectclass: value #0 invalid per
syntax
conn=0 op=2 UNBIND
conn=0 fd=11 closed

Here is my slapd.conf configuration:

include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/samba.schema

pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args


database bdb
suffix "dc=tac,dc=com"
rootdn "cn=Manager,dc=tac,dc=com"
rootpw {SSHA}ou.POp8x9U0GSESD4bnA7+O3jUiyG9V2
directory /usr/local/var/openldap-data
# Indices to maintain
index objectClass eq


If anyone can see anything that I have configured wrong it
would be a big help.

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:10 PM
Sami Nuuttila
 
Posts: n/a
Default Re: ldap_add: Invalid syntax

"nntp.valuelinx.net" <w00t@valuelinx.net> writes:

> adding new entry "dc=tac,dc=com "
> ldap_add: Invalid syntax (21)
> additional info: objectclass: value #0 invalid per syntax
>


Check the tac.ldif file for trailing spaces in the "objectclass"
line(s).

--
Sami Nuuttila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com