I have tried both -username aflat and --username aflat@domain1.com, I get the same error, but it does append the domain in both cases(this was with AD plugin < 1.24)
With 1.24 I'm getting a different errror
org.acegisecurity.BadCredentialsException: Failed to retrieve user information f
or aflat; nested exception is javax.naming.AuthenticationException: [LDAP: er
ror code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext e
rror, data 52e, vece ]; remaining name 'DC=domain1,DC=com'
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProv
ider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:179)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProv
ider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:105)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProv
ider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:64)
at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.authenti
cate(ActiveDirectorySecurityRealm.java:519)
at hudson.security.AbstractPasswordBasedSecurityRealm$1.authenticate(Abs
tractPasswordBasedSecurityRealm.java:81)
at hudson.cli.CLICommand.main(CLICommand.java:181)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvo
cationHandler.java:274)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocat
ionHandler.java:255)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocat
ionHandler.java:215)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308
: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 52e, vece ]
; remaining name 'DC=domain1,DC=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.ensureOpen(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.doSearch(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown So
urce)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown So
urce)
at hudson.plugins.active_directory.LDAPSearchBuilder.search(LDAPSearchBu
ilder.java:52)
at hudson.plugins.active_directory.LDAPSearchBuilder.searchOne(LDAPSearc
hBuilder.java:42)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProv
ider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:140)
... 22 more
Again, this is with both aflat and aflat@domain1.com on the 32 bit server, 64bit server I can login fine.
Not sure what is happening here. If I run the AD plugin in debug mode, via netbeans(linking against jenkins core 1.442), when I go to Manage Jenkins, Configure System, under the Security Realm, select Active Directory, and I get choices to enter
Domain Name
Domain controller
Site
Bind DN
Bind Password
But when I take the hpi from that same set of sources, and drop it into a running instance of Jenkins (in this case 1.442) the only options I get are
Domain Name
Domain controller
No errors are thrown, I just can't see them to configure them. I tried copy/pasting (the debug version is running locally, and the full running instance is in a VM) but that didn't work(I didn't figure it would anyways)