Code

Fixed ldapbase
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 05:15:11 +0000 (05:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 05:15:11 +0000 (05:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3694 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goLdapServer.inc
plugins/admin/systems/goLdapServer.tpl

index 885970ac03bfdbc20dd5c014d424f9980fddec48..d18c6a224b4870db7ef19372cb94f2189aa490a5 100644 (file)
@@ -113,6 +113,9 @@ class goLdapServer extends plugin{
   function check()
   { 
     $message = plugin::check();
+    if(empty($this->goLdapBase)){
+      $message[] = _("The given base is empty or contains invalid characters.");
+    }
     return($message);
   }
   
index 112ddd6c24d01c07b48efd7eadac09c5106ef46e..d445f8d18ff805f67d8bf6890cfa1c5e5a05e275 100644 (file)
@@ -1,5 +1,5 @@
 <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}LDAP service{/t}</h2>
-{t}Base{/t} <input type="text" size="80" value="{$goLdapBase}" {$goLdapBaseACL} name="goLdapBase" id="goLdapBaseId">
+{t}Base{/t}{$must} <input type="text" size="80" value="{$goLdapBase}" {$goLdapBaseACL} name="goLdapBase" id="goLdapBaseId">
 
 <p class='seperator'>&nbsp;</p>
 <p>