User authorization via LDAP?

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
AndyHolyer

User authorization via LDAP?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: User authorization via LDAP?

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Pierre M.

Re: User authorization via LDAP?

Post by Pierre M. »

May be some code portion could be borrowed from another GPLed PHP software to include LDAP auth ?
PM
Pierre M.

Re: User authorization via LDAP?

Post 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
Pierre M.

Re: User authorization via LDAP?

Post by Pierre M. »

Don't worry. Somebody else may catch up on this task. May be a dev, may be a poweruser...
PM
wickhamandrew
New Member
New Member
Posts: 6
Joined: Fri Feb 16, 2007 5:26 pm

Re: User authorization via LDAP?

Post by wickhamandrew »

I have created a hack for this. We use it locally for our systems.

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

Re: User authorization via LDAP?

Post by Pierre M. »

Yeah ! cool !
Try the wiki :-)
Pierre M.
Post Reply

Return to “Tips and Tricks”