activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Robison <chrisdrobi...@gmail.com>
Subject Re: Using LDAP login module
Date Wed, 01 Feb 2012 20:42:59 GMT
When I run it, I still get the error.

On Wed, Feb 1, 2012 at 1:32 PM, Matt Pavlovich <mattrpav@gmail.com> wrote:

> 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<mattrpav@gmail.com>
>>  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<mattrpav@gmail.com>
>>>>  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(**
>>>>>
>>>>>
>>>>>
>>>>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message