2015-04-14 41 views
1

我需要將CakePHP salt分配給OpenFire服務器(MySQL集成)。在OpenFire中使用md5和salt編碼MySQL集成

<jdbcAuthProvider> 
    <passwordSQL>SELECT password FROM users WHERE name=?</passwordSQL> 
    <passwordType>md5</passwordType> 
    </jdbcAuthProvider> 

如何在OpenFire(3.10.0)配置中添加一些鹽?

回答

0

這應該工作

> <passwordSQL>SELECT (SUBSTRING(S_PASSWORD,1,(LEN(S_PASSWORD)-3))) FROM 
> t_users WHERE S_USERNAME=?</passwordSQL> 
> <passwordType>sha1</passwordType>