Referral support (was: port of Net::LDAP::Entry)

Robert Sander ml-it-python-ldap-dev at epigenomics.com
Thu Jul 25 23:01:03 CEST 2002


On Thu, 25 Jul 2002 10:45:12 +0000 (UTC),
 Michael Ströder <michael at stroeder.com> wrote:
> import ldap
> 
> l=ldap.initialize('ldap://ldap.rediris.es')
> l.set_option(ldap.OPT_PROTOCOL_VERSION,ldap.VERSION3)
> l.set_option(ldap.OPT_REFERRALS,0)
> result = l.search_s('dc=es',ldap.SCOPE_ONELEVEL,'(objectClass=*)')
> for i in result:
>    print i

Thanks for the example code. That actually works!

I think I have to check all these options and their meaning again. ;-)

Greetings
-- 
Robert Sander
Manager
Information Systems        www.epigenomics.com        Kastanienallee 24
+493024345330                                              10435 Berlin





More information about the python-ldap mailing list