Groups > IBM > IBM Tivoli Directory Integrator > Re: TDI 6.1.1 LDAP Connector Question




TDI 6.1.1 LDAP Connector Question

TDI 6.1.1 LDAP Connector Question
Thu, 28 Feb 2008 12:49:00 -050
Hi!  I am relatively new to the TDI world and have run into an issue 
deleting sub domains from a tds ldap server.  Namely, I can't seem to force 
a  recursive delete (ldapdelete -r) from within TDI to delete everything 
recursively from the root node down.

  It appears that the ldap connector for tdi 6.1.1 is a v3 compatible 
client, what am I missing?

  Any help would be gratefully appreciated as I am trying to keep this AL as 
simple as possible...

Pat Smith
Ascendant Technology
psmith@atech.com 

Post Reply
Re: TDI 6.1.1 LDAP Connector Question
Thu, 28 Feb 2008 19:56:24 +010
Pat,

TDI is compatible with the LDAP v2 and v3 protocols... but being "v3 
compatible" doesn't mean you handle recursive deletions. The -r flag of 
the ldapdelete command uses an LDAP administrative control to signal a 
recursive deletion to the server. Other clients (like Jarek Gawor's LDAP 
Browser) has a 'delete children' option which does this without using an 
LDAP protocol extension.

Anyways, maybe you want to take a look at this thread to find a way to 
crack the nut in TDI:

news://news.software.ibm.com:119/c75d17$5doo$1@news.boulder.ibm.com

HTH,

Christian

Pat Smith wrote:
> Hi!  I am relatively new to the TDI world and have run into an issue 
> deleting sub domains from a tds ldap server.  Namely, I can't seem to force

> a  recursive delete (ldapdelete -r) from within TDI to delete everything 
> recursively from the root node down.
> 
>   It appears that the ldap connector for tdi 6.1.1 is a v3 compatible 
> client, what am I missing?
> 
>   Any help would be gratefully appreciated as I am trying to keep this AL
as 
> simple as possible...
> 
> Pat Smith
> Ascendant Technology
> psmith@atech.com 
> 
Post Reply
Re: TDI 6.1.1 LDAP Connector Question
Thu, 28 Feb 2008 19:58:23 +010
Hi Pat,

The TDI LDAP Connector can only delete one entry at a time
(at least to my knowledge -- someone step in and educate me
otherwise, please)

So you will want to build an AL that walks the tree, from the
root nodes and up, deleting as it goes.

If you have any experience with recursive programming then
it might interest you to know that an AL can call itself recursively,
so you could take that approach. Regardless, you will need
to do some scripting to work your way down the tree and then
traverse back up, deleting as you go.

-Eddie

Pat Smith wrote:
> Hi!  I am relatively new to the TDI world and have run into an issue 
> deleting sub domains from a tds ldap server.  Namely, I can't seem to force

> a  recursive delete (ldapdelete -r) from within TDI to delete everything 
> recursively from the root node down.
> 
>   It appears that the ldap connector for tdi 6.1.1 is a v3 compatible 
> client, what am I missing?
> 
>   Any help would be gratefully appreciated as I am trying to keep this AL
as 
> simple as possible...
> 
> Pat Smith
> Ascendant Technology
> psmith@atech.com 
> 
Post Reply
about | contact