summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2df939)
raw | patch | inline | side by side (parent: e2df939)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 19 Oct 2009 17:28:07 +0000 (17:28 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 19 Oct 2009 17:28:07 +0000 (17:28 +0000) |
- Allow . in server names as well
- Remove useless _ in list of allowed characters, because its
included by \w
- Include optional port in the stated syntax in the error message
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14606 594d385d-05f5-0310-b6e9-bd551577e9d8
- Remove useless _ in list of allowed characters, because its
included by \w
- Include optional port in the stated syntax in the error message
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14606 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc b/trunk/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc
index a372071a50c1fc5e7afbc90cd88dd3116bdc0f57..f35b59791fa9ee4abe2f9af5e4b645a976592474 100644 (file)
if(empty($this->goLdapBase)){
$message[] = msgPool::required(_("Base"));
}
- if(!preg_match("/^ldap[si]?:\/\/[\w-:_]+\/.+$/", $this->goLdapBase)){
+ if(!preg_match("/^ldap[si]?:\/\/[\w-:.]+\/.+$/", $this->goLdapBase)){
$err = _('The specified LDAP URI is incorrectly formatted.');
- $err .= "<br><br><i>"._("Example").":</i> ". "ldap[si]://server/base";
+ $err .= "<br><br><i>"._("Example").":</i> ". "ldap[si]://server[:port]/base";
$message[] = $err;
}