summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5ea3dd)
raw | patch | inline | side by side (parent: e5ea3dd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 Aug 2005 13:15:21 +0000 (13:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 Aug 2005 13:15:21 +0000 (13:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1273 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_hotplugDialog.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_hotplugDialog.inc b/plugins/personal/environment/class_hotplugDialog.inc
index 1bc4ed2642935d9cad16d7b1d943bc409c9213d8..63ad92877edb946b96c136ff469cc130bcec1ad6 100644 (file)
if((empty($this->HOT_id))||(preg_match("/[\|]/i",$this->HOT_id))){
$message[]=_("Please specify a valid id.");
}
+
+ $ldap = $this->config->get_ldap_link();
+ $ldap->search("(&(objectClass=gotoEnvironment)(gotoHotplugDevice=".$this->HOT_name."*))");
+ if($ldap->count()){
+ $message[]=_("An Entry with this name already exists.");
+ }
+
}else{
if((!isset($_POST['hotplugName']))||(empty($_POST['hotplugName']))){
$message[] = _("Please select an entry or press cancel.");