Skip to content

User cannot login when e-mail is null in LDAP directory #406

Description

@gitblit

Originally reported on Google Code with ID 110

What steps will reproduce the problem?
1. Configure Gitblit to use LDAP authentication
2. Add a user in LDAP without an email
3. Try to login Gitblit
4. See the Nullpointer exception in System.err

What is the expected output? What do you see instead?
It was expected to login, but when the user e-mail is null in LDAP, we can't login

What version of the product are you using? On what operating system?
1.0.0 - Ubuntu

Please provide any additional information below.
Caused by: java.lang.NullPointerException
        at com.gitblit.LdapUserService.setUserAttributes(LdapUserService.java:236)
        at com.gitblit.LdapUserService.authenticate(LdapUserService.java:176)
        at com.gitblit.GitBlit.authenticate(GitBlit.java:473)
        at com.gitblit.wicket.pages.RootPage$1.onSubmit(RootPage.java:131)
        at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1595)
        at org.apache.wicket.markup.html.form.Form.process(Form.java:960)
        at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:922)
        ... 25 more


Reported by flaviostutz on 2012-07-17 11:29:54

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions