public function getLDAPGroupMembers($dn)
    {
        $groupObj = Group::get()->filter('DN', $dn)->first();
        $groupData = $this->getGroupByGUID($groupObj->GUID);
        $members = !empty($groupData['member']) ? $groupData['member'] : [];
        // If a user belongs to a single group, this comes through as a string.
        // Normalise to a array so it's consistent.
        if ($members && is_string($members)) {
            $members = [$members];
        }

        return $members;
    }
public function getLDAPGroupMembers($dn)
    {
        $groupObj = Group::get()->filter('DN', $dn)->first();
        $groupData = $this->getGroupByGUID($groupObj->GUID);
        $members = !empty($groupData['member']) ? $groupData['member'] : [];
        // If a user belongs to a single group, this comes through as a string.
        // Normalise to a array so it's consistent.
        if ($members && is_string($members)) {
            $members = [$members];
        }

        return $members;
    }
public function getLDAPGroupMembers ( $ dn ) { $ groupObj = Group :: get ( ) -> filter ( 'DN' , $ dn ) -> first ( ) ; $ groupData = $ this -> getGroupByGUID ( $ groupObj -> GUID ) ; $ members = ! empty ( $ groupData [ 'member' ] ) ? $ groupData [ 'member' ] : [ ] ; // If a user belongs to a single group, this comes through as a string. // Normalise to a array so it's consistent. if ( $ members && is_string ( $ members ) ) { $ members = [ $ members ] ; } return $ members ; }
Given a group DN, get the group membership data in LDAP.

@param string $dn
@return array
Given a group DN get the group membership data in LDAP .