activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Pavlovich <mattr...@gmail.com>
Subject Re: Using LDAP login module
Date Wed, 01 Feb 2012 20:56:13 GMT
Ah, start w/ line 0.. that puts it at connectionPassword.  Try adding " 
" around "Password!".  The exclamation point may be throwing it off.

On 2/1/12 2:47 PM, Chris Robison wrote:
> The error says line 6 which in my login.config is connectionUsername.
>
> Chris
>
> On Wed, Feb 1, 2012 at 1:42 PM, Chris Robison<chrisdrobison@gmail.com>wrote:
>
>> 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
View raw message