Changeset 1060
- Timestamp:
- 06/30/09 09:56:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/seguranca/vercert.php
r1035 r1060 178 178 $filtro = 'uid='. item_para_uid($c->dados); 179 179 180 // Pesquisa CPF no RHDS/LDAP 181 $sr=ldap_search($cc, $ldap_context,$filtro); 180 $atributos = array(); 181 $atributos[] = 'phpgwaccountexpires'; 182 183 if(isset($GLOBALS['phpgw_info']['server']['atributoexpiracao'])) 184 { 185 $atributos[] = $GLOBALS['phpgw_info']['server']['atributoexpiracao']; 186 } 187 188 $atributos[] = "usercertificate"; 189 $atributos[] = "phpgwaccountstatus"; 190 $atributos[] = "cryptpassword"; 191 $atributos[] = "uid"; 192 193 // Pesquisa uid no RHDS/LDAP 194 $sr=ldap_search($cc, $ldap_context,$filtro,$atributos); 182 195 183 196 // Pega resultado .... … … 214 227 if(isset($GLOBALS['phpgw_info']['server']['atributoexpiracao'])) 215 228 { 216 if(substr($ ldap_info['atributoexpiracao'],-1,1)=="Z")229 if(substr($info[0][$GLOBALS['phpgw_info']['server']['atributoexpiracao']][0],-1,1)=="Z") 217 230 { 218 231 ###quando a data de expiracao estah no formato yyyymmddhhmmssZ
Note: See TracChangeset
for help on using the changeset viewer.