ExtMail服务器社区's Archiver

chifeng 发表于 2007-11-24 21:39

发布extman-0.2.3工具包

由于extman-0.2.3的整体结构发生了改动,我之前写的所有工具包将不再适合用于该版本,因此更新一下工具包。

包含内容:
adduser.pl
userinfo.pl
deluser.pl
modifyuser.pl
diffinfo.pl
makegbook.pl

其中makegbook.pl是从fengyong老大的全局地址本生成程序改过来的,改后支持mysql&ldap。:)另外再感谢fengyong老大的建议,使程序简化了一些。

用法:
基本上直接执行,然后根据提示使用即可,操作很简单。

注意:
该工具包必须在..../extman/tools/目录下才能正常执行,并且只能配合extman-0.2.3这一版本使用。

gjfmlj 发表于 2007-11-25 11:32

支持你的工作,谢谢!

since 发表于 2007-11-26 08:21

强烈支持hzq老大和chifeng老大的敬业精神

hzqbbc 发表于 2007-11-26 15:29

顶chifeng ~~

月照清溪 发表于 2007-11-26 22:38

顶一把!呵,偶准备在近期部署

szrenhua 发表于 2007-11-26 22:55

回复 #1 chifeng 的帖子

怎么不把工具加到后台的extman里面呢.

chifeng 发表于 2007-11-27 10:40

[quote]原帖由 [i]szrenhua[/i] 于 2007-11-26 22:55 发表 [url=http://www.extmail.org/forum/redirect.php?goto=findpost&pid=36024&ptid=6452][img]http://www.extmail.org/forum/images/common/back.gif[/img][/url]
怎么不把工具加到后台的extman里面呢. [/quote]


暂时还不成熟,等偶把工具包搞得不需要extman的时候再加进去也不迟,嘿嘿。。。

月照清溪 发表于 2007-12-18 21:10

那个批量增加用户的小程序也不能用了,郁闷!

fengyong 发表于 2007-12-19 08:11

f:lol 支持

chifeng 发表于 2008-1-4 23:26

[quote]原帖由 [i]月照清溪[/i] 于 2007-12-18 21:10 发表 [url=http://www.extmail.org/forum/redirect.php?goto=findpost&pid=37165&ptid=6452][img]http://www.extmail.org/forum/images/common/back.gif[/img][/url]
那个批量增加用户的小程序也不能用了,郁闷! [/quote]

用这个脚本先顶一下,呵呵。

[url]http://extman.googlecode.com/svn/trunk/tools/userctl.pl[/url]

yuxiao 发表于 2008-3-30 00:15

[quote]原帖由 [i]chifeng[/i] 于 2008-1-4 23:26 发表 [url=http://www.extmail.org/forum/redirect.php?goto=findpost&pid=37892&ptid=6452][img]http://www.extmail.org/forum/images/common/back.gif[/img][/url]


用这个脚本先顶一下,呵呵。

[url]http://extman.googlecode.com/svn/trunk/tools/userctl.pl[/url] [/quote]
能不能写个示范的脚本,我也在找如何批量添加用户。

hzqbbc 发表于 2008-3-30 10:32

请各位使用最新extman 0.2.4的tools/下的脚本,另外,脚本用法可以直接执行脚本不带任何参数来查看帮助。

yuxiao 发表于 2008-3-31 09:58

看了userctl.pl的帮助

# ./userctl.pl

    Usage: ./userctl.pl --mode=add,badd,del,bdel,list,show,mod,help
                        --file=/path/to/filename.csv  #if mode is:badd,bdel
                        --username=username@domain.tld
                        --domain=domain.tld
                        --password=******
                        --name=name
                        --question="What are you doing?"
                        --answer="Working"
                        --gid=gid
                        --uid=uid
                        --expire="2009-09-17"
                        --quota=100   # Unit: MB
                        --ndquota=100   # Unit: MB
                        --active=1|0
                        --services=smtp,smtpd,pop3,imap,webmail,netdisk,pwdchange
                        --setgid=vgroup
                        --setuid=vuser
                        --quiet or -qq [hide infomation bar, useful for batch job]

想知道--file=/path/to/filename.csv,filename.csv的格式如何写,才能批量导入用户。

noodles 发表于 2008-4-17 10:52

也想知道--file=/path/to/filename.csv,filename.csv的格式怎么写

chifeng 发表于 2008-4-18 00:55

我记得文件里写了示范啊。。。。:L

chifeng 发表于 2008-4-18 00:59

文件格式为

[email]test@extmail.org[/email] password 100

分别对应用户名,密码,和quota


不好意思啊,我的文档写的不到位。。。。对不住各位

antonicy 发表于 2010-5-14 10:16

我很想亲吻LZ的双手!

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.