Feature Automatic Login / Single sign-on added
-
This is a modified auto login version previously published by dimagsv. Mainly I’ve made the auto login accessible by the plugin’s options page. This is for plugin version v1.1.5.
Features added:
- Checkbox to enable auto login (SSO)
- Text field for name of an user with admin read access to the AD
- Text field for password of an user with admin read access to the AD
- Text field which allows to enter user IDs which should not authenticated against the AD. As it is recommended to delete the default admin user with ID=1, I’ve added this option to allow other/additional user IDs.
- Test for “empty($username)” in function _get_failed_logins_within_block_time() (scheduled for v1.1.6).
Changed:
- Moved the new test for “empty($username)” in function authenticate() some lines below (scheduled for v1.1.6).
You can find a diff of the main file ad-integration.php at https://www.diffchecker.com/l0zylyxp. But the relevant code section is not readable very well.
The complete set of changed files can be found at Gist https://gist.github.com/jotazzu/5e92f33e9eea34045290. This includes ad-integration.php, admin.php and a fragment for functions.php.
This mod assumes a working NTLM authentication module on the web server. I use it on a Linux server with mod_auth_ntlm_winbind.
And finally I want to say many, many thanks to the authors of this plugin for their fantastic and comprehensive work. Also dimagsv for his clever auto login code.
https://www.ads-software.com/plugins/active-directory-integration/
- The topic ‘Feature Automatic Login / Single sign-on added’ is closed to new replies.