Hi, I am using ejabberd with external auth. This is working, but my passwords are being truncated. Is there anyway I can increase the size of the password being sent into the external auth program?
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Hi, I am using ejabberd with external auth. This is working, but my passwords are being truncated. Is there anyway I can increase the size of the password being sent into the external auth program?
So, in your external system
So, in your external system the accounts have long passwords. When a Jabber user sets the password, ejabberd sends to your extauth script only the first characters of the password?
In ejabberd source code I don't see any code that cuts the passwords, maybe it is a limitation of the protocol used.
How many characters are sent by ejabberd, only 5, only 10...? What is the longest password that ejabberd sends correctly to your extauth script? You can set different passwords, and test which ones are sent correctly and which not.
ah, but what about isuser
Ah, the password data had a ":" in it that I was splitting on that to get the elements... (opcode, username, host, and password). I base 64 encoded it and now it is working.
However, it is only working until I receive an "isuser" opcode. I understand that this will not have a password, and my external program handles that and returns true (0201). At this point, though, it seems I no longer receive messages for the user that just did the isuser check.
I will look at some other samples... thanks.