Go to the source code of this file.
Data Structures | |
| class | AuditCodesManager |
| (c) 2010 Mandriva, http://www.mandriva.com More... | |
Functions | |
| getObjectName ($ldap_uri) | |
| getObjectName | ( | $ | ldap_uri | ) |
Definition at line 67 of file auditCodesManager.php.
References $uid.
00067 { 00068 preg_match('/[a-z]{2,3}=([^,]*)/', $ldap_uri, $matches); 00069 if(count($matches) > 0) { 00070 $uid = $matches[1]; 00071 unset($matches); 00072 return $uid; 00073 } 00074 // this is not a ldap uri 00075 else { 00076 return $ldap_uri; 00077 } 00078 }
1.5.8