Hi everyone,
I have a problem with password synchronization between OX and Cyrus/Postfix.
Whenever a user changes his password in OX, he locks himself out of Cyrus/Postfix, because there he still has the old password.
What I initially had in mind was to install a database trigger in the OX database (oxdb_6) that would update the password in the cyrus/postfix db (mail) whenever the user changes his ox password.
The problem I now encounter is that the password encryption in ox is always different from those selectable in C/P.
My idea is now to still have a trigger that writes the passwords to an additional table in the db, and having a java program running in the background that checks that table for changes.
Whenever that new password is set in the oxdb_6, the program will convert the stored password from the ox encryption to one of the other encryptions/hashes (crypt, mysql, md5).
However, this still seems a bit unpractical.
Plus, I dont know how to get the plaintext password back from the OX-encrypted one.
So what I'm asking is this: does any1 know how to encrypt/decrypt the stored OX passwords? Or is there an easier solution to this problem? (like re-compiling ox with a different crypto lib or sth?)
Thanx in advance!
I have a problem with password synchronization between OX and Cyrus/Postfix.
Whenever a user changes his password in OX, he locks himself out of Cyrus/Postfix, because there he still has the old password.
What I initially had in mind was to install a database trigger in the OX database (oxdb_6) that would update the password in the cyrus/postfix db (mail) whenever the user changes his ox password.
The problem I now encounter is that the password encryption in ox is always different from those selectable in C/P.
My idea is now to still have a trigger that writes the passwords to an additional table in the db, and having a java program running in the background that checks that table for changes.
Whenever that new password is set in the oxdb_6, the program will convert the stored password from the ox encryption to one of the other encryptions/hashes (crypt, mysql, md5).
However, this still seems a bit unpractical.
Plus, I dont know how to get the plaintext password back from the OX-encrypted one.
So what I'm asking is this: does any1 know how to encrypt/decrypt the stored OX passwords? Or is there an easier solution to this problem? (like re-compiling ox with a different crypto lib or sth?)
Thanx in advance!
Comment