[email protected]
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [wpCAS-w-LDAP] [Plugin: wpCAS-w-LDAP] Role reset each time a user logs inyou can manage the role through ldap:
code: “wpcas-w-ldap.php”
function get_user_data() { }
‘role’ => $wpcasldap_use_options[‘userrole’],
change the role type to maybe use an ldap attribute 😉
eg:
‘role’ => $this->data[0][‘customldapattribute’][0],
‘role’ => $this->data[0][‘department’][0],by the way: i’v have changed your source to work with authenticated binds on ldap servers:
http://josy1024.blogspot.com/2012/04/wordpress-cas-and-authenticated-ldap.html
regards josy
this worked for me in case of a varnish and https configuration:
if (req.http.X-Forwarded-Proto == "https" ) { set req.http.X-Forwarded-Port = "443"; } else { set req.http.X-Forwarded-Port = "80"; }wp-includes/functions.php
function is_ssl() { if ( isset($_SERVER['HTTPS']) ) { if ( 'on' == strtolower($_SERVER['HTTPS']) ) return true; if ( '1' == $_SERVER['HTTPS'] ) return true; } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { return true; } elseif ( isset($_SERVER['HTTP_X_FORWARDED_PORT']) && ( '443' == $_SERVER['HTTP_X_FORWARDED_PORT'] ) ) { return true; } return false; }
Viewing 2 replies - 1 through 2 (of 2 total)