r10955: finally worked out why our computer accounts were being identified as users...
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Oct 2005 06:09:37 +0000 (06:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:48 +0000 (13:39 -0500)
The problem was that the samdb module was auto-adding objectClass=user
for these accounts. That would be OK, as computer accounts are
supposed to be in that objectClass, but mmc cares about the order of
the values in the objectClass attribute! It looks for the last value,
and takes that as the value to use when deciding how to manipulate the record.

So, this patch adds an explicit objectClass=user to the record when it
gets created, which tells the samdb module to not add it as well. That
fixes the order. I suspect we are missing something else though - is
objectClass supposed to auto-sort based on the schema?
(This used to be commit 68c5f807fdb99fd605154d455e61a08293cbd2d0)

source4/setup/provision_users.ldif

index 2e420b226a897ad0f0c206d6b18e731dc2cb018c..a23943a3ef48fef70608538475c06d167c238a62 100644 (file)
@@ -86,6 +86,7 @@ dn: CN=${NETBIOSNAME},OU=Domain Controllers,${BASEDN}
 objectClass: top
 objectClass: person
 objectClass: organizationalPerson
+objectClass: user
 objectClass: computer
 cn: ${NETBIOSNAME}
 uSNCreated: 1