发布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这一版本使用。 支持你的工作,谢谢! 强烈支持hzq老大和chifeng老大的敬业精神 顶chifeng ~~ 顶一把!呵,偶准备在近期部署
回复 #1 chifeng 的帖子
怎么不把工具加到后台的extman里面呢. [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的时候再加进去也不迟,嘿嘿。。。 那个批量增加用户的小程序也不能用了,郁闷! f:lol 支持 [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] [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]
能不能写个示范的脚本,我也在找如何批量添加用户。 请各位使用最新extman 0.2.4的tools/下的脚本,另外,脚本用法可以直接执行脚本不带任何参数来查看帮助。 看了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的格式如何写,才能批量导入用户。 也想知道--file=/path/to/filename.csv,filename.csv的格式怎么写 我记得文件里写了示范啊。。。。:L 文件格式为
[email]test@extmail.org[/email] password 100
分别对应用户名,密码,和quota
不好意思啊,我的文档写的不到位。。。。对不住各位 我很想亲吻LZ的双手!
页:
[1]