Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException on LDAPUserSearch.toUser #1768

Closed
patrick92100 opened this issue Jan 7, 2016 · 3 comments
Closed

NullPointerException on LDAPUserSearch.toUser #1768

patrick92100 opened this issue Jan 7, 2016 · 3 comments

Comments

@patrick92100
Copy link

under tab
ADMIN/User Summary/ADD USER
I type a valid LDAP user name, and clic SEARCH button

get an error message "Ldap search failed, please contact the administrator."

in the server side, in go-server.log get

ERROR [qtp26002038-30] UserSearchService:83 - User search for xxxxxx on ldap failed with Exception.
java.lang.NullPointerException
at com.thoughtworks.go.server.security.LdapUserSearch.toUser(LdapUserSearch.java:163)
at com.thoughtworks.go.server.security.LdapUserSearch.buildUserList(LdapUserSearch.java:150)
at com.thoughtworks.go.server.security.LdapUserSearch.search(LdapUserSearch.java:133)
at com.thoughtworks.go.server.security.LdapUserSearch.search(LdapUserSearch.java:106)
at com.thoughtworks.go.server.security.UserSearchService.searchLdap(UserSearchService.java:78)
at com.thoughtworks.go.server.security.UserSearchService.search(UserSearchService.java:65)

@patrick92100
Copy link
Author

LDAP config setup correctly for login, I mean login is activated and works fine.

@arvindsv arvindsv modified the milestones: Release: Unknown, Release: Near term Jan 11, 2016
@patrick92100
Copy link
Author

in server/src/com/thoughtworks/go/server/security/LdapUserSearch.java
line 167
loginName = samAccName != null ? samAccName.get().toString() : attributes.get(UID).get().toString();
when samAccName is null and attributes.get(UID) is null the exception is raisen ( attributes.get(UID).get() ).
In my case the LDAP records do no have UID attributes...

@arvindsv
Copy link
Member

arvindsv commented Jan 9, 2019

Closing. LDAP functionality has been moved out to a plugin and rewritten completely.

@arvindsv arvindsv closed this as completed Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants