πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by nntp.valuelinx.net Tue, 31 Aug 2004 23:16
ldap_add: Invalid syntax
#120
Author: nntp.valuelinx.net
Date: Tue, 31 Aug 2004 23:16
56 lines
3230 bytes
 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 
Re: ldap_add: Invalid syntax
#127
Author: Olivier d'ANHOFFRE
Date: Sat, 11 Sep 2004 17:53
65 lines
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
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads