[Ilugc] Ldap Configuration problem

  • From: sabarinews@xxxxxxxxx (Sabari Nathan)
  • Date: Tue, 24 Feb 2004 05:22:01 +0530

Hello Friends

     I have faced some problems in ldap configuration in redhat linux 7.1 ,
My ldap database configuration is look like this

# ldbm database definitions

database        ldbm
suffix            "o=info3"
rootdn          "cn=info3admin,o=info3"
rootpw          secret1
directory       /var/lib/ldap/info3
defaultaccess   read
schemacheck   on
lastmod            on
index   objectClass,cn,sn,mail                  eq


--------------------------
And My LDIF file is like
---------------------------
vi /var/lib/ldap/info3/info3.ldif

dn: cn=info3admin,o=info3
objectClass: top
mail: nathan@xxxxxxxxxxxxxx
sn: Nathan

dn: o=info3
cn= Account
objectClass: top1
mail: account@xxxxxxxxxxxxxx
sn: account
------------------------------------------------
And Then I ran the following ldap command
-------------------------------------------------

# ldapadd -f info3.ldif -xv -D "cn=info3admin,o=info3" -w secret1

ldap_initialize( <DEFAULT> )
add objectClass:
        top
add mail:
        nathan@xxxxxxxxxxxxxx
add sn:
        Nathan
adding new entry "cn=info3admin,o=info3"
ldap_add: Object class violation
        additional info: attribute not allowed

ldif_record() = 65


Now i am in online,please Reply me immediately this is very urgent .
                                Thank You

Regards
A.Sabarinathan









Other related posts: