This discussion is archived
2 Replies Latest reply: Jan 6, 2011 10:32 AM by 817771 RSS

Glassfish and LDAP

811624 Newbie
Currently Being Moderated
I am new to almost everything I am currently working on, I've been doing some research but I got stuck and I thought you could help me.
I installed an LDAP server (OpenDS) to be able to lookup for Glassfish queues. I am trying to run an Glassgish example and in the Readme there is a command I have to execute which would be like this:

imqobjmgr add -t qf -l cn=QueueConnectionFactory \
-j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory" \
-j "java.naming.provider.url=ldap://<servername>:389/ou=JMSObj, ou=xxx, \
o=JMQ" \
-j "" \
-j ", ou=People, o=JMQ" \
-j ""

I changed the <servername> to localhost and define the principal as cn=A and password to B

So my command looks like this

imqobjmgr add -t qf -l cn=QueueConnectionFactory -j "java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory"
-j "java.naming.provider.url=ldap://localhost:389/ou=JMSObj, ou=cn=A, o=JMQ"
-j ""
-j ", ou=People, o=JMQ"
-j ""

But when I run it, I get the following error:

java.naming.factory.initial com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url ldap://localhost:389/ou=JMSObj, ou=cn=A, o=JMQ simple B uid=cn=A

Error [A3053]: Username and/or password are not valid

(please note I've translated the error to English, it was in German).

The problem is: CN=A is my username and B is my password (I can login to the OpenDS control panel with them).

Am I inputing it on the wrong place? Could you give me hints so I can find the error?

Thank you,

Edited by: 808621 on 9/Nov/2010 2:15


  • Correct Answers - 10 points
  • Helpful Answers - 5 points