From: Tony S. <tsh...@st...> - 2002-07-31 03:52:32
|
Well, the module I'm writing is for Spambouncer (http://www.spambouncer.org), and right now I work at an ISP where we have about 100 users on a single system running FreeBSD for e-mail. They all use POP3, and I installed Webmin and Usermin on the system for webmail. Literally mail forwarding and read e-mail were the only things that show up when someone logs into Usermin. Recently, I rolled out Spambouncer as an additional pay service for a few users to see how they handled it. I'd been using it for about a year and it worked wonders for me. After about a dozen phone calls of people who couldn't figure out how to download a text file, edit it, and upload it again, I decided to write a Usermin control module. I'm using the ACL to control whether a user has access or not based on whether or not they are paying for the Spambouncer service. I know it sounds lame, but it *does* eat up cpu cycles and additional disk space (caches last 100 messages for starters) so we have to justify costs. Besides, it wasn't my choice. :P Anyway, the ACL fits that task perfectly. As I said, I can manually edit files and it works, but I presumed (wrongly) that Usermin had an equivalent control feature. :) Any thoughts? On 7/30/02 8:00 PM, "Jamie Cameron" <jca...@we...> wrote: > The simple answer is - there is no support for acl_security.pl > detailed access control editing in usermin. Because all users are > treated the same, it doesn't really make sense .. > > What kind of restrictions are you trying to configure in > your acl_security.pl file? > > - Jamie > > Tony Shadwick wrote: > >>> Just got done writing the acl_security.pl for my Usermin module. The >>> >> thing >> >>> is, the module writing document you have on the site says for Webmin: >>> >>> "Module ACL options are set in the Webmin Users module by clicking on the >>> name of a module next to a user's name. The options available are >>> >> generated >> >>> by code from the module itself (except for the Can edit module >>> configuration? option, which is always present). When the user clicks on >>> Update the form parameters are also parsed by code from the module being >>> configured, before being saved in the Webmin config directory. " >>> >>> >>> Um..okay, that's nice. But I need to do this for usermin. My module >>> obviously won't appear in the Webmin Users module because it's not >>> >> installed >> >>> in Webmin, and there is no such thing as a Usermin Users module, as I >>> >> cannot >> >>> log into Usermin as admin or root. So...um...where on earth am I supposed >>> to do this? I can do it for each individual user from the shell, but >>> >> that's >> >>> silly. I'm sure it's there someplace, but I certainly don't see it! :) >>> >>> Thanks! |