From: cajus Date: Tue, 20 Oct 2009 10:47:23 +0000 (+0000) Subject: Added ports, added translations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e36feb14302d72a1eb6e5b5f87f930d54fa1350f;p=gosa.git Added ports, added translations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14611 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc index 8d76f2a2b..ab65f82e3 100644 --- a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc +++ b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc @@ -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); }