NeosIT / active-directory-integration2

WordPress plug-in "Next Active Directory Integration"
https://https://wordpress.org/plugins/next-active-directory-integration/
GNU General Public License v3.0
54 stars 25 forks source link

Missing meta_key "domainsid" results in TypeError or NextADInt_ActiveDirectory_Context::isMember #138

Closed schakko closed 3 years ago

schakko commented 3 years ago

Under specific circumstances (e.g. if a user has been synchronized long before but the meta_key "domainsid" for the user is missing), NextADInt_ActiveDirectory_Context::isMember fails with

PHP Fatal error: Uncaught TypeError: Argument 1 passed to NextADInt_ActiveDirectory_Context::isMember() must be an instance of NextADInt_ActiveDirectory_Sid, null given, called in plugins/next-active-directory-integration/classes/Adi/Synchronization/Abstract.php on line 171