Giter Club home page Giter Club logo

Comments (9)

deflomu avatar deflomu commented on June 3, 2024

Can you set the debug level in the script to logging.DEBUG and check /var/log/ejabberd/extauth.log and /var/log/ejabberd/extauth_err.log?

from ejabberd_extauth_mysql_python.

danielrnrz avatar danielrnrz commented on June 3, 2024

I set the level to 5 (Debug) on the ejabberd.cfg file but the files extauth.log and extauth_err.log don't exist when I start ejabberd, there's still the same error.

from ejabberd_extauth_mysql_python.

deflomu avatar deflomu commented on June 3, 2024

You need to set the log level for my script in the script itself. See line 36 of check_mysql_python.py. You may need to create the folder where the logfiles should go (/var/log/ejabberd/) before starting ejabberd and set the permissions so that ejabberd can create files there.

from ejabberd_extauth_mysql_python.

danielrnrz avatar danielrnrz commented on June 3, 2024

I did it , these files have been created , there is no error in the ejabberd.log and in extauth_err.log. But I can't login to my administration panel and I tried to register a new user using ejabberdctl register ..... but it doesn't appears in the database. Before using the script , I used odbc with plaintext passwords in the database. Does it matter if I used odbc ?

The extauth.log file contains :

2013-05-12 13:27:35,594 INFO extauth script started, waiting for ejabberd requests
2013-05-12 13:27:35,596 DEBUG start of infinite loop
2013-05-12 13:27:35,604 DEBUG trying to read 2 bytes from ejabberd:
2013-05-12 13:31:39,235 DEBUG ejabberd sent us wrong things!
2013-05-12 13:31:39,237 INFO Exception occured: 'Wrong input from ejabberd!'
2013-05-12 13:31:39,239 DEBUG end of infinite loop
2013-05-12 13:31:39,241 INFO extauth script terminating

from ejabberd_extauth_mysql_python.

deflomu avatar deflomu commented on June 3, 2024

Ok, so the problem is the communication between ejabberd and the script. I'm very busy for the next three weeks. Maybe the script is not compatible to the version of ejabberd you are using. I will have to look into this when I have more time. You will have to investigate the problem your self or wait until I have time.

from ejabberd_extauth_mysql_python.

danielrnrz avatar danielrnrz commented on June 3, 2024

Ok thank you. I'm going to try to find what's wrong with it.

from ejabberd_extauth_mysql_python.

deflomu avatar deflomu commented on June 3, 2024

For the record: Here is the documentation of the external auth protocol: http://htmlpreview.github.io/?http://github.com/processone/ejabberd/blob/master/doc/dev.html#htoc9

from ejabberd_extauth_mysql_python.

danielrnrz avatar danielrnrz commented on June 3, 2024

Hello,

I edited the script to hash password only in SHA-1 , after that , it is working except the registration and in the administration console , I can't load the page in Virtual Servers. I'm going to continue to see what's wrong with it.

from ejabberd_extauth_mysql_python.

tsal avatar tsal commented on June 3, 2024

I'm having a similar issue ever since I upgraded to 2.1.x - maybe that's related?

from ejabberd_extauth_mysql_python.

Related Issues (1)

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.