themad
Forum Replies Created
-
Forum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?I found a much easier solution
I took the plugin http authentucation and changes these lines:
if (! empty($_SERVER[$server_key])) { $username = $_SERVER[$server_key]; }
to
if (! empty($_SERVER[$server_key])) { $userparts = explode('@', $_SERVER[$server_key]); username = $userparts[0]; }
And I added the plugin force user login
I still use the AD plugin to import the users and get the information like firstname
Since my apache is doing kerberos authentication already, this is a good solution to meForum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?one random finding: when I refresh the login site, I get blocked after some time.
so at least he tries to loginForum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?well, i did not have this variable, but I have removed the
if ($this->auto_login), which should do the same
now I have an interessting effect:
I get entered [email protected],
but I need to login [email protected] (username in camel-case des not work as well)— at least this works with my AD password
The REMOTE_USER and PHP_AUTH_USER is [email protected]
(we have for user John Doe the loginname JDoe )this confuses me a lot
Forum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?thanks you for this hint
unfortunaloly I still dont see any change
what I also tried is using
if ($this->auto_login) {
add_action(‘init’, array(&$this, ‘auto_login’));
}
sind the other functions use itI added to the function a test-echo:
public function auto_login() {
echo “autologin started”;and this appears nowhere, so I think this doesnt get loaded
what am I missing
any special settings in the plugin?Forum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?oh never mind, i forgot to comment a { ??
but it still does nothing
Forum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?ah what I forgot, lin 963 is :
public function generate_password($username, $password1, $password2) {
$password1 = $password2 = $this->_get_password();Forum: Plugins
In reply to: [Active Directory Integration] How to create a Single Sign On?Hello,
I think the solution of veloek has the charme that it can be combined with kerberos, since ntlm is not the most secure idea.
Combined with bulk import this is a valid solution for me.But when I insert the function, I get this error:
PHP Parse error: syntax error, unexpected ‘public’ (T_PUBLIC) in /srv/www/htdocs/wp-content/plugins/active-directory-integration/ad-integration.php on line 963
Any ideas where this comes from?
Best regards,
themad