Select to view content in your preferred language

Login Page The connect to LDAP

829
4
04-28-2010 12:03 PM
HeatherHainsworth
Deactivated User
Hi,

I was wondering if anyone out there has ever tried to build a login page for a flex application (specifically the sample viewer) that connects to a LDAP server.

I have been trying to work with PHP and creating a PHP script that connects to LDAP and that flex calls as a service. But so far I have not been successful. Unfortunately I have no background in PHP and I think my problem is I am missing the PHP LDAP extension.

Anyway, any ideas anyone has would be great, if there are better ways than PHP I will take those as well.

Thanks
Heather

Sorry the title should say a login page that connects to LDAP.
Tags (2)
0 Kudos
4 Replies
ZahidChaudhry
Deactivated User
We implemented that using PHP and it is working fine. here is the url of app
http://gisonline.dep.wv.gov/trydam/
All you need to do is create two states one is application state and one login state. in Login state do a http service request using php and if php returns and authenticate username/pword, you can change state to application state else show alert or something...

I have seen with sample flex viewer same thing but never tried. You can add a titlewindow in the beginning of the app (so many people are using it for disclaimer so wont be hard to implement) that sends a http request and authenticate user..
0 Kudos
HeatherHainsworth
Deactivated User
My issue seemed to be with the PHP web service and getting it to connect to our LDAP Server. I had view states set up but the PHP service did not seem to be actually executing the PHP code. That being said I tried a different path and created a ASP.NET web service and it seems to be working so far.

Thanks for your response!
0 Kudos
JamesKo
Occasional Contributor
Hello hhainsworth,

I was wondering if you'd be willing to share your ASP.NET webservice code? This is something I've been looking into implementing on our website and your help would be greatly appreciated.
0 Kudos
HeatherHainsworth
Deactivated User
I ended up following this arcitlce to create the service http://msdn.microsoft.com/en-us/library/aa302397.aspx

So I created a empty C# Web Service in VS, and then used step 3 and step 5 of the walk through above to get the code. We don't have groups in the LDAP so I was able to ignore that. The hardest part was figuring out our parameters for the LDAP instance.
0 Kudos