How to reset admin password in openfire

      如果你用过 Openfire的User Import Export插件就会发现,在导入或者导出用户的数据的时候,密码都是明文,而且导入的用户,如果还没有登录过,密码都是明文存储在 plainPassword字段的。登录过一次之后,plainPassword字段的密码被清空了,只留下了加密的密码。
利用这个特性,我们可 以把encryptedPassword字段设置成NULL,然后给plainPassword字段重新设置明文密码。

UPDATE ofUser SET plainPassword='test123', encryptedPassword=NULL WHERE username='admin';

      原文链接:http://xieshaohu.spaces.live.com/Blog/cns!B8A0666CD7DF92E6!567.entry

猜你喜欢

转载自blackbaby.iteye.com/blog/658508
今日推荐