s4:samldb - Major rework
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 17 Aug 2009 19:29:47 +0000 (21:29 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 7 Sep 2009 06:37:24 +0000 (08:37 +0200)
commit5f2832a5dc02e6d240c398e3fada4c92ae99d4ea
tree7a71f685447e1a00601b14d64cb93679db5c3ef5
parent353481daa2497f52c8eec6d760981f17a5f528ca
s4:samldb - Major rework

This fixes up the change of the primary group of a user when using the ADUC
console:
- When the "primaryGroupId" attribute changes, we have to delete the
  "member"/"memberOf" attribute reference of the new primary group and add one
  for the old primary group.
- Deny deletion of primary groups according to Windows Server (so we cannot
  have invalid "primaryGroupID" attributes in our AD).
- We cannot add a primary group directly before it isn't a secondary one of a
  user account.
- We cannot add a secondary reference ("member" attribute) when the group has
  been chosen as primary one.

This also removes the LDB templates which are basically overhead now.

This should also fix bug #6599.
source4/dsdb/samdb/ldb_modules/samldb.c
source4/scripting/python/samba/provision.py
source4/setup/provision_templates.ldif [deleted file]
source4/setup/provision_templates_init.ldif [deleted file]