How can I connect my mashup to my LDAP?

chriswarner
chriswarner's picture
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 08/22/2008
Points: 1377

I need the mashup to pass the user's credentials to each of the mashup data sources (some are REST services, a few are virtualized SQL databases). How do I do that with the Presto Developer Edition?

0
Your rating: None
andreas_william...
User offline. Last seen 3 years 15 weeks ago. Offline
Joined: 10/30/2008
Points: 10

How do we do this?

Deepak Alur
Deepak Alur's picture
User offline. Last seen 1 week 3 days ago. Offline
Joined: 09/09/2008
Points: 565

Not sure I understand how this relates to LDAP.

But if you want to pass user credentials to the target services in your mashups there are couple of ways to do it.

  1. 1. The mashup can accept the user credentials and propagate it to the target services
  2. 2. The user credentials can be stored as part of Presto Parameters and can be picked up dynamically at invocation time.

Please refer to the admin documentation at http://www.jackbe.com/prestodocs/v2.5/prestoadmin

Look under: 

Presto Administration > Mashup Server Configuration and Deployment > Working With Presto Parameters

Mash On!
- deepak alur | vp product + engineering at jackbe  | follow me

smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

As Deepak mentioned there are several ways to do this and to some degree it depends on what your service is expecting. For example, do the REST services expect user credentials as params in the URL? or HTTP Basic authentication?

You have two basic issues: 1) how to get the user credentials and 2) how to construct them and use them in the service invocation.

For the first problem, one way to retrieve the user credentials from your LDAP Directory using Presto user parameters. If you have configured LDAP as the Presto user store, then user attributes in LDAP can accessed as Presto parameters. And you can refer to them within a mashup script by defining variables of the same name.

Documentation for working with Presto parameters, including user credentials, is in the Administration section (from MDC menu or at http://www.jackbe.com/prestodocs/v2.5/prestoadmin/index.html).

Search for Presto parameters and find the topic on Working with Presto Parameters (or Presto Administration > Mashup Server Configuration and Deployment > Working with Presto Parameters from the ToC).

This topic has specific links to how to use Presto Parameters in mashups as well as links to access a user's Presto credentials.

Sara, technical writer/jackbe

 

wfandreas
User offline. Last seen 3 years 22 weeks ago. Offline
Joined: 12/01/2008
Points: 30

Sara,

I have a user that is executing a presto mashlet. this mashlet directinvokes a url the requires user authentication,

How can I return the authentication popup to the user and execute the validation, storing the cookie returned from a successful validation to pass along with the original directinvoke?

I don't see anything in the documentation that leads me to an example of how to do these steps?

Is there some way I can do this?

Thank you,

Bill

smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

Hi Bill,

I have a feeling that this is a reply meant for another thread -- but maybe not. I may not have all the answers you need, but there is an existing thread that seems very similar to this. See http://www.jackbe.com/enterprise-mashup/forum/direct-invoke-and-url-user... for Raj's replies which are basically all I can tell you. You can send credentials in <directinvoke> either as parameters or as HTTP basic authentication headers.

If this isn't enough of an answer, let me know and I will get some of the real experts to help.

Sara

Sara, technical writer/jackbe