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