Alain-Aymerick FRANCOIS
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Cassify] Curl Error after loginHi,
I think the machine wich host the wordpress blog can’t join the CAS server. Is it the same machine wich host wordpress blog and CAS server ?
Have you tried to check this. Make nslookup communaute.capcir.fr from itself ? If DNS resolution is good, test if it’s not a firewall problem. Make telnet on 8443 port from itself.
I think it’s network problem with your configuration not a plugin bug.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Email loginI don’t know if it answer to you question but i try anyway.
I think it’seems to be possible with hack the plugin code.
But it assume that you return email in cas:user tag.You can try to replace function code like this (the function is located in classes/wp_cassify_utils.php) :
public static function wp_cassify_auth_user_wordpress( $cas_user_id ) { if ( email_exists( $cas_user_id ) ) { $user = get_user_by( 'email', $cas_user_id ); wp_set_current_user( $user->ID, $user->user_login ); wp_set_auth_cookie( $user->ID ); do_action( 'wp_login', $user->user_login ); } else { die( 'User account does not exists in WordPress database !'); } }Best regards.
Forum: Plugins
In reply to: [WP Cassify] Email loginNo, cas:user tag will validate with WP user_login value.(WordPress pre-existing accounts) If user already exist in WordPress before WP Cassify plugin activation, you van perform an SQL update query to update WP user_login with user_email.
If WordPress user account does not yet exist, you can check option “create user if not exist”. Then WordPress user account will ne created with cas:user tag value as user_login (So email in your case).Forum: Plugins
In reply to: [WP Cassify] Email loginHi,
The plugin use the value inside cas:user tag in xml CAS Server response to validate user. So, if cas:user tag contains user email, it’s good.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Cheatin’ errorHi,
Plugin works with multisite. I’ve installed your theme on my installation and I was able to customize the appearance. So, I think the problem become from your WordPress installation.
You can try to make the test on a fresh WordPress install.Best regards.
Forum: Plugins
In reply to: [WP Cassify] Cheatin’ errorHi,
Try to create another admin account and then connect with the new admin account. Try to customize appearance.
See this :
https://wordpress.org/support/topic/customise-1?replies=5Best regards.
Forum: Plugins
In reply to: [WP Cassify] Cheatin’ errorI think the problem provide that you’ve not the same privilege level when you’re connected throught CAS authentication via WP Cassify and via classic local WordPress auth.
Compare you’re wordpress user account role in two case.
I’ve tested you’re theme. It works like a charm when i’m connected via WP Cassify with user account which have administrator role in blog.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Users Roles SettingHi,
Sorry, but it’s another bug on NEQ operator. Upgrade to 1.9.3 and re-test your rules without changes.
Keep me informed.Best regards.
Forum: Plugins
In reply to: [WP Cassify] Cheatin’ errorHi,
Can you transfer me the theme via DropBox, Wetransfer or another. My email is aa_francois@yahoo.fr.
It’s difficult to solve the problem if can’t test your theme.
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Users Roles SettingHi,
It’s a bug on rule solver. Please update to 1.9.2
Best regards.Forum: Plugins
In reply to: [WP Cassify] Cheatin’ errorHi,
I’ve not reproduced the bug. What’s the theme you’re using ?
Best regards.
Forum: Plugins
In reply to: [WP Cassify] Bypass CAS authentificationI’ve made changes on last version. By default, authenticated user has no WordPress role.
Try to write a User Role Rule like this to push at least subscriber role to all authenticated users :
(CAS{cas_user_id} -NEQ “admin”) => role subscriber
Hi,
Please upgrade to 1.9.1. I’ve corrected this. I use now uninstall_hook instead of deactivate_hook to delete plugin configuration.
Best regards.
I’ve added scope parameter (blog id or ALL) in 1.9.1. In the next version, if network activated, i would delegate role mapping option for blog admins.
Best regards.
Hi yalet and Charles,
I use users feedback to develop my plugin because i can’t test all use cases and have an opinion.
So, I took into account feedback and i’ve commented code wich generate security hole and created a new filter to interact with plugin properly :
wp_cassify_grab_service_ticket_roles_to_push (line 438 in wp_cassify_plugin.php).
// Override list roles to push to user connected via CAS. function custom_action_wp_cassify_grab_service_ticket_roles_to_push( $roles_to_push ) { array_push( $roles_to_push, 'subscriber' ); return $roles_to_push; } add_filter( 'wp_cassify_grab_service_ticket_roles_to_push', 'custom_action_wp_cassify_grab_service_ticket_roles_to_push', 1, 1 );But, you have forgotten one thing. If WP Cassify is network activated, i must add an additionnal parameter in User Roles Rules Settings : the blog ID.
WordPress Role|Rule|Blog ID
What do you think about that ?
I want keep my plugin accessible for advanced users (with filters and hooks) but also for the beginners with Users Roles Rules Settings.
Best regards.