You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "pratibha.ghogale" <pr...@in2m.com> on 2008/04/15 14:57:30 UTC
ServiceMix LDAP Support
Hi,
I am using apache-servicemix-3.2.1
Does this version supports LDAP authentication. If it does how to configure
it?
-Pratibha
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16700359p16700359.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by pratibhaG <pr...@in2m.com>.
A question for you. How did you deploy the ldapLoginModule? Did you create
a jsr181-su and deploy it to servicemix.
created a jar file and put it in SMX-HOME/lib
Also are you able to authenticate without having to manually type in a
username and password? If so are you able to give an example of the client
code that does this?
browser asks me for username and password. The only code I wrote was
authMetod= BASIC in my http-su configuration
Any help would be greatly appreciated.
Cheers,
pratibhaG wrote:
>
> I could achieve authentication using LDAP for HTTP request
>
> Here is the cofiguration:
> <http:endpoint service="test:servicehttp"
> endpoint="consumerhttp"
> role="consumer"
> locationURI="http://localhost:8889"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true"
> targetService="test:MyS1PojoService"
> targetEndpoint="myS1PojoSu"
> authMethod="BASIC">
> </http:endpoint>
>
> servicemix-domain {
> sample.module.LdapLoginModule REQUIRED
> userProvider="ldap://ip:port/ou=Users,dc=site"
> userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
> useSSL=false
> debug=true;
> );
>
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p17268009.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by pratibhaG <pr...@in2m.com>.
I have put this as my http endpoint:
<http:endpoint service="test:servicehttp"
endpoint="consumerhttp"
role="consumer"
locationURI="http://localhost:8889"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
targetService="test:MyS1PojoService"
targetEndpoint="myS1PojoSu"
authMethod="BASIC">
</http:endpoint>
put this in your SMX-HOME/conf/login.properties:
servicemix-domain {
sample.module.LdapLoginModule REQUIRED
userProvider="ldap://ip:port/ou=Users,dc=site"
userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
useSSL=false
debug=true;
);
You can create your own Login module as I have created. This is same as the
provided by java6. in com/sun/security/auth/module/LdapLoginModule.java
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p17267974.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by nih <gr...@ipaustralia.gov.au>.
I'm a bit of a servicemix newbie so go easy...
A question for you. How did you deploy the ldapLoginModule? Did you create
a jsr181-su and deploy it to servicemix.
Also are you able to authenticate without having to manually type in a
username and password? If so are you able to give an example of the client
code that does this?
Any help would be greatly appreciated.
Cheers,
pratibhaG wrote:
>
> I could achieve authentication using LDAP for HTTP request
>
> Here is the cofiguration:
> <http:endpoint service="test:servicehttp"
> endpoint="consumerhttp"
> role="consumer"
> locationURI="http://localhost:8889"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true"
> targetService="test:MyS1PojoService"
> targetEndpoint="myS1PojoSu"
> authMethod="BASIC">
> </http:endpoint>
>
> servicemix-domain {
> sample.module.LdapLoginModule REQUIRED
> userProvider="ldap://ip:port/ou=Users,dc=site"
> userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
> useSSL=false
> debug=true;
> );
>
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p17265486.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by pratibhaG <pr...@in2m.com>.
I could achieve authentication using LDAP for HTTP request
Here is the cofiguration:
<http:endpoint service="test:servicehttp"
endpoint="consumerhttp"
role="consumer"
locationURI="http://localhost:8889"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
targetService="test:MyS1PojoService"
targetEndpoint="myS1PojoSu"
authMethod="BASIC">
</http:endpoint>
servicemix-domain {
sample.module.LdapLoginModule REQUIRED
userProvider="ldap://ip:port/ou=Users,dc=site"
userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
useSSL=false
debug=true;
);
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p17186282.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by pratibhaG <pr...@in2m.com>.
Thanks godnet for your reply.
If i have a Jms consumer how can I configure the authentication?
I tried this in servicemixhome/conf/login.properties:
servicemix-domain {
LdapLoginModule REQUIRED
userProvider="ldap://192.168.1.117:389/ou=Users,dc=in2mldap,dc=site"
userFilter="(&(uid={USERNAME})(objectClass=inetOrgPerson))"
useSSL=false
debug=true;
};
it has no effect on any request I made to bus.
i am trying to put messages from one queue to another queue like this:
<camelContext id="camel1"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from
uri="jbi:endpoint:urn1:org:apache:servicemix:tutorial:camel:jmsC1:consumer1"/>
<to
uri="jbi:endpoint:urn1:org:apache:servicemix:tutorial:camel:jmsP3:provider3"/>
</route>
</camelContext>
it is working fine. It never asks me for authentication.
Here are my consumer and provider
<jms:consumer service="tutorial:jmsC1"
endpoint="consumer1"
destinationName="tutorial.camel.queue1"
connectionFactory="#connectionFactory"
targetService="tutorial:jmsC1"
targetEndpoint="consumer1" />
<jms:provider service="tutorial:jmsP3"
endpoint="provider3"
destinationName="tutorial.camel.queue3"
connectionFactory="#connectionFactory" />
Please help me to find what is wrong?
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p17181960.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by "pratibha.ghogale" <pr...@in2m.com>.
Thanks a lot for your reply
-Pratibha
--
View this message in context: http://www.nabble.com/ServiceMix-LDAP-Support-tp16701684p16716785.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix LDAP Support
Posted by Guillaume Nodet <gn...@gmail.com>.
ServiceMix uses JAAS for authentication, so if you configure a login module
that delegates to LDAP instead of the default that uses proeprties file, you
should be able to do that. ServiceMix does not provide any LDAP login
module, but you may be able to reuse the one from Geronimo for example:
http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-security/src/main/java/org/apache/geronimo/security/realm/providers/LDAPLoginModule.java?view=markup&pathrev=592348
The configuation goes into:
conf/login.properties
On Tue, Apr 15, 2008 at 2:57 PM, pratibha.ghogale <pr...@in2m.com>
wrote:
>
> Hi,
> I am using apache-servicemix-3.2.1
> Does this version supports LDAP authentication. If it does how to
> configure
> it?
>
> -Pratibha
> --
> View this message in context:
> http://www.nabble.com/ServiceMix-LDAP-Support-tp16700359p16700359.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/