upgrade provision script TP1

Andrew Bartlett abartlet at samba.org
Mon Aug 24 04:41:36 MDT 2009

On Mon, 2009-08-24 at 18:08 +1000, Andrew Bartlett wrote:
> On Mon, 2009-08-24 at 01:45 +0400, Matthieu Patou wrote:
> > Hello andrew,
> > 
> > I've been pushing quite hard on this upgrade script.
> > 
> > So far it only upgrades the schema but most is already in to do upgrade 
> > for the whole sam.ldb (schema, users,configuration).
> > 
> > I'd like that anyone interested throw an eye on it, of course it is a 
> > bit rough but it's more or less like this that I think my script will be.
> The big loop where you try to figure out the difference between the two
> entries could probably be reworked - perhaps if a binding for
> ldb_msg_diff() was added, and then you just worked on the output of
> that?

I've added bindings for ldb_msg_diff().  There are some things you will
want to skip from the diff it provides, so perhaps use:

del msg["objectGUID"]
del msg["parentGUID"]

to remove those things from the modify message. 

I hope this helps,

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090824/40aff63a/attachment.pgp>

More information about the samba-technical mailing list