allow "#" in user names
This commit is contained in:
parent
75322829ae
commit
1581832879
|
@ -460,17 +460,17 @@ function get_preg($argument, $regexp) {
|
||||||
case 'groupname': // all letters, numbers, space and ._- are allowed characters
|
case 'groupname': // all letters, numbers, space and ._- are allowed characters
|
||||||
case 'username':
|
case 'username':
|
||||||
case 'hostname':
|
case 'hostname':
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
|
$pregexpr = '/^([[:alnum:]#@\\.\\ \\_\\$-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'krbUserName':
|
case 'krbUserName':
|
||||||
$pregexpr = '/^([[:alnum:]@\\/\\.\\ \\_\\$-])+$/u';
|
$pregexpr = '/^([[:alnum:]#@\\/\\.\\ \\_\\$-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'hostObject':
|
case 'hostObject':
|
||||||
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
|
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'usernameList': // comma separated list of user names
|
case 'usernameList': // comma separated list of user names
|
||||||
case 'groupnameList': // comma separated list of group names
|
case 'groupnameList': // comma separated list of group names
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';
|
$pregexpr = '/^([[:alnum:]#@\\.\\ \\_-])+(,([[:alnum:]#@\\.\\ \\_-])+)*$/u';
|
||||||
break;
|
break;
|
||||||
case 'realname': // Allow all but \, <, >, =, $, ?
|
case 'realname': // Allow all but \, <, >, =, $, ?
|
||||||
case 'cn':
|
case 'cn':
|
||||||
|
|
Loading…
Reference in New Issue