Author: tridge Date: 2005-10-13 06:09:37 +0000 (Thu, 13 Oct 2005) New Revision: 10955
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10955 Log: 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? Modified: branches/SAMBA_4_0/source/setup/provision_users.ldif Changeset: Modified: branches/SAMBA_4_0/source/setup/provision_users.ldif =================================================================== --- branches/SAMBA_4_0/source/setup/provision_users.ldif 2005-10-13 05:04:16 UTC (rev 10954) +++ branches/SAMBA_4_0/source/setup/provision_users.ldif 2005-10-13 06:09:37 UTC (rev 10955) @@ -86,6 +86,7 @@ objectClass: top objectClass: person objectClass: organizationalPerson +objectClass: user objectClass: computer cn: ${NETBIOSNAME} uSNCreated: 1
