Code

Added ports, added translations
[gosa.git] / gosa-plugins / goto / admin / systems / services / ldap / class_goLdapServer.inc
index 8d76f2a2b834ef8a6fc8b1e0e4000fc643e37a5c..ab65f82e3e413e04558a30a09cfbd8ebb5d2fa28 100644 (file)
@@ -78,8 +78,8 @@ class goLdapServer extends goService{
     if(empty($this->goLdapBase)){
       $message[] = msgPool::required(_("LDAP URI"));
     }
-    if(!preg_match("/^ldap[si]?:\/\/[0-9a-z_.-]+\/.+$/", $this->goLdapBase)){
-      $message[] = msgPool::invalid(_("LDAP URI"),"","","ldap[si]://server/base");
+    if(!preg_match("/^ldap[si]?:\/\/[0-9a-z_.-]+(:[0-9]+)?\/.+$/", $this->goLdapBase)){
+      $message[] = msgPool::invalid(_("LDAP URI"),"","","(ldap|ldaps|ldapi)://"._("Server")."(:"._("Port").")/"._("Base"));
     }
     return($message);
   }