+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
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 ...
  1. #1
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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)
    firstname: givenName
    surname sn

  2. #2
    carvjo's Avatar
    Join Date
    Mar 2010
    Location
    Oxford
    Posts
    195
    Thank Post
    12
    Thanked 39 Times in 34 Posts
    Rep Power
    22
    Hi

    When we set our up, I worked through this and it did the job!

    LDAP authentication - MoodleDocs

    Regards

  3. #3

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    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 user@domain.local

    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.

  4. #4
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Still not working
    Tried the Host Url and distinguished name but have the same error

  5. #5

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    Is it internally hosted? Also does your AD server give any errors from the binding?

  6. #6
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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

  7. #7

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    Have you tried using a domain admin account as the bind account to make sure the permissions are correct?

  8. #8
    SovietRussia's Avatar
    Join Date
    Mar 2013
    Location
    Powys, Wales
    Posts
    685
    Thank Post
    75
    Thanked 156 Times in 121 Posts
    Rep Power
    49
    Quote Originally Posted by gaz003 View Post
    Distinguisehd name: cn=ldaplink,ou=moodle,dc=schoolname,dc=school,dc=l ocal;CN=Administrator,OU=Users,DC=schoolnames,DC=s chool,DC=local
    You have a space... That would do it - Or you dont have a space and my PC is screwed.

  9. #9

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    There is indeed a space, I didn't even notice. Let's hope that solves it for him.

  10. #10
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.

  11. #11

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    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?

  12. #12

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,098
    Thank Post
    6
    Thanked 217 Times in 197 Posts
    Rep Power
    56
    I wonder if it doesn't like the space in "cn=staff users" do you have an OU you could try with no space?

  13. #13
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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!)

  14. #14
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    the moodle directory for the ldaplink account, should that not work?

  15. #15
    gaz003's Avatar
    Join Date
    Feb 2010
    Location
    UK
    Posts
    40
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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?

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Issues with new user accounts in an OU
    By Scruff in forum Windows
    Replies: 0
    Last Post: 7th September 2007, 10:12 AM
  2. ePortal & Results - Errors
    By mark80 in forum MIS Systems
    Replies: 2
    Last Post: 11th July 2007, 01:19 PM
  3. Cachepilot error with myLGFL
    By philtomo-25 in forum Windows
    Replies: 2
    Last Post: 27th June 2007, 10:45 AM
  4. Mandatory profile gets deleted along with the user account
    By mark_sharman in forum Network and Classroom Management
    Replies: 2
    Last Post: 23rd February 2007, 09:38 PM
  5. Stupid CMD error with logon script
    By tarquel in forum Windows
    Replies: 37
    Last Post: 14th June 2006, 09:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •