Fork me on GitHub

madauthlite question  Bottom

  • Working on a mod to this that will allow multiple OU searches. It searches the first OU just fine the second one it never looks through. Anyone see anything wrong with my code for this?

    if (!$ldap_sr = ldap_search($ldap_ds, pnModGetVar('madauthlite', 'madauthlite_searchdn'), pnModGetVar('madauthlite', 'madauthlite_searchattr')."=".pnVarPrepForStore($uname), $justthese)) {
    if (!$ldap_sr = ldap_search($ldap_ds, pnModGetVar('madauthlite', 'madauthlite_searchdn2'), pnModGetVar('madauthlite', 'madauthlite_searchattr')."=".pnVarPrepForStore($uname), $justthese)) {
    return false;
    }

    }

This list is based on users active over the last 60 minutes.