-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YOURLS version 1.8.1 functionality #28
Conversation
Updated so this plugin functions with latest YOURLS version
Thanks for the contribution! Are you sure it will be backward-compatible with older YOURLS? Especially renaming is_valid_user to shunt_is_valid_user. I don't use YOURLS actively anymore so it would be difficult for me to properly test. |
Hi k3a, apologies for the delayed response. I can't speak for certain that this is backward-compatible. Would it be ideal to just branch my PR? In my opinion, branching would be the path of least resistance. If backwards compatibility is important enough to you, I can dig deeper and run some tests with older versions, however this will take time. We might be able to get backwards compatibility with some version-logic. Something like From my personal testing of is_valid... to shunt_is_valid... I could not get Let me know what you think the best course of action is. |
Hello, I'have installed yourls 1.9.2 and your ldap plugin, I'have modified the ldap plugin because I could not search in ldap, now I can bind to ldap and search in ldap, but now appears a new error when I login with a new user : Couldn't add user, plugin may not be compatible with YourLS version. When you will upload a new ldap plugin version compatible with Yourls last version. Thanks. |
Hello, I'have could login in Yourls with ldap user setting LDAPAUTH_NEW_USER to false and LDAPAUTH_ALL_USERS_ADMIN to true. Now my doubt is: only can login admin users in Yourls? |
don't worry I got it working |
Hey glad you got it working. What was the fix? |
Hello, finally the change that I made in plugin.php is not necessary, putting the corrects values for alls the define( 'LDAPAUTH_xxxxx in config.php it works. Basically at the begining the plugin failed because I set LDAPAUTH_NEW_USER to true and when the plugin tries to modify the config.php file to add the ldap users to this file the plugin fails, but I don't need that ldap users be added to the config.php. |
Updated so yourls-ldap-plugin now functions with latest YOURLS version (1.8.1 as of May 24, 2021).