2 Replies Latest reply: Jan 6, 2011 12:32 PM by 817771 RSS

    Glassfish and LDAP

    811624
      Hi!
      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 "java.naming.security.authentication=simple" \
      -j "java.naming.security.principal=uid=xxx, ou=People, o=JMQ" \
      -j "java.naming.security.credentials=xxx"

      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 "java.naming.security.authentication=simple"
      -j "java.naming.security.principal=uid=cn=A, ou=People, o=JMQ"
      -j "java.naming.security.credentials=B"

      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
      java.naming.security.authentication simple
      java.naming.security.credentials B
      java.naming.security.principal 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,
      Oscar

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