Giter Site home page Giter Site logo

Comments (11)

pcdinh avatar pcdinh commented on May 3, 2024

ejabberd authentication works stably for a week then it fails randomly. If I restart it, the authentication works again

from ejabberd.

MaximeCheramy avatar MaximeCheramy commented on May 3, 2024

I have the same issue using ejabberd 2.1.10 and PAM. I'm using pam in order to allow a user to have 2 different passwords, however, after a few days (usually 2-3), ejabberd only accept one password.
I've checked pam using pamtester and PAM still accept both passwords. Ejabberd works again properly after a restart.

Any idea?

from ejabberd.

zinid avatar zinid commented on May 3, 2024

@MaximeCheramy what if you kill epam program only? Does it help? Or full ejabberd restart is required?

from ejabberd.

MaximeCheramy avatar MaximeCheramy commented on May 3, 2024

@zinid I can't ssh the server right now, I'll try later or ask to someone to do it for me. Anyway, I wanted to add that ,apparently, users who do their first auth can use any password (between the 2 accepted by the PAM module).

from ejabberd.

zinid avatar zinid commented on May 3, 2024

Hum, I didn't get the last sentence, could you describe in details how you manage to provide several password for users? Is it totally handled by the corresponding PAM module?

from ejabberd.

MaximeCheramy avatar MaximeCheramy commented on May 3, 2024

Yes, it is totally handled by the PAM module (the conf is : internal, pam). Users can either use, for the password, their LDAP password or a secret token delivered by the website when they are logged in. The PAM module is working perfectly well and it was working with ejabberd until we did an upgrade (of ejabberd and the rest of the system).

Since the upgrade, users can use either the ldap password or the token as expected until it stops working after a few days for no apparent reason. But (apparently) it still works for the users who did not authenticate yet.

from ejabberd.

zinid avatar zinid commented on May 3, 2024

When it stops working, it means neither internal nor pam auth is working, right?

from ejabberd.

MaximeCheramy avatar MaximeCheramy commented on May 3, 2024

Nope, it means that only one password is accepted. For example, user toto (an LDAP user) can use as a password "mypass" and "mytoken" but after a while, when I say it stops working, only one of the password is accepted ("mypass" for my account). toto is not an internal account.

from ejabberd.

MaximeCheramy avatar MaximeCheramy commented on May 3, 2024

I now have an access to the server. killing epam solves the problem for now.

from ejabberd.

zinid avatar zinid commented on May 3, 2024

You can try to strace(1) the epam process to see what happens.
Anyway, this is really odd stuff :(

from ejabberd.

lock avatar lock commented on May 3, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ejabberd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.