Forums | Mahara Community

Mahara/Moodle integration /
Binding broken


28 October 2013, 16:41

We have had a change of DC and I think its broken the Mahara login.

Not even Admin can login now and I can change the binding back.

I have tried to edit the DC name on table auth_instance_config and it didnt help.

From LMS SSO, this is the error on Apache2.log is 

 

----------------------------

[Mon Oct 28 11:32:47 2013] [error] [client 10.66.10.221] [WAR] 3f (api/xmlrpc/client.php:138) Time drift (0, 286) is too large., referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:32:47 2013] [error] [client 10.66.10.221] Call stack (most recent first):, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:32:47 2013] [error] [client 10.66.10.221] * Client->send("http://lms.petermoyes.wa.edu.au") at /home/mahara/public_html/auth/xmlrpc/lib.php:119, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:32:47 2013] [error] [client 10.66.10.221] * AuthXmlrpc->request_user_authorise("549c763a810998b90735f320ec436ed26e67736c", "http://lms.petermoyes.wa.edu.au") at /home/mahara/public_html/auth/xmlrpc/land.php:94, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:32:47 2013] [error] [client 10.66.10.221] , referer: http://lms.petermoyes.wa.edu.au/my/

--------------------------------

If I directly try login this is the error generated:

[Mon Oct 28 11:36:44 2013] [error] [client 10.66.10.221] [WAR] 17 (api/xmlrpc/client.php:138) Time drift (0, 286) is too large., referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:36:44 2013] [error] [client 10.66.10.221] Call stack (most recent first):, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:36:44 2013] [error] [client 10.66.10.221] * Client->send("http://lms.petermoyes.wa.edu.au") at /home/mahara/public_html/auth/xmlrpc/lib.php:119, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:36:44 2013] [error] [client 10.66.10.221] * AuthXmlrpc->request_user_authorise("5286ca1b0834666c0fd22cec3b360dc8da14f25d", "http://lms.petermoyes.wa.edu.au") at /home/mahara/public_html/auth/xmlrpc/land.php:94, referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:36:44 2013] [error] [client 10.66.10.221] , referer: http://lms.petermoyes.wa.edu.au/my/
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] [WAR] 6c (auth/ldap/lib.php:232) ldap_bind(): Unable to bind to server: Can't contact LDAP server, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] Call stack (most recent first):, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * log_message("ldap_bind(): Unable to bind to server: Can't conta...", 8, true, true, "/home/mahara/public_html/auth/ldap/lib.php", 232) at /home/mahara/public_html/lib/errors.php:446, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * error(2, "ldap_bind(): Unable to bind to server: Can't conta...", "/home/mahara/public_html/auth/ldap/lib.php", 232, array(size 7)) at Unknown:0, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * ldap_bind(resource(#36), "CN=Administrator,CN=Users,DC=pmacs,DC=wa,DC=edu,DC...", "") at /home/mahara/public_html/auth/ldap/lib.php:232, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * AuthLdap->ldap_connect() at /home/mahara/public_html/auth/ldap/lib.php:110, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * AuthLdap->authenticate_user_account(object(stdClass), "XXXX") at /home/mahara/public_html/auth/user.php:1300, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * LiveUser->login("abcd", "XXXXX") at /home/mahara/public_html/auth/lib.php:1328, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * login_submit(object(Pieform), array(size 6)) at Unknown:0, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * call_user_func_array("login_submit", array(size 2)) at /home/mahara/public_html/lib/pieforms/pieform.php:514, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * Pieform->__construct(array(size 9)) at /home/mahara/public_html/auth/lib.php:498, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * auth_setup() at /home/mahara/public_html/init.php:321, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * require("/home/mahara/public_html/init.php") at /home/mahara/public_html/index.php:32, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] , referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] [WAR] 6c (auth/ldap/lib.php:171) LDAP connection failed: ldap://pmacsdc01.pmacs.wa.edu.au/OU=Users,OU=PMACS,DC=pmacs,DC=wa,DC=edu,DC=au, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] Call stack (most recent first):, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * log_message("LDAP connection failed: ldap://pmacsdc01.pmacs.wa....", 8, true, true) at /home/mahara/public_html/lib/errors.php:109, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * log_warn("LDAP connection failed: ldap://pmacsdc01.pmacs.wa....") at /home/mahara/public_html/auth/ldap/lib.php:171, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * AuthLdap->authenticate_user_account(object(stdClass), "Nat1994") at /home/mahara/public_html/auth/user.php:1300, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * LiveUser->login("abcd", "XXXX") at /home/mahara/public_html/auth/lib.php:1328, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * login_submit(object(Pieform), array(size 6)) at Unknown:0, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * call_user_func_array("login_submit", array(size 2)) at /home/mahara/public_html/lib/pieforms/pieform.php:514, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * Pieform->__construct(array(size 9)) at /home/mahara/public_html/auth/lib.php:498, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * auth_setup() at /home/mahara/public_html/init.php:321, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] * require("/home/mahara/public_html/init.php") at /home/mahara/public_html/index.php:32, referer: http://eportfolio.petermoyes.wa.edu.au/?login
[Mon Oct 28 11:36:58 2013] [error] [client 10.66.10.221] , referer: http://eportfolio.petermoyes.wa.edu.au/?login

 

Any advise to break in and correct the bindings?

anonymous profile picture
Account deleted
Posts: 33

28 October 2013, 21:09

I might be that the clocks on the VLE and Mahara are out of sync, Mnet (Moodle) will spit big time if the differance is more than 3 seconds.

Try setting the time on both servers using the CLI  ntpdate au.pool.ntp.org

you will need to be root.

Let us know. Please.Wink

 

28 October 2013, 22:29

Thanks John Andrewartha. Setting the time using the CLI resolved the issue. Strange because I had checked the time while logging on and it appears fine. Anyway appreciate your help.

anonymous profile picture
Account deleted
Posts: 33

28 October 2013, 23:21

If you are using Debian or Ubuntu you should add this cron job.

As root in the cli crontab -u root -e   that will ring up the editor which you can add the folloeing to

*/30 * * * * /etc/network/if-up.d/ntpdate

that will run the ntpdate every 30 minutes and keep the clock up todate. It will be installed and acted upon nexr cron cycle.

Do this for every Mahara and Moodle.

29 October 2013, 1:02

On Moodle, this has

*/30 * * * * wget -q -O /dev/null http://lms.petermoyes.wa.edu.au/admin/cron.php

On Mahara

*/30 * * * * curl http://eportfolio.petermoyes.wa.edu.au/lib/cron.php

Where should I add this?

 

Also, on another note, when I login to Moodle, and click the link to connect to Mahara it logs in fine, but I don't see any 'Administration' or 'Settings' tab where I can check the binding details/DC details. And I cannot login directly to Mahara, I always have to login to Moodle. Could you advise me on that?

29 October 2013, 1:54

Ignore the last part, I made myself the admin, someone deleted the admin on the usr table, so I made myself the administrator and now I can see administration tab.

anonymous profile picture
Account deleted
Posts: 33

29 October 2013, 9:15

These are cron jobs and you pt them in the same way and place as the ntpdate.

I have a contact in WestEd  Tomaz Lasic who is a Mahoodle (Mahara + Moodle) kind of person, with your permission I will email him and see if he is a little more local then I.

FYI I am in Tasmania.

John

29 October 2013, 12:30

Thanks John, you have been more than helpful. I am in Perth.

What I wanted to know about the cron job is, could I add the command as another line on the same fine? Feel free to involve Tomaz if he could advise.

Have a nice day.

anonymous profile picture
Account deleted
Posts: 33

29 October 2013, 14:18

Each command is on a new line.

You can run all the cron jobs from one server so long as they can talk to each other.

With Mnet or XMLRPC which are functionally the same in this application.

When you set up the networking the default is to make every one a student, both ways. As an added layer of understanding, going from Mahara to Moodle, if the student exists in the Moodle DB already they will have a second unrelated entry from the network connection. This can be very confusing for teachers and students.

One of the better ways is to make Mahara the entry point, then students simply network to where they are supposed to be.  The negative is Mahara does not display the Moodle My courses or have a calendar that can be synced with Moodl, a bumma if you want ro remind students they have assignments due with out going to Moodle to find out.

Next there are 3 plugins available for Moodle that allow work done in Mahare to be incorporated and assessed in Moodle, you need to setup repository's in Moodle for this to work.

John

29 October 2013, 18:08

Thanks John, will take that with me (I work for a client, so have to convince them!)

14 results