fix for AD

This commit is contained in:
Roland Gruber 2013-12-26 10:58:58 +00:00
parent 32f4e3f313
commit c0da431914
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ class ObjectClass extends SchemaItem
{
$this->initVars();
$class = $raw_ldap_schema_string;
$class = preg_replace('/\\(([a-z])/i', '( $1', $class);
$class = preg_replace('/([a-z])\\)/i', '$1 )', $class);
$strings = preg_split ('/[\s,]+/', $class, -1,PREG_SPLIT_DELIM_CAPTURE);
for($i=0; $i<count($strings); $i++) {
switch($strings[$i]) {