diff --git a/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc b/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc
index 2c02078f19ddbcb15e9548686ef70c76c33bc9be..bedc5eecc7d4e7b47c096665ac1f656d7e5c198b 100644 (file)
list($base,$attr,$scope,$filter) = preg_split("/\?/",$entry);
// Ignore entries that do not have a valid scope value (one,base,sub)
- if(!in_array($scope,array('base','one','sub'))) continue;
+ if(!in_array_strict($scope,array('base','one','sub'))) continue;
// Append parsed uri
$scope = array_search($scope,$this->scopes);
}
+ /*!\brief Checks whether the given attribute is managed by this dyngroup extension or not.
+ */
+ function isAttributeDynamic($attr)
+ {
+ if($this->is_account){
+ foreach($this->labeledURIparsed as $uri){
+ if($uri['attr'] == $attr) return(TRUE);
+ }
+ }
+ return(FALSE);
+ }
+
+
public function check ()
{
$messages = plugin::check();
// Check for invalid attributes
if(empty($entry['attr'])){
$messages[] = msgPool::required(_("Attribute")." {$nr}");
- }elseif(in_array(strtolower($entry['attr']), array('objectclass'))){
+ }elseif(in_array_strict(strtolower($entry['attr']), array('objectclass'))){
$messages[] = msgPool::reserved(_("Attribute")." {$nr}");
}