SCRAM method and logins creation from external tool

Hello guys!

Here the issue.
I have a little web-form based on Perl script which I use to create Postfix users. I'd like in the same time have the same users (with the same passwords) created for eJabberd. In the simple case when the eJabberd uses plaintext passwords I have no problem put two values into table 'users'. But.. saving passes like a text - it's not cool and I don't like it, given the fact the passwords for eJabberd and email are equal. Ok, we have SCRAM auth method, it work fine, but the problem is how to calculate values for 'password', 'serverkey' and 'salt' fields. By guessing 'salt' is a just random string. But what about 'password' and 'serverkey'?
Thank you,
Alex

P.S.
ejabberdctl can't be executed from web Perl script

Syndicate content