function computer_info($computer_name,$fields=NULL){
        if ($computer_name==NULL){ return (false); }
        if (!$this->_bind){ return (false); }

        $filter="(&(objectClass=computer)(cn=".$computer_name."))";
        if ($fields==NULL){ $fields=array($this->_group_attribute,"cn","displayname","dnshostname","distinguishedname","objectcategory","operatingsystem","operatingsystemservicepack","operatingsystemversion"); }
        $sr=ldap_search($this->_conn,$this->_base_dn,$filter,$fields);
        $entries = $this->ldap_get_entries_raw($sr);
        
        return ($entries);
    }
function computer_info($computer_name,$fields=NULL){
        if ($computer_name==NULL){ return (false); }
        if (!$this->_bind){ return (false); }

        $filter="(&(objectClass=computer)(cn=".$computer_name."))";
        if ($fields==NULL){ $fields=array($this->_group_attribute,"cn","displayname","dnshostname","distinguishedname","objectcategory","operatingsystem","operatingsystemservicepack","operatingsystemversion"); }
        $sr=ldap_search($this->_conn,$this->_base_dn,$filter,$fields);
        $entries = $this->ldap_get_entries_raw($sr);
        
        return ($entries);
    }
function computer_info ( $ computer_name , $ fields = NULL ) { if ( $ computer_name == NULL ) { return ( false ) ; } if ( ! $ this -> _bind ) { return ( false ) ; } $ filter = "(&(objectClass=computer)(cn=" . $ computer_name . "))" ; if ( $ fields == NULL ) { $ fields = array ( $ this -> _group_attribute , "cn" , "displayname" , "dnshostname" , "distinguishedname" , "objectcategory" , "operatingsystem" , "operatingsystemservicepack" , "operatingsystemversion" ) ; } $ sr = ldap_search ( $ this -> _conn , $ this -> _base_dn , $ filter , $ fields ) ; $ entries = $ this -> ldap_get_entries_raw ( $ sr ) ; return ( $ entries ) ; }
Returns an array of information for a specific computer
Returns an array of information for a specific computer