Bug 10094 - Adding custom object class requires two ldapmodify operations
Summary: Adding custom object class requires two ldapmodify operations
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.0.8
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-18 14:31 UTC by Roland Gruber
Modified: 2017-06-29 07:15 UTC (History)
3 users (show)

See Also:


Attachments
Samba 4 object class (1.08 KB, application/download)
2013-08-18 14:31 UTC, Roland Gruber
no flags Details
Samba 4 attributes (1.36 KB, application/download)
2013-08-18 14:31 UTC, Roland Gruber
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Gruber 2013-08-18 14:31:18 UTC
Created attachment 9142 [details]
Samba 4 object class

I installed a custom LDAP schema following this description:

https://wiki.samba.org/index.php/Samba4/Schema_extenstions

My object class is auxiliary and has only optional attributes.


The problem is that when I try to add the object class to a user then
this is not possible in combination with one of the optional
attributes. I must first add the object class and in a second step add
the attribute.

Error message:

ldap_modify: Object class violation (65)
        additional info: 00002014: objectclass_attrs: attribute
'passwordSelfResetAnswer' on entry 'CN=myuser,DC=samba4,DC=test' does
not exist in the specified objectclasses!

Used LDIF:

dn: CN=myuser,DC=samba4,DC=test
changetype: modify
add: objectClass
objectClass: passwordSelfReset
-
add: passwordSelfResetAnswer
passwordSelfResetAnswer: 123
-

Splitting the LDIF and adding the object class first will work.

Any ideas why Samba refuses the modify? Zarafa also uses auxiliary
object classes and there it works.

The schema files are attached. Samba is Sernet Samba appliance 4.0.8.
Comment 1 Roland Gruber 2013-08-18 14:31:50 UTC
Created attachment 9143 [details]
Samba 4 attributes