[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap not very helpful



I get the following an error when i try to ldapadd -D
"cn=Manager,o=domain-name" -W < test.ldif
The error"
ldapadd: no attributes to change or add
(entry="dc=ldap,dc=domain-name,dc=org       objectClass: top  
objectClass: dcObject   objectClass: organization   dc: domain-name   o:
domain-name   description: Full Company Name Domain")
ldif_record() = 89
"

I have used the default example files form yolinux.com , to try and get
the server to return result from windows adress book search .. before i
change the config to my needs .

Many thanks
Gregory Machin

the test.ldif

dn: dc=ldap,dc=domain-name,dc=org
    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
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    mail: LAnderson@isp.com
    givenname: Larry
    sn: Anderson
    ou: MemberGroupA
    street: 14 Cherry St.
    l: Dallas
    st: TX
    postalCode: 76888
    telephoneNumber: (800)555-1212
    homephone: 800-555-1313
    facsimileTelephoneNumber: 800-555-1414
    seeAlso: http://www.domain-name.org
    jpegPhoto:< file:///path/to/file.jpeg

    dn: cn=Moe Anderson,ou=MemberGroupA,o=domain-name
    cn: Moe Anderson
    sn: Anderson
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    mail: MAnderson@isp.com
    givenname: Moe
    ou: MemberGroupA
    street: 15 Cherry St.
    l: Dallas
    st: TX
    postalcode: 76888
    pager: 800-555-1319
    homePhone: 800-555-1313
    mobile: 800-555-1318

    dn: cn=Curley Anderson,ou=MemberGroupB,o=domain-name
    cn: Curley Anderson
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    mail: CAnderson@isp.com
    givenname: Curley
    sn: Anderson
    ou: MemberGroupB
    street: 16 Cherry St.
    l: Dallas
    st: TX
    postalcode: 76888
    pager: 800-555-1319
    homePhone: 800-555-1313
    mobile: 800-555-1318

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