can I use this standalone with out the cas plugin?
Closed this issue · 10 comments
hello!
Can I use this plugin without using the cas plugin along with it? In your usage section, it seems as if it will only work as a failover if cas fails to authenticate a user. Is this the case, or can I use this plugin to authenticate with LDAP without using cas?
Thanks!
Hi! It is meant to work standalone. It is just based on CAS plugin but does not require it as a dependency. Someone reported some issues with the recent version of YOURLS - getting "Stealing cookies" error. Is that your problem too? (I am not using the plugin anymore but can try to install and fix it if you are getting this error as well)
no, I'm not seeing that error as I've not gotten it to authenticate a user yet. I just wanted to make sure that that wasn't the issue before I troubleshoot further. If once I get it working and I get that error, I'll report back!
Thank you!!
I got it to work with some rewriting to work with our LDAP setup - but I am getting the stealing cookies error now. I'll see if I can investigate. Do you know why it's happening?
Not really. They have changed something. I looked at the relevant code which calls that Die with "Stealing cookies" and it seems that $yurls_user_passwds is not set or something like this.
I have tried setting it up here https://github.com/k3a/yourls-ldap-plugin/blob/master/plugin.php#L98 but it seems to be not enough. Would be cool if you could investigate. I am not using LDAP auth anymore so it would be a bit painful for me to set up just to fix this...
hi, I'm using your plugin and getting "Stealing cookies" error. How can I help you to investigate the problem?
Check the thread here: https://code.google.com/p/yourls/issues/detail?id=1229
you have to make some changes to functions-auth.php in order to use it with ldap or cas
sfmusta:
Can you try to put
yourls_store_cookie( YOURLS_USER );
after the marked line 98 here https://github.com/k3a/yourls-ldap-plugin/blob/master/plugin.php#L98 and let me know if that fixes the problem?
Thanks
hi all
I have the same problems with the Stealing cookies?
but this workaroung do not work for me
do you have any other advises to fix this problem?
thanks a lot
This should be fixed with the latest commit.