Authenticating against multiple (separate) domains

Authenticating against multiple (separate) domains

by Gary Lee -
Number of replies: 2

Hi everyone, I've had a quick search around the forums and online but I cant see a definite answer to the following:


We have two separate Active Directory domains which unlike most peoples setups are in separate forests on separate servers with no single global catalog, there is a trust relationship between the domains and machines are allowed to authenticate against either server, however Moodle is a different story - we can't seem to think of a way to get it to authenticate against both domains simultaneously. Does anyone else have this setup or any suggestions as to how we could achieve this? 


Thanks,
Gary



Average of ratings: -
In reply to Gary Lee

Re: Authenticating against multiple (separate) domains

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Google clone ldap server moodle.  You need to clone the plugin for your second domain.  There is a post with patches for each version of moodle - you should be able to find it pretty easily.

In reply to Emma Richardson

Re: Authenticating against multiple (separate) domains

by Gary Lee -

Hi Emma, thanks for your reply, I had a look at that thread but couldn't seem to make it work with 3.3.2, should it be ok? I searched the thread but the most recent version I can see is 3.3.1, I'm guessing there won't be much difference between the two but when I'm using the patch script provided towards the bottom of the thread and it fails with:


patching file auth/ldap2/lang/en/auth_ldap2.php

patching file auth/ldap2/settings.php

Hunk #1 FAILED at 17.

Hunk #2 FAILED at 33.

Hunk #3 FAILED at 110.

Hunk #4 FAILED at 129.

Hunk #5 FAILED at 200.

Hunk #6 FAILED at 210.

Hunk #7 FAILED at 291.

7 out of 7 hunks FAILED -- saving rejects to file auth/ldap2/settings.php.rej

patching file auth/ldap2/cli/sync_users.php

Hunk #2 FAILED at 46.

Hunk #3 succeeded at 60 with fuzz 2 (offset -2 lines).

1 out of 3 hunks FAILED -- saving rejects to file auth/ldap2/cli/sync_users.php.rej

patching file auth/ldap2/classes/admin_setting_special_contexts_configtext.php

patching file auth/ldap2/classes/admin_setting_special_lowercase_configtext.php

patching file auth/ldap2/classes/admin_setting_special_ntlm_configtext.php

Hunk #2 FAILED at 25.

1 out of 2 hunks FAILED -- saving rejects to file auth/ldap2/classes/admin_setting_special_ntlm_configtext.php.rej

patching file auth/ldap2/auth.php

Hunk #3 succeeded at 121 with fuzz 2.

patching file auth/ldap2/db/tasks.php

patching file auth/ldap2/db/install.php

patching file auth/ldap2/db/upgrade.php

Hunk #2 FAILED at 25.

Hunk #3 FAILED at 63.

2 out of 3 hunks FAILED -- saving rejects to file auth/ldap2/db/upgrade.php.rej

patching file auth/ldap2/lang/en/auth_ldap2.php

patching file auth/ldap2/ntlmsso_attempt.php

Hunk #1 FAILED at 2.

1 out of 1 hunk FAILED -- saving rejects to file auth/ldap2/ntlmsso_attempt.php.rej

patching file auth/ldap2/ntlmsso_finish.php

Hunk #1 FAILED at 2.

1 out of 1 hunk FAILED -- saving rejects to file auth/ldap2/ntlmsso_finish.php.rej

patching file auth/ldap2/ntlmsso_magic.php

Hunk #1 FAILED at 6.

1 out of 1 hunk FAILED -- saving rejects to file auth/ldap2/ntlmsso_magic.php.rej

patching file auth/ldap2/version.php

Hunk #2 FAILED at 27.

1 out of 2 hunks FAILED -- saving rejects to file auth/ldap2/version.php.rej

patching file auth/ldap2/classes/task/sync_task.php

Hunk #2 FAILED at 31.

1 out of 2 hunks FAILED -- saving rejects to file auth/ldap2/classes/task/sync_task.php.rej