function group_info($group_name,$fields=NULL){
        if ($group_name==NULL){ return (false); }
        if (!$this->_bind){ return (false); }
        
        $filter="(&(objectCategory=group)(".$this->_group_cn_identifier."=".$this->ldap_search_encode($group_name)."))";

        if ($fields==NULL){ $fields=array("member",$this->_group_attribute,"cn","description","distinguishedname","objectcategory",$this->_group_cn_identifier); }
        
        $sr=@ldap_search($this->_conn,$this->_base_dn,$filter,$fields);
        if (FALSE === $sr) {
            $this->_warning_message = "group_info: ldap_search error ".ldap_errno($this->_conn).": ".ldap_error($this->_conn);
            echo "DEBUG: ".$this->_warning_message."\n";
        }
        // Search: (&(objectCategory=group)(cn=gr10000))
        // (&(objectCategory=group)(cn=gr10))
        // PHP Warning:  ldap_search(): Search: Critical extension is unavailable in // C:\data\projects\multiotp\core\contrib\MultiotpAdLdap.php on line 591
        // Search: (&(objectCategory=group)(cn=gr10))
        $entries = $this->ldap_get_entries_raw($sr);

        // DEBUG
        if (0 == count($entries)) {
            $this->_warning_message = "group_info: No entry for the specified filter $filter";
            echo "DEBUG: ".$this->_warning_message."\n";
        }

        return ($entries);
    }
function group_info($group_name,$fields=NULL){
        if ($group_name==NULL){ return (false); }
        if (!$this->_bind){ return (false); }
        
        $filter="(&(objectCategory=group)(".$this->_group_cn_identifier."=".$this->ldap_search_encode($group_name)."))";

        if ($fields==NULL){ $fields=array("member",$this->_group_attribute,"cn","description","distinguishedname","objectcategory",$this->_group_cn_identifier); }
        
        $sr=@ldap_search($this->_conn,$this->_base_dn,$filter,$fields);
        if (FALSE === $sr) {
            $this->_warning_message = "group_info: ldap_search error ".ldap_errno($this->_conn).": ".ldap_error($this->_conn);
            echo "DEBUG: ".$this->_warning_message."\n";
        }
        // Search: (&(objectCategory=group)(cn=gr10000))
        // (&(objectCategory=group)(cn=gr10))
        // PHP Warning:  ldap_search(): Search: Critical extension is unavailable in // C:\data\projects\multiotp\core\contrib\MultiotpAdLdap.php on line 591
        // Search: (&(objectCategory=group)(cn=gr10))
        $entries = $this->ldap_get_entries_raw($sr);

        // DEBUG
        if (0 == count($entries)) {
            $this->_warning_message = "group_info: No entry for the specified filter $filter";
            echo "DEBUG: ".$this->_warning_message."\n";
        }

        return ($entries);
    }
function group_info ( $ group_name , $ fields = NULL ) { if ( $ group_name == NULL ) { return ( false ) ; } if ( ! $ this -> _bind ) { return ( false ) ; } $ filter = "(&(objectCategory=group)(" . $ this -> _group_cn_identifier . "=" . $ this -> ldap_search_encode ( $ group_name ) . "))" ; if ( $ fields == NULL ) { $ fields = array ( "member" , $ this -> _group_attribute , "cn" , "description" , "distinguishedname" , "objectcategory" , $ this -> _group_cn_identifier ) ; } $ sr = @ ldap_search ( $ this -> _conn , $ this -> _base_dn , $ filter , $ fields ) ; if ( FALSE === $ sr ) { $ this -> _warning_message = "group_info: ldap_search error " . ldap_errno ( $ this -> _conn ) . ": " . ldap_error ( $ this -> _conn ) ; echo "DEBUG: " . $ this -> _warning_message . "\n" ; } // Search: (&(objectCategory=group)(cn=gr10000)) // (&(objectCategory=group)(cn=gr10)) // PHP Warning:  ldap_search(): Search: Critical extension is unavailable in // C:\data\projects\multiotp\core\contrib\MultiotpAdLdap.php on line 591 // Search: (&(objectCategory=group)(cn=gr10)) $ entries = $ this -> ldap_get_entries_raw ( $ sr ) ; // DEBUG if ( 0 == count ( $ entries ) ) { $ this -> _warning_message = "group_info: No entry for the specified filter $filter" ; echo "DEBUG: " . $ this -> _warning_message . "\n" ; } return ( $ entries ) ; }
Returns an array of information for a specified group
Returns an array of information for a specified group