nexim n00b
Joined: 06 Apr 2004 Posts: 42
|
Posted: Tue May 23, 2006 1:01 pm Post subject: Q: LDAP, Object class violation (65) caused by a CustID attr |
|
|
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 |
|