Code

Added ports, added translations
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Oct 2009 10:47:23 +0000 (10:47 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Oct 2009 10:47:23 +0000 (10:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14611 594d385d-05f5-0310-b6e9-bd551577e9d8

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);
   }