...

View Full Version : Ldap - python



obarreto
06-16-2009, 04:19 PM
I started in python and I need to solve a problem involving ldap.

In the Statement

query = link.search_s(Base_DN,ldap.SCOPE_SUBTREE,filtro_all);

if(not query):
return false;

return true;

The if is never....

because it contains a list ..
as can be found whether or not what I'm looking for

obarreto
06-22-2009, 07:06 PM
query is list of list....


when it is not an element which satisfies the conditions of the filter then return False,.

if (query[0][0]= None):
return False;
else
return True;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum