Support for encrypted passwords seems to be missing when using postgresql
Bug #615157 reported by
Keith Gillis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jabberd |
Fix Committed
|
Low
|
Tomasz Sterna |
Bug Description
There is a password_type option in the mysql section of the default c2s.xml file but no password_type option in the pgsql section. From what I can tell by looking at the documentation and code encrypted passwords not not seem to be supported when using postgresql.
I'm running jabberd2 2.2.8-2ubuntu4 on ubuntu 9.10
Changed in jabberd2: | |
importance: | Undecided → Wishlist |
status: | New → Opinion |
To post a comment you must log in.
I have a patch for this. The attached patch mostly copies the code from the MySQL driver with changes for PG. There are also a few other minor changes.
- Removed some extraneous, trailing whitespace.
- Added some missing "static" keywords.
- Removed quotes from queries.
The last is probably a separate issue. Let me know if you need the patch split. To explain, the existing code wraps the PG entities in quotes. Sounds like a good idea but it breaks some code. In my case, for example, I need this query:
SELECT * from vex.jabberauth WHERE username =...
The "vex" part is a PostgreSQL schema. Putting quotes around the table turns it into a table called "vex.jabberauth" in the public (default) schema instead of table "jabberauth" in the "vex" schema. I think that if the caller needs quotes there they should add them in c2s.xml.