Forums | Mahara Community

Support /
User synchronization does not work


Ralph Ballier's profile picture
Posts: 121

12 July 2015, 3:16

Hello,

I have set up an institution called 'LMS AD'. The users are authenticated via LDAP. This works well and also the names appear correctly.


But when I write:

php sync_users.php -i = LMS AD

I get the following message:

 

[INF] f6 (auth/ldap/lib.php:2060) ---------- started institution user sync for institution "LMS-AD" at Sat, 11 Jul 2015 17:11:23 +0200 ----------
[WAR] f6 (auth/ldap/lib.php:2075) Invalid argument supplied for foreach()
Call stack (most recent first):
* log_message("Invalid argument supplied for foreach()", 8, true, true, "/www/htdocs/mahara/auth/ldap/lib.php", 2075) at /www/htdocs/mahara/lib/errors.php:441
* error(2, "Invalid argument supplied for foreach()", "/www/htdocs/mahara/auth/ldap/lib.php", 2075, array(size 10)) at /www/htdocs/mahara/auth/ldap/lib.php:2075
* auth_ldap_sync_users("LMS-AD", null, null, null, null, null, null) at /www/htdocs/mahara/auth/ldap/cli/sync_users.php:175

[INF] f6 (auth/ldap/lib.php:2101) ---------- finished institutino user sync at Sat, 11 Jul 2015 17:11:23 +0200 ----------
---------- ended at Sat, 11 Jul 2015 17:11:23 +0200 ----------

 

What is wrong?

Thanks

Ralph

Ralph Ballier's profile picture
Posts: 121

12 July 2015, 6:38

Hello,

I have found the mistake looking in the database:

In auth_instance you find

 

instancename=LISE-AD

institution=lmsmitglieder

 

Then

hp sysnc_users.php -i=lmsmitglieder

works.

 

But I had written in Mahara: lms-mitglieder

Mahara has got the "-".

 

2 results