|
From: Tjabo K. <t.k...@bi...> - 2002-08-10 19:23:10
|
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. |