Bug 623 - ldap object class violation when adding machine with pdbedit
ldap object class violation when adding machine with pdbedit
Status: RESOLVED WORKSFORME
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts
3.0.0
All Linux
: P3 minor
: none
Assigned To: Gerald (Jerry) Carter
:
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:


Attachments

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 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