File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes JForum LDAP Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "JForum LDAP Authentication" Watch "JForum LDAP Authentication" New topic

JForum LDAP Authentication

Abdul Muzani

Joined: Aug 22, 2013
Posts: 1
Hi All,

I'm new here, and to java apps.

I have JForums installed in production environment. It is installed in Tomcat 7.

In the i have this :
# #######
# ####### =

ldap.authentication = simple

ldap.factory = com.sun.jndi.ldap.LdapCtxFactory

ldap.principal = CN=<A user in ldap>,OU=A,OU=B,DC=corp,DC=domain,DC=co,DC=id

ldap.credentials = the above user's password

ldap.server.url = ldap:// = mail

ldap.field.username = sAMAccountName = CN=<A user group's CN>OU=C,OU=D,DC=corp,DC=domain,DC=co,DC=id
ldap.principal = CN=<A user gorup's CN>

The LDAPAuthtenticator.class is attached.

The problem is when user is trying to log in it returns :


Using the same class, this doesn't happen in my local testing environment, staging, and dev. Only prod.
What could be the problem here?


Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Welcome to CodeRanch!

Can you post the full stack trace of the NullPointerException?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: JForum LDAP Authentication
It's not a secret anymore!