Calendar item insertion jobs were hanging and the error logs were showing things like this:
GetUserFromAD-ERROR: Failed while reading AD: (employeeId=F112ZHW); err: Object reference not set to an instance of an object.
GetUserFromAD-ERROR: Failed while reading AD: (employeeId=F112ZHY); err: Object reference not set to an instance of an object.
'ERROR: Failed while reading AD.(employeeId=F112ZHT)
ERROR: Failed while reading AD.(employeeId=33460A)
Simple to diagnose: The accounts causing the problem were DISABLED accounts.
To deal with it exclude the disabled accounts.
Patient: "Doctor, it hurts when I do this."
Doctor: "Don't do that!"
WHAT (NOT) TO DO
Patient: "Doctor, it hurts when I do this."
Doctor: "Don't do that!"
WHAT (NOT) TO DO
An easy fix: add this criteria to exclude disabled
accounts to the LDAP string in the _config.xml file:
(!userAccountControl:1.2.840.113556.1.4.803:=2)
Thus, your LDAP4USER setting should look something
like this
No comments:
Post a Comment