LDAP Authentication not working in Moodle 2.7

LDAP Authentication not working in Moodle 2.7

by Neil Williams -
Number of replies: 5

Hi,

I've been trying to get LDAP authentication to work in Moodle, but its been a nightmare.

I upgrade to Moodle's latest version, and now I get a different error.

'LDAP-module cannot connect to any servers: Server: '10.4.2.5', Connection: 'Resource id #82', Bind result: '''

I have followed the step-by-step guide to do it but it just doesn't work, I also try different settings combination, but no luck.

The context string is correct, as I've used it for other tools.

I'm using Windows Server 2012, running on IIS 8.0

PHP 5.5.12 and myql 5.5.38

Any help would be appreciated.

Eric



Average of ratings: -
In reply to Neil Williams

Re: LDAP Authentication not working in Moodle 2.7

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Can you post a screenshot of your settings page (block out sensitive info)?  It is somewhat tricky to set up but can be done!

In reply to Emma Richardson

Re: LDAP Authentication not working in Moodle 2.7

by Neil Williams -

Hi Emma,

Please find the requested screenshot attached.

Thank you for your help.


Attachment Screen Shot 2014-07-21 at 09.18.01.png
In reply to Neil Williams

Re: LDAP Authentication not working in Moodle 2.7

by Steven Dawe -

Hi Eric

I'm v.new to this, so apologies if this is wide of the mark:

I also had problems getting my LDAP Authentication to work, in the end, i resorted to exporting my AD to a CSV file using CSVDE command and then opening my CSV in excel, searching for my Bind user account and copying the Distinguished name from there, to ensure it was correct.

I only mention this because in my case, i had specified my bind user as:

CN=USERNAME,OU=Users,DC=Domain

When the AD DN for my account is:

CN=USERNAME,CN=Users,DC=Domain

Just in case it helps at all.

Steve.


Average of ratings: Useful (1)
In reply to Steven Dawe

Re: LDAP Authentication not working in Moodle 2.7

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

1.  For my bind user, I use the Distinguished name which is actually the same as the display name e.g. Moodle BindUser

2. More importantly, you need to put samaccountname under the user attribute so that Moodle knows where to look for the user name.

3. For mine, I had to specify password as plain text.

Try those fixes and report back!

Average of ratings: Useful (1)
In reply to Steven Dawe

Re: LDAP Authentication not working in Moodle 2.7

by Neil Williams -

Thanks Steve that did the trick.

I was using the dot between first name and last name.

When remove the dot all worked fine.

Thanks you again for your help.

Eric