moodle/auth/ldap
Inaki 3e5f4b870e auth/ldap MDL-23652 Error in auth_ldap_sync_users.php
We need to specify a valid user id in the call to role_assign(). And we only
have to make the call if the user has been added successfully, not
otherwise.

Also make sure we lowercase the memberuser and group distinguished names
before comparing them. Depending on the LDAP server we can get mixed case
values for the DNs, and the user may have specified the creators group/ou
name in a different case.

By the way, this has been broken for ages (since the auth cleanup in 1.8, in
2007!). It's a bit strange nobody noticed before :-O

Credit goes to Joe Chryst.
2010-08-07 00:40:16 +00:00
..
db MDL-23371 reverting last commit in this file, this was most probably unintentional copy/paste from cas plugin - we need to act quickly because this was breaking installs 2010-07-26 06:51:25 +00:00
lang/en auth/ldap cas/ldap MDL-23371 auth/ldap and auth/cas refactor 2010-07-25 22:36:15 +00:00
auth.php auth/ldap MDL-23652 Error in auth_ldap_sync_users.php 2010-08-07 00:40:16 +00:00
auth_ldap_sync_users.php auth/ldap cas/ldap MDL-23371 auth/ldap and auth/cas refactor 2010-07-25 22:36:15 +00:00
config.html auth/ldap cas/ldap MDL-23371 auth/ldap and auth/cas refactor 2010-07-25 22:36:15 +00:00
ntlmsso_attempt.php adding missing page context 2010-08-02 14:14:37 +00:00
ntlmsso_finish.php adding missing page context 2010-08-02 14:14:37 +00:00
ntlmsso_magic.php adding missing page context 2010-08-02 14:14:37 +00:00
README-LDAP MDL-8590 auth cleanup - part 1 2007-02-20 17:03:36 +00:00
version.php auth/ldap cas/ldap MDL-23371 auth/ldap and auth/cas refactor 2010-07-25 22:36:15 +00:00