[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapadd not working ?
seal:/usr/local/etc/openldap# ldapadd -D "cn=Manager,o=domain-name" -W <
test.ldif
Enter LDAP Password:
>> i get the following error what am i doing wrong ???
adding new entry "cn=Manager,o=domain-name"
ldap_add: Invalid syntax
additional info: objectClass: value #10 invalid per syntax
ldif_record() = 21
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
seal:/usr/local/etc/openldap#
my slapd.conf
##################################################################
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
# Specify first database
database ldbm
suffix "o=domain-name"
rootdn "cn=Manager,o=domain-name"
rootpw secret
directory /usr/local/var/openldap-ldbm
defaultaccess read
schemacheck on
lastmod on
index cn,sn,st pres,eq,sub
##################################################################
my test.ldif
I've removed all uncessary spaces ....
##################################################################
dn:cn=Manager,o=domain-name
objectClass: top
objectClass: dcObject
objectClass: organization
dc: domain-name
o: domain-name
description: Full Company Name Domain
dn: o=domain-name
objectClass: top
objectClass: organization
o: domain-name
description: Full Company Name
dn: cn=AdminManager,o=domain-name
objectClass: organizationalRole
cn: AdminManager
description: LDAP Directory Administrator
dn: ou=MemberGroupA,o=domain-name
ou: MemberGroupA
objectClass: top
objectClass: organizationalUnit
description: Members of MemberGroupA
dn: ou=MemberGroupB,o=domain-name
ou: MemberGroupB
objectClass: top
objectClass: organizationalUnit
description: Members of MemberGroupB
dn: cn=Larry Anderson,ou=MemberGroupA,o=domain-name
cn: Larry Andersone
obje