[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_add: Object class violation (65) additional info: no structural object class provided
- To: OpenLDAP-software@OpenLDAP.org
- Subject: ldap_add: Object class violation (65) additional info: no structural object class provided
- From: Oscar Plameras <oscarp@acay.com.au>
- Date: Mon, 05 Jul 2004 16:50:30 +1000
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
I'm running openldap-2.1.30 on Linux.
I get an error "...no structural object class provided" when running
ldapadd on:
ldif1.txt
[oscarp@toshiba openldap]$ cat ldif1.txt
dn: uid=oscarp, ou=People,dc=tok,dc=com,dc=au
sambaLogonTime: 0
displayName: Oscar Plameras
sambaLMPassword: 552902031BEDE9EFAAD3B435B51404EE
sambaPrimaryGroupSID: S-1-5-21-2447931902-1787058256-3961074038-1201
objectClass: posixAccount
objectClass: sambaSamAccount
sambaAcctFlags: [UX ]
userPassword: secret
uid: oscarp
uidNumber: 501
cn: Oscar Plameras
loginShell: /bin/bash
logoffTime: 0
gidNumber: 100
sambaKickoffTime: 0
sambaPwdLastSet: 0
sambaSID: S-1-5-21-2447931902-1787058256-3961074038-5004
homeDirectory: /home/oscarp
sambaPwdCanChange: 0
sambaPwdMustChange: 0
sambaNTPassword: 878D8014606CDA29677A44EFA1353FC7
[oscarp@toshiba openldap]$ ldapadd -f ldif1.txt -x -h localhost -D
"cn=root,o=toshiba,dc=tok,dc=com,dc=au" -W
Enter LDAP Password:
adding new entry "uid=oscarp, ou=People,dc=tok,dc=com,dc=au"
ldapadd: update failed: uid=oscarp, ou=People,dc=tok,dc=com,dc=au
ldap_add: Object class violation (65)
additional info: no structural object class provided
I have the ff on 'samba.schema':
snip ...........
objectclass ( 1.3.6.1.4.1.7165.2.2.2 NAME 'sambaAccount' SUP top STRUCTURAL
DESC 'Samba Account'
MUST ( uid $ rid )
MAY ( cn $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $
acctFlags $
displayName $ smbHome $ homeDrive $ scriptPath $
profilePath $
description $ userWorkstations $ primaryGroupID $ domain ))
snip ...........