* Status/ActiveDirectory: fix not displayed photo avatar

This commit is contained in:
ralf 2023-02-15 14:34:04 +01:00
parent d3bb9b9b78
commit 330656c437

View File

@ -125,6 +125,7 @@ class Ads
'objectsid', 'samaccounttype', 'samaccountname', 'objectsid', 'samaccounttype', 'samaccountname',
'primarygroupid', 'givenname', 'sn', 'mail', 'displayname', 'telephonenumber', 'primarygroupid', 'givenname', 'sn', 'mail', 'displayname', 'telephonenumber',
'objectguid', 'useraccountcontrol', 'accountexpires', 'pwdlastset', 'whencreated', 'whenchanged', 'lastlogon', 'objectguid', 'useraccountcontrol', 'accountexpires', 'pwdlastset', 'whencreated', 'whenchanged', 'lastlogon',
'jpegphoto',
); );
/** /**
@ -582,6 +583,7 @@ class Ads
self::_when2ts($data['whencreated'][0]), self::_when2ts($data['whencreated'][0]),
'account_modified' => !isset($data['whenchanged'][0]) ? null : 'account_modified' => !isset($data['whenchanged'][0]) ? null :
self::_when2ts($data['whenchanged'][0]), self::_when2ts($data['whenchanged'][0]),
'account_has_photo' => !empty($data['jpegphoto'][0])
); );
// expired accounts are NOT active // expired accounts are NOT active
if ($user['account_expires'] !== -1 && $user['account_expires'] < time()) if ($user['account_expires'] !== -1 && $user['account_expires'] < time())