Virtual Learning Platforms Thread, Moodle Resource id #8 Bind Result error with ldap user accounts in Technical; I have used Microsoft web app gallery to setup my PHP, MySQL and Moodle installation. I have configured Moodle so ...
22nd May 2013, 11:35 AM #1
Moodle Resource id #8 Bind Result error with ldap user accounts
I have used Microsoft web app gallery to setup my PHP, MySQL and Moodle installation. I have configured Moodle so it can be accessed Internally and Externally, But I now have the issue of trying to setup Active Directory user accounts to moodle. I hope there may be someone who can help as I am starting to pull my hair out I have tried every setting I can think of with this and cannot get it to work. I have reset the password of the account and created a new account just in case.
I have entered the ldap settings
Host Url: ldap://172.16.0.1.augustines.school.local also tried ldap://172.16.0.1 and just the IP address
Version 3 ldap encoding: utf-8
Distinguisehd name: cn=ldaplink,ou=moodle,dc=schoolname,dc=school,dc=l ocal;CN=Administrator,OU=Users,DC=schoolnames,DC=s chool,DC=local
user type: msactive directory
contexts ou=staff users,dc=schoolname,dc=school,dc=local
Search sub contexts - yes
User attribute: samaccountname (Is this case sensitive because everytime I set it in the correct case and save it reverts back to this? does anyone know where the file is located so I can manually add it)
IDG Tech News
22nd May 2013, 11:43 AM #2
When we set our up, I worked through this and it did the job!
LDAP authentication - MoodleDocs
22nd May 2013, 11:47 AM #3
I have just checked ours, it is hosted on site.
Our Host URL is just ldap://server.domain.local
the other differences are below, we upgraded from 1.9 to 2.2 though:
our distinguished name is set as email@example.com
The user attribute does remain with the capitals though, but when i hit save it went lower case, then after i logged in again to check it worked, it was back to the original format (odd I know).
Edit: if your Moodle is externally hosted, remember the firewall ports for LDAP over SSL etc need sorting.
22nd May 2013, 12:07 PM #4
Still not working
Tried the Host Url and distinguished name but have the same error
22nd May 2013, 12:12 PM #5
Is it internally hosted? Also does your AD server give any errors from the binding?
22nd May 2013, 02:45 PM #6
Internally hosted, but can also be accessed externally through the dns records and public facing IP address we configured.
Checked AD and cannot see any errors in relation to this
22nd May 2013, 03:03 PM #7
Have you tried using a domain admin account as the bind account to make sure the permissions are correct?
22nd May 2013, 03:05 PM #8
You have a space... That would do it - Or you dont have a space and my PC is screwed.
Originally Posted by gaz003
22nd May 2013, 03:15 PM #9
There is indeed a space, I didn't even notice. Let's hope that solves it for him.
22nd May 2013, 03:47 PM #10
Thank you for your suggestions, I am not sure what happened with the copying from Moodle to the forum site - logged on as the moodle admin and there are no spaces in any of the words? it might have been when I removed our domain name and I put schoolname in its place on the forum site. sorry!
Also added the administrator account as recommended and again I still cannot log on and get the same ldap error.
22nd May 2013, 03:51 PM #11
I don't mean to insult you, but you defo have the ldap module in your php, and you defo have the samaccountname filled in AD right?
22nd May 2013, 03:57 PM #12
I wonder if it doesn't like the space in "cn=staff users" do you have an OU you could try with no space?
22nd May 2013, 03:58 PM #13
achandler - Thanks again for your advice, always good to talk over what I did to start with in case I didn't quite do it right.
I have gone in to c:\program files (x86)\ php\v5.3\edited the php configuration settings file
in extensions added extension=php_ldap.dll
The dll file is located in c:\program files (x86)\ php\v5.3\extensions folder
It was a Microsoft web app install so hopefully that's the location where it all needed changing?
Originally it all worked on a test with xammpp but I was told it wasn't secure to use this solution, so stuck with Microsoft (wasn't sure if that was wise!)
22nd May 2013, 04:00 PM #14
the moodle directory for the ldaplink account, should that not work?
22nd May 2013, 04:01 PM #15
One thing I keep coming back to is the samaccoutnname is all lower case, It wont let me change it case sensitive, I save the settings return to the page after logging out and its all lower case?
By Scruff in forum Windows
Last Post: 7th September 2007, 11:12 AM
By mark80 in forum MIS Systems
Last Post: 11th July 2007, 02:19 PM
By philtomo-25 in forum Windows
Last Post: 27th June 2007, 11:45 AM
By mark_sharman in forum Network and Classroom Management
Last Post: 23rd February 2007, 10:38 PM
By tarquel in forum Windows
Last Post: 14th June 2006, 10:07 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)