Re: subtree move

2007-06-26 Thread Roland Hedberg
Michael Ströder wrote: > Hmm, glancing over the code I'd suggest to implement it separately. I'd > try to rename the whole sub-tree first and then handle > ldap.NOT_ALLOWED_ON_NONLEAF smoothly. That was my intention. -- Roland

Re: subtree move

2007-06-26 Thread Michael Ströder
Roland Hedberg wrote: >> I have something slightly more efficient based on evaluating >> hasSubordinates or similar attributes for sub-tree deletion in web2ldap. > > If you are willing to share I'd love to have it :-) Hmm, look into web2ldap's source (GPL): function DelTree() in pylib/w2lapp/dele

Re: subtree move

2007-06-26 Thread Roland Hedberg
Michael Ströder wrote: > Roland Hedberg wrote: >> So, has anyone implemented modifyDN on top of python-ldap ? > > Or are you talking about moving sub-trees in case the LDAP server does > not support sub-tree renaming? Yes, I can make no assumptions as to what the server can or can't. > I have s

Re: subtree move

2007-06-25 Thread Michael Ströder
Roland Hedberg wrote: > > It seems like Python-ldap does not support modifyDN. That is moving a > subtree from one place on a server to another place on the same server. See methods rename() and rename_s() with argument newsuperior. You can rename a sub-tree with e.g. with OpenLDAP/back-hdb. > S

subtree move

2007-06-25 Thread Roland Hedberg
Hi! It seems like Python-ldap does not support modifyDN. That is moving a subtree from one place on a server to another place on the same server. So, has anyone implemented modifyDN on top of python-ldap ? I realize it will not be very efficient, but then the subtree I might have to move is only