Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

JForum LDAP Authentication

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 GlobalConfig.properties i have this :
# #######
# LDAP
# #######

ldap.security.protocol =

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://corp.domain.co.id:389

ldap.field.email = mail

ldap.field.username = sAMAccountName

ldap.search.root = 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 :

java.lang.NullPointerException

Using the same class, this doesn't happen in my local testing environment, staging, and dev. Only prod.
What could be the problem here?
LDAPAuthenticator.jpg
[Thumbnail for LDAPAuthenticator.jpg]
 
author & internet detective
Posts: 39540
778
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abdul,
Welcome to CodeRanch!

Can you post the full stack trace of the NullPointerException?
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!