# Confluence throws NullPointerException when logging in with LDAP user

#### お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

## 症状

A NullPointerException describes a broad category of errors where a value that Confluence is expecting cannot be found. The scope of this KB is specifically to address the following error that appears in the atlassian-confluence.log. If you are getting a different stacktrace, it doesn't hurt to check the steps below anyway, but you may be running into a different problem.

java.lang.NullPointerException
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72)


## 原因とソリューション

#### If using Confluence 3.5 or higher:

2. Navigate to Confluence Admin > User Directories and Edit your LDAP user directory
3. Under User Schema settings, check that the User Search Filter is enclosed in parenthesis. For example:
1. Good: (objectclass=inetOrgPerson)
2. Bad: objectclass=inetOrgPerson
4. Check Group Schema settings for a similar filter, and ensure that is enclosed as well.

#### If using Confluence 3.4 or lower:

1. On your filesystem, open up the file <confluence_install>/confluence/WEB-INF/classes/atlassian-user.xml and check that the search filters are enclosed in parenthesis. For example, this will not work:

<userSearchFilter>objectclass=inetOrgPerson</userSearchFilter>


<userSearchFilter>(objectclass=inetOrgPerson)</userSearchFilter>

Alternatively: this can also happen if using the third-party User Security Management Plugin. Disable this plugin as a test.

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する