mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
e1aab183e3
commit
d7655972ed
@ -42,6 +42,15 @@ abstract class LdapRepository extends Repository
|
|||||||
'groupofuniquenames' => 'groupOfUniqueNames'
|
'groupofuniquenames' => 'groupOfUniqueNames'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Object attributes whose value is not distinguished name
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $ambiguousAttributes = array(
|
||||||
|
'posixGroup' => 'memberUid'
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new LDAP repository object
|
* Create a new LDAP repository object
|
||||||
*
|
*
|
||||||
@ -68,4 +77,17 @@ abstract class LdapRepository extends Repository
|
|||||||
|
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return whether the given object attribute's value is not a distinguished name
|
||||||
|
*
|
||||||
|
* @param string $objectClass
|
||||||
|
* @param string $attributeName
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
protected function isAmbiguous($objectClass, $attributeName)
|
||||||
|
{
|
||||||
|
return isset($this->ambiguousAttributes[$objectClass][$attributeName]);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user