Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Tomcat JNDIRealm authenticate Exception

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Users can't login to Tomcat with JNDIRealm authentication.
I receive following error in Catalina log:

   26-Jun-2018 12:08:29.547 SEVERE [http-nio-8080-exec-7] org.apache.catalina.realm.JNDIRealm.authenticate Exception performing authentication javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090400, comment: AcceptSecurityContext error, data 52e, v1db1 ] at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3154) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3100)

I found that this means "wrong user/password" but there is no records in LDAP log relevant to this login. My server.xml:

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
   connectionURL="ldap://me.com:389";
   alternateURL="ldap://me.com:389";
   connectionName="CN=user-ldap,OU=Services Accounts,DC=me,DC=com"
   connectionPassword="removed"                    
   userRoleName="member"
   userBase="OU=Groups,DC=me,DC=com"
   userPattern="cn={0},cn=Users,DC=me,DC=com"
   roleBase="cn=Users,DC=me,DC=com"
   roleName="cn"
   roleSearch="(member={0})"
   roleSubtree="false"
   userSubtree="true"
/>

 
Saloon Keeper
Posts: 22122
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks like an error message from Microsoft Active Directory and apparently means "Invalid Password". The connectionPassword is probably invalid.
 
It's just a flesh wound! Or a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic