problem with filter
Jens Vagelpohl
jens at zope.com
Sun Aug 11 03:19:23 CEST 2002
your scope is probably inappropriate. use ldap.SCOPE_BASE.
jens
On Saturday, August 10, 2002, at 03:21 , Tjabo Kloppenburg wrote:
> hi,
>
> I'm writing a program in python wir python-ldap2.0.0.-pre04 (linux).
>
> I can do all sorts of things, like searching:
> L = myldap.search_s( base, ldap.SCOPE_SUBTREE, "uid=ma*" )
>
> let's say I have found twenty results, and I let the user chose one of
> the DNs.
> Now I want to retrieve the data of the object of a given dn. The problem
> is how to tell
> ldap.search_s to get the data of a dn like "uid=freak,ou=staff,o=company"
> .
>
> L = myldap.search_s( base, ldap.SCOPE_SUBTREE, dn )
> gives an empty list.
>
> L = myldap.search_s( base, ldap.SCOPE_SUBTREE, "dn=" + dn )
> gives an empty list, too.
>
> what's the right filter/function for this?
>
>
> thanks a lot,
> tk.
>
More information about the python-ldap
mailing list