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
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735