免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4196 | 回复: 5
打印 上一主题 下一主题

[Mail] 如何通过squirrelmail的插件修改mysql中的邮件用户密码。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-29 10:52 |只看该作者 |倒序浏览
安装了相应的插件,在squirrelmail的选项里也有change password的选项了,但是点击以后没有结果出现,既不报错也无提示,就是一个白色页面,有没有设置成功的同志,帮忙看看应该如何解决?

论坛徽章:
0
2 [报告]
发表于 2006-06-29 17:50 |只看该作者
Now, I'm going to cover the addition of 1 Squirrelmail plugin. Keep in mind, there are tons of other plugins available. We're going to install the "change_pass" plugin which will allow our mail users to change their passwords from the Squirrelmail interface.
So here goes...

cd /path/to/squirrelmail_directory/plugins (example: cd /var/www/webmail/plugins)

Download the module...

wget http://squirrelmail.org/countdl. ... ss-2.7-1.4.x.tar.gz

Unpack the module...

tar zxvf change_pass-2.7-1.4.x.tar.gz

Remove the tarball of the module...

rm -rf change_pass-2.7-1.4.x.tar.gz

Now let's go and add the module into Squirrelmail...

cd /path/to/squirrelmail_directory/config

Run the Squirrelmail configuration tool...

./conf.pl

Choose the option for "plugins". On my version of Squirrelmail, this was option 8. Once you are in the modules menu you should see the "change_pass" module on the list of available, but inactive, modules. You can add the "change_pass" module by simply typing the number associated with the module and then hitting enter. Once the module appears on the active module list, go ahead and save the configuration changes and then exit out of the configuration tool.

Alright! You should be all set now. All that's left to do log into Squirrelmail and try out the password change tool!

That's it for Squirrelmail. Now let's move on to the next step.

论坛徽章:
0
3 [报告]
发表于 2006-07-11 22:25 |只看该作者
发表于: 2006-7-9 21:29      [编辑]  [引用]  [投诉] [快速回复]  


--------------------------------------------------------------------------------

centos4.3

squirrelmail 1.4.7
Compatibility plugin 2.0.4
change_sqlpass-3.3-1.2

http://localhost/squirrelmail/
出错:Fatal error:call to undefined functions: load_config() in /change_sqlpass/functions.php on line 326
on line 167
分别注释//掉这两行。可以正常登录。可是点更改密码,就出错,出错内容与上面的差不多,依次注释,再点更改密码 ,出现
系统出错:
Could not find Pear DB library

论坛徽章:
0
4 [报告]
发表于 2006-07-12 00:56 |只看该作者
二搂的哥们写的倒是没错,但是我加进去了,在web登陆用户后,点击“选项”后,不显示任何东西,但如果再把它取出来,就能看见选项里的一些设置,并且我在config.php里加上了chpasswd的绝对路径
下边是4.X的tar包,里的文档:INSTALL文件
Installing Change Passwd Plugin
===============================

1) Start with untaring the file into the plugins directory.
   Here is a example for the 3.1 version of the change_passwd
   plugin.

  $ cd plugins
  $ tar -zxvf change_passwd-3.1-1.2.8.tar.gz


2) Change into the change_passwd directory, copy config.php.sample
   to config.php and edit config.php, making adjustments as
   you deem necessary.  

  $ cd change_passwd
  $ cp config.php.sample config.php
  $ vi config.php


3) Make sure the file permissions on the chpasswd file are
   correct (unless you'll be using the 'pw' utility on
   FreeBSD).  Substitue the name of the user that your web
   server runs under for "apache" in the command below:

  $ chown root:apache chpasswd
  $ chmod 4750 chpasswd


4) If you are running this under Solaris on a Sparc machine, you
   probably need to recompile the chpasswd.c file:

  $ gcc -lcrypt -O -o chpasswd chpasswd.c

5) Then go to your config directory and run conf.pl.  Choose
   option 8 and move the plugin from the "Available Plugins"
   category to the "Installed Plugins" category.  Save and exit.

  $ cd ../../config/
  $ ./conf.pl


6) Also, please verify that you have the "compatibility" plugin
   installed.

config.php内容:
<?php

global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd,
       $pathToPw, $debug, $minimumPasswordLength;



// Set this to the minimum length of passwords you want
// to enforce.  Set to zero to disable this check
//
$minimumPasswordLength = 8;



// Set this to 1 if you want the user to have to enter
// their new password twice.  Set to zero otherwise,
// but why would you do that?
//
$confirmNewPass = 1;



// Set this to 1 to require the user to enter thier current
// password in order to change it (FreeBSD ('pw' utility)
// users typically set this to zero; others can (and should!)
// leave this as is.
//
$confirmOldPass = 1;
//$confirmOldPass = 0;



// Please include the full path (not relative) to the chpasswd program
// ONLY if you are NOT using the one included with this plugin!
//
$overridePathToChpasswd = '';



// Use this setting only if you want to use the pw program to change
// your password (available on e.g. FreeBSD).  Include full path
// (not relative) to the pw program.  This will override the chpasswd
// program, so leave it empty if you are using chpasswd.
//
$pathToPw = '';



// If you want see the output of the chpasswd program (usually
// only useful for debugging purposes, set this to 1
//
$seeOutput = 0;



// For debugging only, set this variable to 1.  WARNING: this will
// echo any password information you enter in clear text!  Please
// use this setting with care!
//
$debug = 0;



?>

论坛徽章:
0
5 [报告]
发表于 2006-11-29 13:42 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
6 [报告]
发表于 2007-02-05 14:34 |只看该作者
在config.php把debug打开,看看是否是PEAR DB的问题?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP