From 89edf5b84f1f95d7a5ee7169169325d7ec42e1c4 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 15 Mar 2010 08:45:54 +0000 Subject: [PATCH] See revision 16510 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index a1b6a8702..d75f800b4 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -709,8 +709,11 @@ class LDAP{ $na['objectClass'][]= 'locality'; } $na[$type]= $param; + + // Fill in MUST values - but do not overwrite existing ones. if (is_array($classes[$ocname]['MUST'])){ foreach($classes[$ocname]['MUST'] as $attr){ + if(isset($na[$attr]) && !empty($na[$attr])) continue; $na[$attr]= "filled"; } } -- 2.30.2