Bug 623 - ldap object class violation when adding machine with pdbedit
Summary: ldap object class violation when adding machine with pdbedit
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.0
Hardware: All Linux
: P3 minor
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
Depends on:
Blocks: 807
  Show dependency treegraph
Reported: 2003-10-14 15:06 UTC by Ryan Henry
Modified: 2007-06-09 17:39 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Henry 2003-10-14 15:06:08 UTC
pdbedit -r -m machinename$ and get the following error:

ldapsam_modify_entry: Failed to add user dn=
uid=machinename$,ou=Computers,dc=myorg,dc=com with: Object class violation
        object class 'sambaSamAccount' requires attribute 'sambaSID'

The machine add script works fine manually.  Running openldap-2.0.27
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:27:39 UTC
database cleanup
Comment 2 Simo Sorce 2007-06-09 17:39:48 UTC
The bug as stated is probably invalid.
The -m option make sense only when creating a new account to specify the type.
Any following modification requires -r only.
pdbedit -a -m test$ works fine
pdbedit -r test$ -f foobar works fine as well

closing it, reopen if there is still some issue with pdbedit