Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Ldap - python

  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ldap - python

    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
    Last edited by obarreto; 06-16-2009 at 04:24 PM.

  • #2
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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;


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •