Re: Need help to search all dc's available

omi <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization http://groups.google.com
Message-ID <bf81ff47-534d-4f89-be97-8e8f9eb8c724@h16g2000yqj.googlegroups.com>
On Jan 5, 10:56 pm, [email protected] (Omkar) wrote:
> hi all,
> I am trying to write one tool, that could find the all available dc
> values.
> see example:
> -> base dn: dc=A, dc=B, dc=C
>                   ou =users, dc=A, dc=B, dc=C
>                   ou= groups,dc=A, dc=B, dc=C
>                   dc=D, dc=A, dc=B, dc=C
>                             ou=users, dc=D, dc=A, dc=B, dc=C
> something like structure I have in LDAP DIR,
> now I just want to find out all avalable dc's by accepting base dn as
> input in PERL:LDAP.
> How I can do that? any tutorial / script?
>
> Thanks,
> Omi

Got One of the Answer as following :

my($mesg) = $ldap->search( base => "dc=A,dc=B,dc=C",
                                           filter =>
'(objectclass=dcObject)');
I hope that works correctly. Please let me know if there  is any other
solutions available.

Thanks,
Omi.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.