Centralized IT may have shibbolized email addresses differently than what a departmental web admin may have for his/her local users, even though they're both technically correct. One entity may use mixed case versus another. Comparisons of email addresses should be case-insensitive when a user tries to manually link his/her account with Shibboleth.
diff -Naur public_html/wp-content/plugins/shibboleth/options-user.php public_html_modified/wp-content/plugins/shibboleth/options-user.php
--- public_html/wp-content/plugins/shibboleth/options-user.php 2018-03-12 14:39:51.000000000 -0600
+++ public_html_modified/wp-content/plugins/shibboleth/options-user.php 2018-03-13 16:40:15.386361724 -0600
@@ -218,7 +218,7 @@
wp_safe_redirect( get_edit_user_link() . '?shibboleth=failed' );
exit;
}
- } elseif ( $user->user_email == $email && $allowed === 'bypass' ) {
+ } elseif ( $user->user_email === $email && $allowed === 'bypass' ) {
update_user_meta( $user->ID, 'shibboleth_account', true );
wp_safe_redirect( get_edit_user_link() . '?shibboleth=linked' );
exit;
Centralized IT may have shibbolized email addresses differently than what a departmental web admin may have for his/her local users, even though they're both technically correct. One entity may use mixed case versus another. Comparisons of email addresses should be case-insensitive when a user tries to manually link his/her account with Shibboleth.