adLdap & C5 integration for authentication

Permalink 1 user found helpful
Has anyone attempted to integrate the adLdap project into C5.

http://adldap.sourceforge.net/

I am exploring the avenue of using C5 as an intranet site for staff, ideally I would like the staff to login to certain parts of C5 (custom pages) using the existing windows domain credentials (running windows 2003 server Active Directory).

I am very new to C5 etc.

I have php programming experience, wondering if anyone has attempted to integrate adLdap project with C5, and what the outcome was etc.

I dont see much documentation on how C5 handles user authentication etc and what would it take to try and authenticate against an Ldap based authentication system etc. I am guessing users in C5 are stored in mysql table and sessions are used to verify if the user is logged in or not.

any ideas, suggestions or code would be greatly appreciated.

So far, I am very impressed with C5 and its unique features, very easy to get up and running.

 
therock112 replied on at Permalink Reply
anyone??
mose replied on at Permalink Reply
mose
I have not heard of that project before. Does your domain controller use ldap or ldaps?
Mnkras replied on at Permalink Reply
Mnkras
well you can always look at the api,

http://concrete5.org/api
or
http://docs.concrete5addons.com/...
therock112 replied on at Permalink Reply
I have looked at it alright, but I am no expert in programming, especially object oriented programming.

I can hack program, but C5 is a whole other league, it will take me months to get upto speed....unfortunately I dont have the luxury of time for this project.
therock112 replied on at Permalink Reply
our domain controller uses ldap.
mose replied on at Permalink Reply 1 Attachment
mose
I have written a package that authenticates users against our AD and OpenLDAP servers. I am attaching the package. You are welcome to use it directly or as a guide for your own package.

This is alpha software. There is no support for the software. I will probably not answer any questions about it. I am not looking for suggestions or feature requests. Use at your own risk.

You can unzip the file in your <root>/packages directory and install it like any other package. There is a readme.txt at the top that describes several steps that need to be completed by hand before it will work (if it works :-).
mose replied on at Permalink Reply
mose
I should add that you need the PHP5 LDAP module for this to work. If you are on debian, "apt-get install php5-ldap" and away you go. You can check if ldap is available on your web server by looking at phpinfo().
therock112 replied on at Permalink Best Answer Reply
excellent !!

thanks a bunch, I will definitely try it and see how it works.

I am on centos 5 with php 5 and I have written basic test scripts to authenticate against the Domain Controller and it works in a basic crude form.

in addition, I have tried the adLdap project as well, and that works flawlessly, I just dont have enough programming knowledge to somehow integrate adLdap project into C5. Hoping one day the C5 team will officially support authenticating against a central ldap system.

I will try out your code, I can read and follow php pretty decently.

thanks again.
mose replied on at Permalink Reply
mose
If the code is a solution for you, please mark that post as the answer to this thread. Thank you.
jgarcia replied on at Permalink Reply
jgarcia
Mose, great job on this package! Took me a little while to understand how to configure everything, but once I got it up and running...works great!