- 论坛徽章:
- 0
|
原帖由 marion 于 2007-11-9 13:08 发表 ![]()
这个是加密存放的密码,采取的是直接输入加密后的密码的形式。你可以在添加条目的过程中用形如password('123456')的方式来输入你想使用的密码,这个函数会帮你加密并存入mysql中。
具体到可以使用的对于 ...
INSERT INTO `mailbox` VALUES ('abc@def.com','abc',password('123456'),'','abc','','def.com/abc/Maildir/','def.com/abc','104857600S','52428800S','wb.wzy',1001,1001,'2007-02-14 15:10:04','2010-11-08 15:10:04',1,0,0,0,0,0,0,0);
[root@wbxsb ~]# authtest -s login abc@def.com
Authentication succeeded.
Authenticated: abc@def.com (uid 1001, gid 1001)
Home Directory: /home/domains/def.com/abc
Maildir: /home/domains/def.com/abc/Maildir/
Quota: 104857600S
Encrypted Password: *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
Cleartext Password: (none)
Options: (none)
而extmail网站上的配置文档:
usr/sbin/authtest -s login test@extmail.org test
结果如下:
Authentication succeeded.
Authenticated: test@extmail.org (uid 1000, gid 1000)
Home Directory: /home/domains/extmail.org/test
Maildir: /home/domains/extmail.org/test/Maildir/
Quota: 5242880
Encrypted Password: {crypt}uywiuN.XggXXc
Cleartext Password: test
Options: (none)
为什么一个是Encrypted Password: *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9
一个是Encrypted Password: {crypt}uywiuN.XggXXc呢?????
如何实现extmail网站上这种结果
[root@wbxsb clamav-0.91.2]# telnet 192.168.0.12 110
Trying 192.168.0.25...
Connected to 192.168.0.12 (192.168.0.12).
Escape character is '^]'.
+OK Hello there.
user abc@def.com
+OK Password required.
pass 123456
-ERR Login failed.
请问:问题大概出在哪里 谢谢
[ 本帖最后由 cnhawk386 于 2007-11-9 14:22 编辑 ] |
|