Article View: fj.net.ldap
Article #127Re: ldap_add: Invalid syntax
From: Olivier d'ANHOFFRE
Date: Sat, 11 Sep 2004 17:53
Date: Sat, 11 Sep 2004 17:53
65 lines
3265 bytes
3265 bytes
As your entry is the base of the directory, I think you have to create it
separately by slapadd (without launching the slapd server). See the OpenLdap
documentation, part about creating your directory
"nntp.valuelinx.net" <w00t@valuelinx.net> a οΏ½crit dans le message de
news:Huudnem1dtMQm6jcRVn-iw@valuelinx.net...
> 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
>
>
Technical Details
Message-ID:
<chve2h$b9c$1@news-reader4.wanadoo.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!wanadoo.fr!not-for-mailReferences:
<Huudnem1dtMQm6jcRVn-iw@valuelinx.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 103627,d0fffa30a4b824c2 X-Google-Attributes: gid103627,public X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!wanadoo.fr!not-for-mail From: "Olivier d'ANHOFFRE" <olivier.d-anhoffre@voila.fr> Newsgroups: fj.net.ldap Subject: Re: ldap_add: Invalid syntax Date: Sat, 11 Sep 2004 19:53:34 +0200 Organization: Wanadoo, l'internet avec France Telecom Lines: 67 Message-ID: <chve2h$b9c$1@news-reader4.wanadoo.fr> References: <Huudnem1dtMQm6jcRVn-iw@valuelinx.net> NNTP-Posting-Host: alagny-152-1-8-66.w83-112.abo.wanadoo.fr X-Trace: news-reader4.wanadoo.fr 1094925201 11564 83.112.134.66 (11 Sep 2004 17:53:21 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 11 Sep 2004 17:53:21 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441