php - adLDAP group()->members() returns boolphp -
i trying use adldap list of members group, here documentation have used in past , swore worked. adldap wiki getting bool(false) output following:
$checkquery = "select orgname, adgroup organization"; $stmt = $dbh->prepare($checkquery); $stmt->execute(); $data = $stmt->fetchall(pdo::fetch_assoc); foreach($data $row){ $groupmembers = $adldap->group()->members($row['adgroup'], true); var_dump($groupmembers); }
the thing changed php versions, 5.6.0 7.1.7 , not working. have tested other functions within adldap such like:
$usergroups = $adldap->user()->groups('usernamehere');
which returned groups. switched 5.6.0 , worked perfectly. running adldap 4.0.4 think latest according find. have suggestings on how working? explored using built in ldap functions couldn't find way recursive group memberships , can't remember if got simple group membership work.
has been using adldap php 7.1.7 or php 7.0+ , got work? don't know why returns bool instead of members. may more of know of work around type of question don't know if there simple fix this.
thanks
Comments
Post a Comment