Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Q: LDAP, Object class violation (65) caused by a CustID attr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nexim
n00b
n00b


Joined: 06 Apr 2004
Posts: 42

PostPosted: Tue May 23, 2006 1:01 pm    Post subject: Q: LDAP, Object class violation (65) caused by a CustID attr Reply with quote

Hi.

I'm trying to get an ldap service up an running on my server. However, this ldap database need to contain an additional CustID tag which I've exported from a customer database.

The slapd.conf included file my.schema contains:

Code:
attributetype ( 1.1.2.1.1 NAME 'CustID'
        DESC 'Customer ID number'
        EQUALITY integerMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
        SINGLE-VALUE )


An example LDIF looks like this:

Code:
dn: uid=janedoe,ou=People,dc=example,dc=com
uid: janedoe
cn: Jane Doe
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: {crypt}PASSWORD
shadowLastChange: 11511
shadowMax: 99999
shadowWarning: 7
loginShell: /sbin/nologin
CustID: 8408
uidNumber: 705
gidNumber: 100
homeDirectory: /home/janedoe
gecos: Jane Doe


But, when I try to insert the LDIF data from the file with the command:

Code:
ldapadd -h 192.168.1.10 -x -W -D 'cn=Manager,dc=example,dc=com' -f passwd.ldif -c


I get the following error message:

Code:
ldap_add: Object class violation (65)
        additional info: attribute 'CustID' not allowed


What have I done wrong? Please help :)


Thnx,
/Nexim
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum