• Resolved roy23

    (@roy23)


    hi, plugin works great but an ldap user today cannot login to site, he receive alwais the generic error uid or password wrong..
    he told me few days ago he changed hes domain password, so today i tried to delete the user on wordpress and verify if deleted on db too.. there isn’t..
    i tried to change my domain password and try to replicate the error, but not, i enter… only his uid not..
    i created a new wp website in the same webserver with the same authldap new config, and i have the same error.
    i tried to access ldap from another application with the same parameters ecc, and it function…

    i decided to enable debug flag in admin area but i don’t know how to monitorate or read debug logs.. how can i proceed?
    thanks
    Paolo

    https://www.ads-software.com/plugins/authldap/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author heiglandreas

    (@heiglandreas)

    Hi Paolo.

    Do you have access to the web-servers error-logs? That’s where the debug-output is sent to.
    And can you give me the users username? And perhaps some information about the LDAP-Setup? Is it an AD? do you have a single ldap-server or multiple replicated hosts? and what is the email-address of the user? does that exist more than once?

    Sorry for bombing you with questions but I’d like to get a better picture to what’s happening ??

    Cheers

    Andreas

    Thread Starter roy23

    (@roy23)

    wow thank you for fast reply! ??
    is an AD, in intranet area
    and the username is a alphanumeric combination like others who enter..
    we have different hosts but i send call to only one, configured on the others application where he can access ??
    3-4 days ago he changed and now, here he cannot enter.
    i verify that there isn’t the same email address in other users config..
    where do can i read ldap response and the call syntax? sorry but i’m not very skilled in php and read a plugin wp code with infinite functions is a terryfing experience for me ??
    thank you

    Plugin Author heiglandreas

    (@heiglandreas)

    Hi Paolo.

    So the LDAP-Server you are targeting and where the user can not log in is the same LDAP-Server a different application is targeting and where the user can log in?

    Does the user have any special Characters in the password? Like f.e. a dollar-sign? or a single quote? or a backslash?

    If that’s not the case, You’ll need to contact your webservers sysadmin and try to get the servers error-log. I can’t tell you where those are located as that’s specific to the server ??

    Cheers

    Andreas

    Thread Starter roy23

    (@roy23)

    yes is the same server,
    there are two special chars: ! and
    and i think it depends from this! i changed my pwd and insert on it this two chars, now i cannot enter too… :O
    ehm.. and now? what can i do?

    Plugin Author heiglandreas

    (@heiglandreas)

    Well, change the password back on the LDAP? Which character did you use in your password? the ‘!’ or the ‘”‘?

    Thread Starter roy23

    (@roy23)

    yes is a solution, but we have a lot of users managed with ldap and company pwd rules.
    this is a little application, i can’t force this rules..

    Thread Starter roy23

    (@roy23)

    sorry i read just now the complete reply, there are both, ! and ”

    Plugin Author heiglandreas

    (@heiglandreas)

    Sorry, I think I didn’t make myself clear there ??

    The “change password back” was just meant for short time resolution of your current password-issue, not meant as long-term solution!

    I’ll have to check what exactly is happening there! I’ve raised an issue in the plugins bugtracker (https://github.com/heiglandreas/authLdap/issues/108). As soon as I have a fix, I’ll be back. Expect something by end of this week! So long I sadly have to advise to not use those characters ??

    Thread Starter roy23

    (@roy23)

    very very very very stra-thank you!

    Working with the plugin now, I can say the ! is not the culprit, I’m using a password with one and it has no trouble.

    Plugin Author heiglandreas

    (@heiglandreas)

    Thanks bluesoul for the info! I already had the ‘”‘ in mind but I’m just ATM getting to it ??

    Plugin Author heiglandreas

    (@heiglandreas)

    Hey Paolo.

    Can you replace Line 224 in authLdap.php (which reads $result = authLdap_get_server()->Authenticate($username, $password, $authLDAPFilter);) with $result = authLdap_get_server()->Authenticate($username, htmlspecialchars_decode($password, ENT_QUOTES), $authLDAPFilter);?

    That might fix the issue! If so I’ll have to release a new Version ??

    Thread Starter roy23

    (@roy23)

    Hi heiglandreas, i can’t try before monday.. there’s the republic day here in Italy ?? !

    Thread Starter roy23

    (@roy23)

    hi, i tryed with a ” in password, but there’s still the error..

    Plugin Author heiglandreas

    (@heiglandreas)

    Hi Paolo.

    I did some research and before I dig even deeper I need some more information from you. Would it be possible to get some informations from a PHP-Info page?

    I’d especially need the PHP-Version and the setting of the variable magic_quotes_gpc.

    Thanks for your help in this issue!

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Only one user not allowed to login’ is closed to new replies.