Page 1 of 1

User authorization via LDAP?

Posted: Wed Jan 24, 2007 11:52 am
by AndyHolyer
We are very strongly considering using CMSMS as the engine for the new version of our web site and future VLE.

There is one criterion which does not yet seem to be provided: Our college does user authorization using Active Directory, so I need to get CMSMS to talk to an LDAP server in order to authorize users. I'm looking at the source code of moodle in order to see how they manage this, but first, I thought I'd ask:

Has anyone else already started working on this?
Is it insanely difficult to do?
Are there any suggestions for general strategy? I'm already thinking that I need to structure it as a general "Third Party Authentication" module and a separate "LDAP" module. Any hints as to where in the codebase I should look would also be handy.

Thanks in advance for any help,

Andy Holyer,
Sussex Downs College,
Lewes,
UK

Re: User authorization via LDAP?

Posted: Wed Jan 24, 2007 7:04 pm
by calguy1000
You are correct, there is no code for this currently in CMS in any place.

The big question is do you want ldap authentication for the frontend, or backend?

If for the frontend, the FEU module is semi segregated, and you can just replace some/all of the functions in FrontendUsers.api.php.  If you need the authentication for the backend, it's a bit more involved.

I wrote the FEU Module, and have significant knowledge of the backend stuff too, so I can help with anything you're trying to write...  Give me a shout on email, or PM and we can talk about it.

Re: User authorization via LDAP?

Posted: Thu Feb 08, 2007 3:46 pm
by Pierre M.
May be some code portion could be borrowed from another GPLed PHP software to include LDAP auth ?
PM

Re: User authorization via LDAP?

Posted: Sat Feb 10, 2007 6:38 pm
by Pierre M.
Exciting, thanks.
May be you can post some howto/tutorial in CMSms wiki so there wouldn't be any need of code duplication.
PM

Re: User authorization via LDAP?

Posted: Mon Feb 12, 2007 4:13 pm
by Pierre M.
Don't worry. Somebody else may catch up on this task. May be a dev, may be a poweruser...
PM

Re: User authorization via LDAP?

Posted: Fri Feb 16, 2007 5:48 pm
by wickhamandrew
I have created a hack for this. We use it locally for our systems.

http://forum.cmsmadesimple.org/index.ph ... 50838.html

Re: User authorization via LDAP?

Posted: Sat Feb 17, 2007 4:21 pm
by Pierre M.
Yeah ! cool !
Try the wiki :-)
Pierre M.