X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fservices%2Fldap%2Fclass_goLdapServer.inc;h=ab65f82e3e413e04558a30a09cfbd8ebb5d2fa28;hb=e36feb14302d72a1eb6e5b5f87f930d54fa1350f;hp=8d76f2a2b834ef8a6fc8b1e0e4000fc643e37a5c;hpb=43cfbd53779e01a692895f80dff560aa7e23f8a5;p=gosa.git 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); }