Chris-

I whipped up a quick unit test, and this passed. I set the connectionProtocol=s, w/o quotes.

ldap-login {
  org.apache.activemq.jaas.LDAPLoginModule required
    debug=true
    initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
    connectionURL="ldap://dc101.cdr.corp";
    connectionUsername="CN=AMQ Service User,CN=Users,DC=cdr,DC=corp"
    connectionPassword=Password!
    connectionProtocol=s
    authentication=simple
    userBase="OU=Users,OU=ActiveMQ,DC=cdr,DC=corp"
    userSearchMatching="(samaccountname={0})"
    userSearchSubtree=false
    roleBase="OU=Groups,OU=ActiveMQ,DC=cdr,DC=corp"
    roleName=cn
    roleSearchMatching="(member={0})"
    roleSearchSubtree=false
    ;
};


On 2/1/12 2:24 PM, Chris Robison wrote:
I can do that. I'll let you know.

On Wed, Feb 1, 2012 at 1:19 PM, Matt Pavlovich<[email protected]>  wrote:

How comfortable are you with Java?  The next step to try would be to write
up a quick Java unit test that has the ConfigFile class try to intialize
against your login.config file.

See:

com.sun.security.auth.login.**ConfigFile



On 2/1/12 1:59 PM, Chris Robison wrote:

Yeah, it's the exact same exception.

On Wed, Feb 1, 2012 at 12:55 PM, Matt Pavlovich<[email protected]>
  wrote:

  Are you getting the exact same exception?  Your original exception cause
shows a null value for a key in that config:


Caused by: java.io.IOException: Configuration Error:
Line 6: expected [option key], found [null]
at com.sun.security.auth.login.******ConfigFile.match(ConfigFile.******
java:577)
at
com.sun.security.auth.login.******ConfigFile.parseLoginEntry(******ry(**



Reply via email to