s4:upgradeprovision - fix up the script regarding linked attributes
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 10 Jan 2010 20:34:05 +0000 (21:34 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 10 Jan 2010 21:48:06 +0000 (22:48 +0100)
commit2cedefabc93c8a1fcb49d65a3f78a344e814f826
treea56ebac6528d428e778c0d355029675e65161d51
parente0d6b0977eb5c5a2c95ee2de10c7b18550371b50
s4:upgradeprovision - fix up the script regarding linked attributes

We have to try to add new objects until between two iterations we didn't make
any progress. Either we are then done (no objects remaining) or we are
incapable to do this fully automatically.

The latter can happen if important system objects (builtin groups, users...)
moved (e.g. consider one of my recent comments). Then the new object can't be
added if it contains the same "sAMAccountName" attribute as the old one. We
have to let the user delete the old one (also to give him a chance to backup
personal changes - if needed) and only then the script is capable to add the
new one onto the right place. Make this clear with an exhaustive error output.

I personally don't see a good way how to do this better for now so I would leave
this as a manual step.
source4/scripting/bin/upgradeprovision