Skip to content

Problem with logout in YOURLS 1.10.1 #36

@Nidilap

Description

@Nidilap

Hello.

I am implementing YOURLS LDAP PLUGIN in my YOURLS website 1.10.1.
I am using login with groups and it is working for logging in.

This is my configuration in user/config.php:
define('LDAPAUTH_HOST', '[ldap_host]');
define('LDAPAUTH_BASE', '[ldap_base]');
define('LDAPAUTH_PORT', 389);
define('LDAPAUTH_USERNAME_FIELD', 'sAMAccountName');
define('LDAPAUTH_ALL_USERS_ADMIN', true);
define('LDAPAUTH_ADD_NEW', true);
define('LDAPAUTH_SEARCH_USER', '[search_user]');
define('LDAPAUTH_SEARCH_PASS', '[password]');
define('LDAPAUTH_GROUP_MODE', "group");
define('LDAPAUTH_GROUP_BASE', '[group_base]);
define('LDAPAUTH_GROUP_ATTR', 'cn');
define('LDAPAUTH_GROUP_MEMBER', 'member');
define('LDAPAUTH_GROUP_MEMBER_TYPE', 'dn');
define('LDAPAUTH_GROUP_REQ', 'lista.padrao.SGLC-Editor');
define('LDAPAUTH_LDAP_OPT_REFERRALS', 0);
define('LDAPAUTH_USERCACHE_TYPE', 0);

However, I'm having a problem with logout. When I try to log out with a LDAP user, it does not log out.
When I try with a fixed user in $yourls_user_passwords in config.php that is not in the ldap, the log out works.

I think it has something to do with the cookies when the login happens.
When logging in with a user of ldap, the cookie of YOURLS is not set.

Can anyone help me with this? I tried putting some logs for debugging and fixing this, but I had no success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions