LDAP / RADIUS / How to get working?

LDAP / RADIUS / How to get working?

by Will Carr -
Number of replies: 4
Firstly - apologies - this may be covered in another thread.
I am involved in building a Moodle VLE for the school I work in.
I'd like users to authenticate using the username & password they already have for the rest of the (AD 2003) network access.
So - a couple of questions:
- which is better / simpler to set up - RADIUS or LDAP? I don't need users to be able to change passwords via Moodle (2003 AD can be 'read-only').
- given the answer to the first question, is there an idiots guide to setting up RADIUS or LDAP that anyone can point me to please?

I am a simple infrastructure engineer - not a web site developer - I understand the AD end (I've got my MCSE) but the Moodle / PHP end just seems to be 'smoke & mirrors', with long listings of what seems to be code that (simple cable monkey that I am) I don't understand!

I am a Moodle 'virgin', using XAMPP over a 2003 Server install for the operational site and XAMPP over Ubuntu 8.10 as my test site (so I don't screw up the operational site). XAMPP is 1.6.8a - Moodle is 1.9.3. build 20081015

Any help would really be appreciated!
Average of ratings: -
In reply to Will Carr

Re: LDAP / RADIUS / How to get working?

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

LDAP is (IMHO) easier to setup, and functionnality is pretty much the same. I'd say LDAP is substantially more tested (lots of people using it). Plus with LDAP, you can get SSO with NTLM for your domain users.

You have lots of details at http://docs.moodle.org/en/LDAP_authentication and http://docs.moodle.org/en/NTLM_authentication smile

Saludos. Iñaki.

In reply to Will Carr

Re: LDAP / RADIUS / How to get working?

by Stanislav Tsymbalov -
I think Radius is easier. We have tested Radius and LDAP plugins in my orgnization and have chosen Radius.

I have fixed Moodle Radius Plugin. All settings in the Moddle admin.
It's sipmle and safety (support all CHAP versions).

The RADIUS Plugin is attached.
Or you can download from:
http://sourceforge.net/projects/moodleradius/
In reply to Stanislav Tsymbalov

Re: LDAP / RADIUS / How to get working?

by Lu Pa -
Hi Stan...
I am trying to use your modified plugin but i can't. I'm not shure how to test it since i can only see a white empty page...

thanks!
In reply to Lu Pa

Re: LDAP / RADIUS / How to get working?

by Lu Pa -
SOLVE IT:

(Versions: kernel: 2.6.24-19-server, moodle: 1.9.3, php: 5.2.4-2ubuntu5.5, php-radius: 1.2-4 )

I was trying to get radius working against a database put in another server, and we were not sure why was not working.

1. So we began with a sniff to see if servers were talking, but they weren't.

2. We install php-radius by apt-get install php-radius but moodle says: “Warning: The Auth_RADIUS module does not seem to be present”. We couldn't found nothing in internet about this error.

3. Next step, see why we get an empty blank page… and we realize that we can use moodle's debugging mode. We turn on debugging by going to: Server → Debugging

4. After that we found there was a problem: moodle need a file called RADIUS.php

5. We try installing Stan's module found in sourceforge.net but still with problems… now that: "Call to undefined function radius_auth_open()".

6. So be put back original radius module. (moodle/auth/radius)

7. Someone talk us about pear, and make: pear install Auth_RADIUS. So we began to research and find this: http://pear.php.net/manual/en/installation.php

8. Finally we install 'php5-dev' and ran: pear install Auth_RADIUS ... and it works!!