From: Michael <mi...@st...> - 2000-10-10 14:51:14
|
HI! Back to a python-ldap build with OpenLDAP 1.2.11 libs: It seems that referral exceptions are not raised if doing an asynchronous search call. In the example below the entry ldap://localhost:1389/c=DE is a referral entry holding the ref attribute ldap://ldap.nameflow.net:1389. l is my LDAP connection object. >>> l.options=0 >>> l.search_s('c=DE',ldap.SCOPE_ONELEVEL,'(objectclass=*)') Traceback (most recent call last): File "<stdin>", line 1, in ? ldap.PARTIAL_RESULTS: {'desc': 'Partial results and referral received', 'info': 'Referral:\012ldap://ldap.nameflow.net:1389/c=DE', 'matched': 'c=DE'} This seems to be ok. >>> m=l.search('c=DE',ldap.SCOPE_ONELEVEL,'(objectclass=*)') >>> l.result(m,0) ('RES_SEARCH_RESULT', []) This seems not ok to me. Shouldn't there be an exception ldap.PARTIAL_RESULTS raised? My OpenLDAP 2.0.6 slapd logs that a referral occured immediately after invoking the l.search() method. Ciao, Michael. |