mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
PropertyModifierFromAdSid: be more conservative
This commit is contained in:
parent
81b2dca379
commit
5a045adbb4
@ -20,7 +20,8 @@ class PropertyModifierFromAdSid extends PropertyModifierHook
|
||||
// https://blogs.msdn.microsoft.com/oldnewthing/20040315-00/?p=40253
|
||||
|
||||
$sid = $value;
|
||||
$sidHex = unpack('H*hex', $value)['hex'];
|
||||
$sidHex = unpack('H*hex', $value);
|
||||
$sidHex = $sidHex['hex'];
|
||||
$subAuths = implode('-', unpack('H2/H2/n/N/V*', $sid));
|
||||
|
||||
$revLevel = hexdec(substr($sidHex, 0, 2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user