fixed checking of domain SID

This commit is contained in:
Roland Gruber 2003-07-24 15:37:17 +00:00
parent 4a8bcc01ab
commit cefb02f3b1
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ class Config {
$value = "";
$this->domainSID = $value;
}
elseif (is_string($value) && eregi("^S-[0-9]-[0-9]-[0-9]{2,2}-[0-9]{10,10}-[0-9]{10,10}-[0-9]{10,10}$", $value)) {
elseif (is_string($value) && eregi("^S-[0-9]-[0-9]-[0-9]{2,2}-[0-9]*-[0-9]*-[0-9]*$", $value)) {
$this->domainSID = $value;
}
else StatusMessage("WARN", "", _("Config->set_domainSID failed!") . " (" . $value . ")");