Unable to add posixAccount objectclass to AD user

brendan powers brendan0powers at gmail.com
Sun Nov 29 20:09:16 MST 2009

I'm using a recent revision(about a week old) of samba4, and I'm
trying to add the posixAccount class to an AD user. I get this error
"object class violation". It doesn't seem to matter what tool I use, I
always get the same error. I haven't found any more details in the
logs that would indicate why this error is happening. Does anyone have
an idea about where I should look?

The command I'm using to test
ldapmodify -f ./test.ldiff -H 'ldap://localhost:389' -I

The test.ldiff file
dn: CN=Administrator,CN=Users,DC=resara,DC=local
changetype: modify
add: objectClass
objectClass: posixAccount

add: uid
uid: Administrator

add: uidNumber
uidNumber: 10123

add: gidNumber
gidNumber: 10123

replace: homeDirectory
homeDirectory: /home/Administrator

add: userPassword
userPassword: badpw

add: loginShell
loginShell: /bin/bash

add: gecos
gecos: Administrator;;;

add: description
description: Admin User

More information about the samba-technical mailing list