LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2013, 03:57 PM   #1
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Rep: Reputation: Disabled
LDAP how to use it?


Hello,

I have to create a centralized repository of credentials and access roles.

Briefly explain my scenario.

I hava an application, composed of several modules. For this application are defined the user, the group and obviously roles. Among the components of this sofware has created a SSO. This software is customizable to the point that you can afford based on the events to launch other applications, including third parties application.

And I find myself in the position of having to create a web application that must reside on the same machine, but for commercial reasons on another web server, launched the first application to which I have referred.

Now the problem comes from authentication authorization from the second web application, created by me. In essence, the rule should be: if you have an account valid at the first application, and belong to a particular group, you can access the web application created by me.

So basically I should centralize the accounts of the first application and make sure that they are valid also for the second application.

This thing you can do it with LDAP?

It 's the first time I get close to LDAP, if this thing is possible someone can spigarmi how can I achieve it?

I do not want everything nice and done, I want to learn!

Thank you all.
 
Old 05-10-2013, 04:35 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
First thing you need to identify is how the SSO/authentication happens on the first web application. If it is is a proprietary setup with no API you will more than likely not be able to query the same database for credentials. As far as sessions go this is an even bigger challenge, being able to check for valid sessions against a third party app and authenticate to a app that you've written are basically impossible unless there is some documentation available or you know how the sessions work. Sometimes you can identify it via a review of the code if you have access but if it's a compiled binary you are basically SOL on that.


IF you have the option of switching your first app to use LDAP for backend authentication you could switch it over to that and use your app to query the LDAP server that way the creds are teh same across both but that will not allow you to automatically authenticate people based upon sessions that already exist on another application.



So basically unless you currently have or able to get extensive documentation on how the sessions are configured for the application this is a pretty impossible solution.


This is one of those things that sounds great and easy on paper from a management perspective but for implementation it is extremely tough.
 
Old 05-10-2013, 04:39 PM   #3
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
First thing you need to identify is how the SSO/authentication happens on the first web application. If it is is a proprietary setup with no API you will more than likely not be able to query the same database for credentials. As far as sessions go this is an even bigger challenge, being able to check for valid sessions against a third party app and authenticate to a app that you've written are basically impossible unless there is some documentation available or you know how the sessions work. Sometimes you can identify it via a review of the code if you have access but if it's a compiled binary you are basically SOL on that.


IF you have the option of switching your first app to use LDAP for backend authentication you could switch it over to that and use your app to query the LDAP server that way the creds are teh same across both but that will not allow you to automatically authenticate people based upon sessions that already exist on another application.



So basically unless you currently have or able to get extensive documentation on how the sessions are configured for the application this is a pretty impossible solution.


This is one of those things that sounds great and easy on paper from a management perspective but for implementation it is extremely tough.
Thank you for your comment. I obviously forgot to say that the first application allows you to add and configure an external LDAP.
 
Old 05-10-2013, 05:09 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Well then if you are able to use backend for LDAP then you should have no problems creating the appropriate groups/roles for permissions on both sides. The only thing that would be an issue is that it would not be a SSO solution unless you can figure out how to use the sessions the other application uses.
 
Old 05-10-2013, 05:15 PM   #5
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
Well then if you are able to use backend for LDAP then you should have no problems creating the appropriate groups/roles for permissions on both sides. The only thing that would be an issue is that it would not be a SSO solution unless you can figure out how to use the sessions the other application uses.
I repeat are at the very beginning with LDAP you tell me the material to be studied? Maybe with some good example.
 
Old 05-10-2013, 05:19 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
http://www.debuntu.org/how-to-set-up...d-its-clients/

The above is a good overview but I'm sure you must already have some sort of authentication. Are you using a windows domain controller and AD for user accounts? If so you can use LDAP to query against Active Directory that way you don't have to maintain two separate sets of credentials.

On a side note, LDAP is a monster to learn(atleast it was for me), so feel free to ask for help along the way.


http://www.cyberciti.biz/tips/authen...directory.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
[SOLVED] Apache authentication: allow LDAP group OR user named guest, but not all LDAP users AlucardZero Linux - Server 1 05-25-2011 03:21 PM
how to configure open Ldap with PTA to an existing LDAP infrastructure? jduby Linux - Newbie 0 05-18-2010 02:58 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LXer: LDAP Series Part IV - Installing OpenLDAP on Debian Plus Some LDAP Commentary LXer Syndicated Linux News 0 10-31-2006 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration