Looks like the same issue I'm having.
My job consist of the SCM fetching code from a Git repo, and then during the build step it executes a few lines of bash code, something like this:
python3 dosomething.py --parameter value
Even though the build step finishes successfully, the job throws this error:
FATAL: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user John Doe; nested exception is java.util.concurrent.ExecutionException: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C090A22, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v3839]; remaining name 'DC=company,DC=com'
- Jenkins version: 2.129
- Active Directory plugin 2.8
- Git client plugin: 2.7.2
- Git plugin: 3.9.1
- OS: Debian 9
- "Enable cache" it not checked