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 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 :-)

-- Roland

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


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/delete.py.

But it's not in a shape to directly use it. It's more munged into the
application. And the hasSubordinates handling is slightly different from
what you need. It rather trys to delete a whole entry and retries
differently after receiving ldap.NOT_ALLOWED_ON_NONLEAF.

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.

Ciao, Michael.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev