fixed Samba domain SID check (2994528)
This commit is contained in:
parent
4de8edd20d
commit
b5086bc156
|
@ -6,6 +6,7 @@ June 2010 3.1.0
|
|||
-> custom scripts: new options to hide executed commands and define if output is HTML or plain text
|
||||
- fixed bugs:
|
||||
-> Asterisk password handling (patch 2979728)
|
||||
-> Samba domain SID check (2994528)
|
||||
|
||||
|
||||
24.03.2010 3.0.0
|
||||
|
|
|
@ -387,8 +387,8 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
|
||||
break;
|
||||
case 'hostObject':
|
||||
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
|
||||
break;
|
||||
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
|
||||
break;
|
||||
case 'usernameList': // comma separated list of user names
|
||||
case 'groupnameList': // comma separated list of group names
|
||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';
|
||||
|
@ -470,6 +470,7 @@ function get_preg($argument, $regexp) {
|
|||
break;
|
||||
case 'domainSID': // Samba domain SID
|
||||
$pregexpr = "/^S\\-[0-9]\\-[0-9]\\-[0-9]{2,2}\\-[0-9]+\\-[0-9]+\\-[0-9]+$/";
|
||||
break;
|
||||
case 'ip': // IP address
|
||||
$pregexpr = '/^[0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}$/';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue