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)
commit6b7d7f22e754cb8a580951ae3626bb91d4642c75
treee5ca7038a4e050b51d5c91adbdf24c9647d87518
parent0fa924bb8f446e35a0fd543cda20b23c81e7dc9e
r10955: finally worked out why our computer accounts were being identified as users in mmc.

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