I have fixed the Role reset bug in Multi-site installations. I’d like to make it available – is there a process for submitting it to this codebase?
]]>iv’e changed the source to use it with authenticated ldap servers:
file: "wpcas-w-ldap.php"
# OLD:
# $bind = @ldap_bind($ds);
# gugler2012040410000186
# NEW:
$bind = @ldap_bind($ds, $wpcasldap_use_options['AuthLDAPBindDN'], $wpcasldap_use_options['AuthLDAPBindPassword']);
config file: "wpcasldap-conf.php"
$wpcasldap_options = array (
...
'AuthLDAPBindDN' => "cn=binduser,ou=unit,dc=domain,dc=tld",
'AuthLDAPBindPassword' => "password",
...
https://josy1024.blogspot.com/2012/04/wordpress-cas-and-authenticated-ldap.html
]]>We are experimenting with using wpCAS-w-LDAP with our WP3 multisite blog network.
I have the following options in my wpcasldap-conf.php file:
…
‘useradd’ => ‘yes’,
‘useldap’ => ‘yes’,
’email_suffix’ => ‘princeton.edu’,
‘userrole’ => ‘subscriber’
We have the plugin working; however, each time a user logs in via CAS, the user’s role is reset to whatever role is supplied by the ‘userrole’ variable. We want new users to become subscribers when they log in, but we want manually-promoted users to retain their designated role.
With a test subdirectory blog, I had a colleague who had the site role of Administrator. As soon as he clicked the “Log In” link for that that subdirectory blog and authenticated though CAS, he became a ‘Subscriber.’ I manually changed him back to Administrator. Then I changed ‘userrole’ in the conf file to contributor and repeated the test. With the last test, I set ‘userrole’ to author. Each time, his administrator role became whatever was set as the ‘userrole.’
Any ideas? Do I have an incorrect setting somewhere?
]]>Has anyone got this working on wp3? I need to get some solution in place both uses cas and manages users properly. Thinking maybe this is it, but haven’t had any luck installing thus far.
]]>