summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43cfbd5)
raw | patch | inline | side by side (parent: 43cfbd5)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Oct 2009 10:47:23 +0000 (10:47 +0000) | ||
committer | cajus <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 | patch | blob | history |
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 8d76f2a2b834ef8a6fc8b1e0e4000fc643e37a5c..ab65f82e3e413e04558a30a09cfbd8ebb5d2fa28 100644 (file)
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);
}