This doesn't appear to work with Moodle 2.2
I have followed the steps and I found two errors.
Here is the text from the terminal commands:
patching file auth/ldap/auth.php
Hunk #8 succeeded at 594 (offset 1 line).
Hunk #9 succeeded at 613 (offset 1 line).
Hunk #10 succeeded at 627 (offset 1 line).
Hunk #11 succeeded at 679 (offset 1 line).
Hunk #12 succeeded at 699 (offset 1 line).
Hunk #13 succeeded at 717 (offset 1 line).
Hunk #14 succeeded at 731 (offset 1 line).
Hunk #15 succeeded at 741 (offset 1 line).
Hunk #16 succeeded at 767 (offset 1 line).
Hunk #17 succeeded at 775 (offset 1 line).
Hunk #18 succeeded at 810 (offset 1 line).
Hunk #19 succeeded at 824 (offset 1 line).
Hunk #20 succeeded at 865 (offset 1 line).
Hunk #21 succeeded at 980 (offset 1 line).
Hunk #22 succeeded at 1035 (offset 1 line).
Hunk #23 succeeded at 1083 (offset 1 line).
Hunk #24 succeeded at 1126 (offset 1 line).
Hunk #25 succeeded at 1144 (offset 1 line).
Hunk #26 succeeded at 1161 (offset 1 line).
Hunk #27 succeeded at 1174 (offset 1 line).
Hunk #28 succeeded at 1182 (offset 1 line).
Hunk #29 succeeded at 1231 (offset 1 line).
Hunk #30 succeeded at 1240 (offset 1 line).
Hunk #31 succeeded at 1267 (offset 1 line).
Hunk #32 succeeded at 1285 (offset 1 line).
Hunk #33 succeeded at 1301 (offset 1 line).
Hunk #34 succeeded at 1343 (offset 1 line).
Hunk #35 succeeded at 1364 (offset 1 line).
Hunk #36 succeeded at 1508 (offset 1 line).
Hunk #37 succeeded at 1527 (offset 1 line).
Hunk #38 succeeded at 1545 (offset 1 line).
Hunk #39 succeeded at 1588 (offset 1 line).
Hunk #40 succeeded at 1684 (offset 1 line).
Hunk #41 succeeded at 1821 (offset 1 line).
Hunk #42 succeeded at 1839 (offset 1 line).
Hunk #43 succeeded at 1848 (offset 1 line).
Hunk #44 succeeded at 1895 (offset 1 line).
Hunk #45 succeeded at 1988 (offset 1 line).
patching file auth/ldap/cli/sync_users.php
patching file auth/ldap/config.html
patching file auth/ldap/db/install.php
patching file auth/ldap/ntlmsso_attempt.php
patching file auth/ldap/ntlmsso_finish.php
patching file auth/ldap/ntlmsso_magic.php
moodle:moodle techacsd$ sudo php -f ldapname.php ldap2
patching file auth/ldap2/auth.php
patching file auth/ldap2/cli/sync_users.php
patching file auth/ldap2/db/install.php
patching file auth/ldap2/lang/en/auth_ldap.php
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth/ldap2/lang/en/auth_ldap.php.rej
patching file auth/ldap2/lang/en/auth_ldap2.php
patching file auth/ldap2/ntlmsso_attempt.php
patching file auth/ldap2/ntlmsso_finish.php
patching file auth/ldap2/ntlmsso_magic.php
Then when I go into my site and try and activate the new plug-in I get the following error:
- line 296 of /lib/upgradelib.php: plugin_defective_exception thrown
- line 1440 of /lib/upgradelib.php: call to upgrade_plugins()
- line 269 of /admin/index.php: call to upgrade_noncore()
Any help would be appreciated. This instance of Moodle is installed on an OS X Server. (Unix)