You can subscribe to this list here.
2001 |
Jan
(13) |
Feb
(24) |
Mar
(23) |
Apr
(11) |
May
(18) |
Jun
(90) |
Jul
(29) |
Aug
(26) |
Sep
(37) |
Oct
(10) |
Nov
(31) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(45) |
Feb
(18) |
Mar
(12) |
Apr
(7) |
May
(10) |
Jun
(62) |
Jul
(8) |
Aug
(40) |
Sep
(41) |
Oct
(43) |
Nov
(29) |
Dec
(36) |
2003 |
Jan
(25) |
Feb
(9) |
Mar
(11) |
Apr
(13) |
May
(19) |
Jun
(19) |
Jul
(11) |
Aug
(4) |
Sep
(109) |
Oct
(73) |
Nov
(69) |
Dec
(21) |
2004 |
Jan
(21) |
Feb
(33) |
Mar
(31) |
Apr
(25) |
May
(33) |
Jun
(42) |
Jul
(47) |
Aug
(12) |
Sep
(41) |
Oct
(47) |
Nov
(30) |
Dec
(19) |
2005 |
Jan
(6) |
Feb
(23) |
Mar
(21) |
Apr
(26) |
May
(21) |
Jun
(16) |
Jul
(17) |
Aug
(7) |
Sep
(8) |
Oct
(13) |
Nov
(7) |
Dec
(10) |
2006 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
(2) |
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2007 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(1) |
Jun
(6) |
Jul
(6) |
Aug
(8) |
Sep
(3) |
Oct
(21) |
Nov
(4) |
Dec
(6) |
2008 |
Jan
(11) |
Feb
(28) |
Mar
(26) |
Apr
(9) |
May
(2) |
Jun
(10) |
Jul
(1) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(24) |
May
(22) |
Jun
(18) |
Jul
(15) |
Aug
(21) |
Sep
(4) |
Oct
(7) |
Nov
(6) |
Dec
|
2010 |
Jan
|
Feb
(2) |
Mar
(13) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(4) |
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
(18) |
Feb
(2) |
Mar
(23) |
Apr
(4) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
(5) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(31) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(6) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
(7) |
2014 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(4) |
May
(7) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Jamie C. <jca...@we...> - 2008-08-10 22:32:57
|
Yes, squid 2.7 is supported. - Jamie On Aug 10, 2008, at 10:22 AM, Jimmy Montano <jmo...@gm...> wrote: > Hi Jamie, > > Does this new release includes support for Squid 2.7? > Thanks > > Jimmy > Jamie Cameron wrote: >> Hi Webmin users, >> >> I am just about to release Webmin 1.430 and Usermin 1.360, but >> before I do >> I've created two pre-release versions that contain all the features >> that >> will be official release. >> > > > --- > ---------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jimmy M. <jmo...@gm...> - 2008-08-10 17:35:10
|
Hi Jamie, Does this new release includes support for Squid 2.7? Thanks Jimmy Jamie Cameron wrote: > Hi Webmin users, > > I am just about to release Webmin 1.430 and Usermin 1.360, but before I do > I've created two pre-release versions that contain all the features that > will be official release. > |
From: Jamie C. <jca...@we...> - 2008-08-08 21:08:35
|
The cases where it is used in that file wouldn't be related to your plugin, so it's safe not to use it .. On 08/Aug/2008 14:02 John Gray wrote .. > Ok, though I noticed one reference in virtual-server-lib-funcs.pl to > your var. I thought it might be good if virtual-server-lib-funcs.pl > didn't have to worry about which dns module did it. > > John > > Jamie Cameron wrote: > > I'd suggest another variable, just in case someone has both a BIND > > and djbdns domain enabled for the same virtual server (crazy as that > > sounds :-) > > > > Perhaps name is djbdns_submode > > > > - Jamie > > > > On 08/Aug/2008 13:52 John Gray wrote .. > >> I see the bind code uses dns_submode to denote this. > >> > >> I guess the question is this: Better for the tinydns code to use the > >> same var, or another one? > >> > >> John > >> > >> Jamie Cameron wrote: > >>> On 08/Aug/2008 13:21 John Gray wrote .. > >>>> Hi Jamie, > >>>> > >>>> I took the powerdns module, and used to it from template to setting up > >>>> module for tinydns. I have it working now (though it needs some config > >>>> work yet). > >>> Awesome! If it's OK, you should make it publicly available when it is done.. > >>> I know several people have expressed interest in djbdns due to it's lower > >>> memory use. > >>> > >>>> As I was working on it, I came across a big question. Sometimes we add > >>>> aliases to existing domains to into already existing domain, for instances. > >>>> > >>>> we add > >>>> foo.com, then add an alias for it as foo.bar.com, and bar.com is an > >>>> existing domain on the server. With that foo.bar.com is added as new > >>>> domain, instead of entry for foo being added to bar.com. > >>>> > >>>> I was toying with the idea of checking to see if a higher-level domain > >>>> is there, so for example if I am adding > >>>> a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, > >>>> then I'd add entries to it, instead of creating a new domain. > >>>> > >>>> But I wondered if that would screw up other things? > >>> That is a perfectly reasonable approach - in fact, Virtualmin already does > >>> this for BIND when you add a sub-domain. You just have to make sure your > >>> code keeps track of whether the djbdns domain was added as a real zone or > >>> just as entries in an existing zone. The best way is to set some key in the > >>> domain hash passed to the feature_setup function, which will be saved and > >>> available when feature_modify and feature_delete are called. > >>> > >>> - Jamie > >>> > >>>> Sound like a good idea or bad? > >>>> > >>>> Thanks > >>>> John > >>>> > >>>> Jamie Cameron wrote: > >>>>> On 02/Aug/2008 09:36 John Gray wrote .. > >>>>>> There doesn't appear to be any tinydns support for virtualmin (or did I > >>>>>> overlook it)? > >>>>>> > >>>>>> With recent events, I think I've had enough of bind. > >>>>>> > >>>>>> I'm not very concerned with configuring tinydns as much as just the day > >>>>>> to day issues of adding/deleting domains/entries. Tinydns has cmd line > >>>>>> utilities for doing all this, so I would imagine it would be fairly easy > >>>>>> to write a module to do it. But I don't want to invent the wheel. > >>>>>> > >>>>>> If nothing exists, I'll create one ala the exim module (basicly just > >>>>>> what I need to facilitate adding/deleting/modifing virtual servers in > >>>>>> virtualmin). > >>>>> Hi John, > >>>>> > >>>>> At the moment, there is no support for tinydns or djbdns in Virtualmin. > >>>>> However, it's plugin architecture would make this pretty easy to add - > >>>>> for example, I did one for PowerDNS a while ago that can be used instead > >>>>> of the regular BIND feature. > >>>>> > >>>>> You can get it from : > >>>>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns > >>>>> and check out the source. > >>>>> > >>>>> - Jamie > >>>> -- > >>>> John Gray gr...@ag... > >>>> AgoraNet, Inc. (302) 224-2475 > >>>> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > >>>> Newark, De 19711 http://www.agora-net.com > >>>> > >>>> ------------------------------------------------------------------------- > >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes > >>>> Grand prize is a trip for two to an Open Source event anywhere in the world > >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >>>> - > >>>> Forwarded by the Webmin development list at web...@we... > >>>> To remove yourself from this list, go to > >>>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >>> ------------------------------------------------------------------------- > >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >>> Build the coolest Linux based applications with Moblin SDK & win great prizes > >>> Grand prize is a trip for two to an Open Source event anywhere in the world > >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >>> - > >>> Forwarded by the Webmin development list at web...@we... > >>> To remove yourself from this list, go to > >>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >>> > >> > >> -- > >> John Gray gr...@ag... > >> AgoraNet, Inc. (302) 224-2475 > >> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > >> Newark, De 19711 http://www.agora-net.com > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win great prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> - > >> Forwarded by the Webmin development list at web...@we... > >> To remove yourself from this list, go to > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > -- > John Gray gr...@ag... > AgoraNet, Inc. (302) 224-2475 > 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > Newark, De 19711 http://www.agora-net.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: John G. <gr...@ag...> - 2008-08-08 21:04:12
|
Ok, though I noticed one reference in virtual-server-lib-funcs.pl to your var. I thought it might be good if virtual-server-lib-funcs.pl didn't have to worry about which dns module did it. John Jamie Cameron wrote: > I'd suggest another variable, just in case someone has both a BIND > and djbdns domain enabled for the same virtual server (crazy as that > sounds :-) > > Perhaps name is djbdns_submode > > - Jamie > > On 08/Aug/2008 13:52 John Gray wrote .. >> I see the bind code uses dns_submode to denote this. >> >> I guess the question is this: Better for the tinydns code to use the >> same var, or another one? >> >> John >> >> Jamie Cameron wrote: >>> On 08/Aug/2008 13:21 John Gray wrote .. >>>> Hi Jamie, >>>> >>>> I took the powerdns module, and used to it from template to setting up >>>> module for tinydns. I have it working now (though it needs some config >>>> work yet). >>> Awesome! If it's OK, you should make it publicly available when it is done.. >>> I know several people have expressed interest in djbdns due to it's lower >>> memory use. >>> >>>> As I was working on it, I came across a big question. Sometimes we add >>>> aliases to existing domains to into already existing domain, for instances. >>>> >>>> we add >>>> foo.com, then add an alias for it as foo.bar.com, and bar.com is an >>>> existing domain on the server. With that foo.bar.com is added as new >>>> domain, instead of entry for foo being added to bar.com. >>>> >>>> I was toying with the idea of checking to see if a higher-level domain >>>> is there, so for example if I am adding >>>> a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, >>>> then I'd add entries to it, instead of creating a new domain. >>>> >>>> But I wondered if that would screw up other things? >>> That is a perfectly reasonable approach - in fact, Virtualmin already does >>> this for BIND when you add a sub-domain. You just have to make sure your >>> code keeps track of whether the djbdns domain was added as a real zone or >>> just as entries in an existing zone. The best way is to set some key in the >>> domain hash passed to the feature_setup function, which will be saved and >>> available when feature_modify and feature_delete are called. >>> >>> - Jamie >>> >>>> Sound like a good idea or bad? >>>> >>>> Thanks >>>> John >>>> >>>> Jamie Cameron wrote: >>>>> On 02/Aug/2008 09:36 John Gray wrote .. >>>>>> There doesn't appear to be any tinydns support for virtualmin (or did I >>>>>> overlook it)? >>>>>> >>>>>> With recent events, I think I've had enough of bind. >>>>>> >>>>>> I'm not very concerned with configuring tinydns as much as just the day >>>>>> to day issues of adding/deleting domains/entries. Tinydns has cmd line >>>>>> utilities for doing all this, so I would imagine it would be fairly easy >>>>>> to write a module to do it. But I don't want to invent the wheel. >>>>>> >>>>>> If nothing exists, I'll create one ala the exim module (basicly just >>>>>> what I need to facilitate adding/deleting/modifing virtual servers in >>>>>> virtualmin). >>>>> Hi John, >>>>> >>>>> At the moment, there is no support for tinydns or djbdns in Virtualmin. >>>>> However, it's plugin architecture would make this pretty easy to add - >>>>> for example, I did one for PowerDNS a while ago that can be used instead >>>>> of the regular BIND feature. >>>>> >>>>> You can get it from : >>>>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns >>>>> and check out the source. >>>>> >>>>> - Jamie >>>> -- >>>> John Gray gr...@ag... >>>> AgoraNet, Inc. (302) 224-2475 >>>> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) >>>> Newark, De 19711 http://www.agora-net.com >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> - >>>> Forwarded by the Webmin development list at web...@we... >>>> To remove yourself from this list, go to >>>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> - >>> Forwarded by the Webmin development list at web...@we... >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >> >> -- >> John Gray gr...@ag... >> AgoraNet, Inc. (302) 224-2475 >> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) >> Newark, De 19711 http://www.agora-net.com >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |
From: Jamie C. <jca...@we...> - 2008-08-08 20:58:01
|
I'd suggest another variable, just in case someone has both a BIND and djbdns domain enabled for the same virtual server (crazy as that sounds :-) Perhaps name is djbdns_submode - Jamie On 08/Aug/2008 13:52 John Gray wrote .. > I see the bind code uses dns_submode to denote this. > > I guess the question is this: Better for the tinydns code to use the > same var, or another one? > > John > > Jamie Cameron wrote: > > On 08/Aug/2008 13:21 John Gray wrote .. > >> Hi Jamie, > >> > >> I took the powerdns module, and used to it from template to setting up > >> module for tinydns. I have it working now (though it needs some config > >> work yet). > > > > Awesome! If it's OK, you should make it publicly available when it is done.. > > I know several people have expressed interest in djbdns due to it's lower > > memory use. > > > >> As I was working on it, I came across a big question. Sometimes we add > >> aliases to existing domains to into already existing domain, for instances. > >> > >> we add > >> foo.com, then add an alias for it as foo.bar.com, and bar.com is an > >> existing domain on the server. With that foo.bar.com is added as new > >> domain, instead of entry for foo being added to bar.com. > >> > >> I was toying with the idea of checking to see if a higher-level domain > >> is there, so for example if I am adding > >> a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, > >> then I'd add entries to it, instead of creating a new domain. > >> > >> But I wondered if that would screw up other things? > > > > That is a perfectly reasonable approach - in fact, Virtualmin already does > > this for BIND when you add a sub-domain. You just have to make sure your > > code keeps track of whether the djbdns domain was added as a real zone or > > just as entries in an existing zone. The best way is to set some key in the > > domain hash passed to the feature_setup function, which will be saved and > > available when feature_modify and feature_delete are called. > > > > - Jamie > > > >> Sound like a good idea or bad? > >> > >> Thanks > >> John > >> > >> Jamie Cameron wrote: > >>> On 02/Aug/2008 09:36 John Gray wrote .. > >>>> There doesn't appear to be any tinydns support for virtualmin (or did I > >>>> overlook it)? > >>>> > >>>> With recent events, I think I've had enough of bind. > >>>> > >>>> I'm not very concerned with configuring tinydns as much as just the day > >>>> to day issues of adding/deleting domains/entries. Tinydns has cmd line > >>>> utilities for doing all this, so I would imagine it would be fairly easy > >>>> to write a module to do it. But I don't want to invent the wheel. > >>>> > >>>> If nothing exists, I'll create one ala the exim module (basicly just > >>>> what I need to facilitate adding/deleting/modifing virtual servers in > >>>> virtualmin). > >>> Hi John, > >>> > >>> At the moment, there is no support for tinydns or djbdns in Virtualmin. > >>> However, it's plugin architecture would make this pretty easy to add - > >>> for example, I did one for PowerDNS a while ago that can be used instead > >>> of the regular BIND feature. > >>> > >>> You can get it from : > >>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns > >>> and check out the source. > >>> > >>> - Jamie > >> > >> -- > >> John Gray gr...@ag... > >> AgoraNet, Inc. (302) 224-2475 > >> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > >> Newark, De 19711 http://www.agora-net.com > >> > >> ------------------------------------------------------------------------- > >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win great prizes > >> Grand prize is a trip for two to an Open Source event anywhere in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> - > >> Forwarded by the Webmin development list at web...@we... > >> To remove yourself from this list, go to > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > -- > John Gray gr...@ag... > AgoraNet, Inc. (302) 224-2475 > 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > Newark, De 19711 http://www.agora-net.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: John G. <gr...@ag...> - 2008-08-08 20:53:30
|
I see the bind code uses dns_submode to denote this. I guess the question is this: Better for the tinydns code to use the same var, or another one? John Jamie Cameron wrote: > On 08/Aug/2008 13:21 John Gray wrote .. >> Hi Jamie, >> >> I took the powerdns module, and used to it from template to setting up >> module for tinydns. I have it working now (though it needs some config >> work yet). > > Awesome! If it's OK, you should make it publicly available when it is done.. > I know several people have expressed interest in djbdns due to it's lower > memory use. > >> As I was working on it, I came across a big question. Sometimes we add >> aliases to existing domains to into already existing domain, for instances. >> >> we add >> foo.com, then add an alias for it as foo.bar.com, and bar.com is an >> existing domain on the server. With that foo.bar.com is added as new >> domain, instead of entry for foo being added to bar.com. >> >> I was toying with the idea of checking to see if a higher-level domain >> is there, so for example if I am adding >> a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, >> then I'd add entries to it, instead of creating a new domain. >> >> But I wondered if that would screw up other things? > > That is a perfectly reasonable approach - in fact, Virtualmin already does > this for BIND when you add a sub-domain. You just have to make sure your > code keeps track of whether the djbdns domain was added as a real zone or > just as entries in an existing zone. The best way is to set some key in the > domain hash passed to the feature_setup function, which will be saved and > available when feature_modify and feature_delete are called. > > - Jamie > >> Sound like a good idea or bad? >> >> Thanks >> John >> >> Jamie Cameron wrote: >>> On 02/Aug/2008 09:36 John Gray wrote .. >>>> There doesn't appear to be any tinydns support for virtualmin (or did I >>>> overlook it)? >>>> >>>> With recent events, I think I've had enough of bind. >>>> >>>> I'm not very concerned with configuring tinydns as much as just the day >>>> to day issues of adding/deleting domains/entries. Tinydns has cmd line >>>> utilities for doing all this, so I would imagine it would be fairly easy >>>> to write a module to do it. But I don't want to invent the wheel. >>>> >>>> If nothing exists, I'll create one ala the exim module (basicly just >>>> what I need to facilitate adding/deleting/modifing virtual servers in >>>> virtualmin). >>> Hi John, >>> >>> At the moment, there is no support for tinydns or djbdns in Virtualmin. >>> However, it's plugin architecture would make this pretty easy to add - >>> for example, I did one for PowerDNS a while ago that can be used instead >>> of the regular BIND feature. >>> >>> You can get it from : >>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns >>> and check out the source. >>> >>> - Jamie >> >> -- >> John Gray gr...@ag... >> AgoraNet, Inc. (302) 224-2475 >> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) >> Newark, De 19711 http://www.agora-net.com >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |
From: John G. <gr...@ag...> - 2008-08-08 20:42:59
|
Ok, I'll make it publicly available once I have it flushed out. Right now all the config is hard coded, and I think I'll to add some options. And I'll need to add some post mod glue (cmds to make the changes effective). I just realized why I wasn't seeing the sub-domain working that way. The domain I most often use for <somenewsite>.mytestdomain.com isn't actually in virtualmin. duh! John Jamie Cameron wrote: > On 08/Aug/2008 13:21 John Gray wrote .. >> Hi Jamie, >> >> I took the powerdns module, and used to it from template to setting up >> module for tinydns. I have it working now (though it needs some config >> work yet). > > Awesome! If it's OK, you should make it publicly available when it is done.. > I know several people have expressed interest in djbdns due to it's lower > memory use. > >> As I was working on it, I came across a big question. Sometimes we add >> aliases to existing domains to into already existing domain, for instances. >> >> we add >> foo.com, then add an alias for it as foo.bar.com, and bar.com is an >> existing domain on the server. With that foo.bar.com is added as new >> domain, instead of entry for foo being added to bar.com. >> >> I was toying with the idea of checking to see if a higher-level domain >> is there, so for example if I am adding >> a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, >> then I'd add entries to it, instead of creating a new domain. >> >> But I wondered if that would screw up other things? > > That is a perfectly reasonable approach - in fact, Virtualmin already does > this for BIND when you add a sub-domain. You just have to make sure your > code keeps track of whether the djbdns domain was added as a real zone or > just as entries in an existing zone. The best way is to set some key in the > domain hash passed to the feature_setup function, which will be saved and > available when feature_modify and feature_delete are called. > > - Jamie > >> Sound like a good idea or bad? >> >> Thanks >> John >> >> Jamie Cameron wrote: >>> On 02/Aug/2008 09:36 John Gray wrote .. >>>> There doesn't appear to be any tinydns support for virtualmin (or did I >>>> overlook it)? >>>> >>>> With recent events, I think I've had enough of bind. >>>> >>>> I'm not very concerned with configuring tinydns as much as just the day >>>> to day issues of adding/deleting domains/entries. Tinydns has cmd line >>>> utilities for doing all this, so I would imagine it would be fairly easy >>>> to write a module to do it. But I don't want to invent the wheel. >>>> >>>> If nothing exists, I'll create one ala the exim module (basicly just >>>> what I need to facilitate adding/deleting/modifing virtual servers in >>>> virtualmin). >>> Hi John, >>> >>> At the moment, there is no support for tinydns or djbdns in Virtualmin. >>> However, it's plugin architecture would make this pretty easy to add - >>> for example, I did one for PowerDNS a while ago that can be used instead >>> of the regular BIND feature. >>> >>> You can get it from : >>> http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns >>> and check out the source. >>> >>> - Jamie >> >> -- >> John Gray gr...@ag... >> AgoraNet, Inc. (302) 224-2475 >> 314 E. Main Street, Suite 1 (302) 224-2552 (fax) >> Newark, De 19711 http://www.agora-net.com >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |
From: Jamie C. <jca...@we...> - 2008-08-08 20:29:26
|
On 08/Aug/2008 13:21 John Gray wrote .. > Hi Jamie, > > I took the powerdns module, and used to it from template to setting up > module for tinydns. I have it working now (though it needs some config > work yet). Awesome! If it's OK, you should make it publicly available when it is done.. I know several people have expressed interest in djbdns due to it's lower memory use. > As I was working on it, I came across a big question. Sometimes we add > aliases to existing domains to into already existing domain, for instances. > > we add > foo.com, then add an alias for it as foo.bar.com, and bar.com is an > existing domain on the server. With that foo.bar.com is added as new > domain, instead of entry for foo being added to bar.com. > > I was toying with the idea of checking to see if a higher-level domain > is there, so for example if I am adding > a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, > then I'd add entries to it, instead of creating a new domain. > > But I wondered if that would screw up other things? That is a perfectly reasonable approach - in fact, Virtualmin already does this for BIND when you add a sub-domain. You just have to make sure your code keeps track of whether the djbdns domain was added as a real zone or just as entries in an existing zone. The best way is to set some key in the domain hash passed to the feature_setup function, which will be saved and available when feature_modify and feature_delete are called. - Jamie > Sound like a good idea or bad? > > Thanks > John > > Jamie Cameron wrote: > > On 02/Aug/2008 09:36 John Gray wrote .. > >> There doesn't appear to be any tinydns support for virtualmin (or did I > >> overlook it)? > >> > >> With recent events, I think I've had enough of bind. > >> > >> I'm not very concerned with configuring tinydns as much as just the day > >> to day issues of adding/deleting domains/entries. Tinydns has cmd line > >> utilities for doing all this, so I would imagine it would be fairly easy > >> to write a module to do it. But I don't want to invent the wheel. > >> > >> If nothing exists, I'll create one ala the exim module (basicly just > >> what I need to facilitate adding/deleting/modifing virtual servers in > >> virtualmin). > > > > Hi John, > > > > At the moment, there is no support for tinydns or djbdns in Virtualmin. > > However, it's plugin architecture would make this pretty easy to add - > > for example, I did one for PowerDNS a while ago that can be used instead > > of the regular BIND feature. > > > > You can get it from : > > http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns > > and check out the source. > > > > - Jamie > > > -- > John Gray gr...@ag... > AgoraNet, Inc. (302) 224-2475 > 314 E. Main Street, Suite 1 (302) 224-2552 (fax) > Newark, De 19711 http://www.agora-net.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: John G. <gr...@ag...> - 2008-08-08 20:22:23
|
Hi Jamie, I took the powerdns module, and used to it from template to setting up module for tinydns. I have it working now (though it needs some config work yet). As I was working on it, I came across a big question. Sometimes we add aliases to existing domains to into already existing domain, for instances. we add foo.com, then add an alias for it as foo.bar.com, and bar.com is an existing domain on the server. With that foo.bar.com is added as new domain, instead of entry for foo being added to bar.com. I was toying with the idea of checking to see if a higher-level domain is there, so for example if I am adding a.b.c.d I'd check for b.c.d, then c.d, then d. If I find one of them, then I'd add entries to it, instead of creating a new domain. But I wondered if that would screw up other things? Sound like a good idea or bad? Thanks John Jamie Cameron wrote: > On 02/Aug/2008 09:36 John Gray wrote .. >> There doesn't appear to be any tinydns support for virtualmin (or did I >> overlook it)? >> >> With recent events, I think I've had enough of bind. >> >> I'm not very concerned with configuring tinydns as much as just the day >> to day issues of adding/deleting domains/entries. Tinydns has cmd line >> utilities for doing all this, so I would imagine it would be fairly easy >> to write a module to do it. But I don't want to invent the wheel. >> >> If nothing exists, I'll create one ala the exim module (basicly just >> what I need to facilitate adding/deleting/modifing virtual servers in >> virtualmin). > > Hi John, > > At the moment, there is no support for tinydns or djbdns in Virtualmin. > However, it's plugin architecture would make this pretty easy to add - > for example, I did one for PowerDNS a while ago that can be used instead > of the regular BIND feature. > > You can get it from : > http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns > and check out the source. > > - Jamie -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |
From: Shane A. F. <sh...@fr...> - 2008-08-06 00:55:23
|
Jamie, Nice job! -- Shane Jamie Cameron wrote: > Hi Webmin users, > > I am just about to release Webmin 1.430 and Usermin 1.360, but before I do > I've created two pre-release versions that contain all the features that > will be official release. > > You can download them from http://www.webmin.com/devel.html , or check out > the change logs at http://www.webmin.com/changes-1.429.html and > http://www.webmin.com/uchanges-1.359.html . The biggest new features are > a new contributed TCP wrappers module in Webmin, translation updates, > and various BIND module improvements. > > Let me know if you find any problems! > > - Jamie > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2008-08-06 00:52:53
|
Hi Webmin users, I am just about to release Webmin 1.430 and Usermin 1.360, but before I do I've created two pre-release versions that contain all the features that will be official release. You can download them from http://www.webmin.com/devel.html , or check out the change logs at http://www.webmin.com/changes-1.429.html and http://www.webmin.com/uchanges-1.359.html . The biggest new features are a new contributed TCP wrappers module in Webmin, translation updates, and various BIND module improvements. Let me know if you find any problems! - Jamie |
From: Jamie C. <jca...@we...> - 2008-08-02 18:33:57
|
On 02/Aug/2008 09:36 John Gray wrote .. > There doesn't appear to be any tinydns support for virtualmin (or did I > overlook it)? > > With recent events, I think I've had enough of bind. > > I'm not very concerned with configuring tinydns as much as just the day > to day issues of adding/deleting domains/entries. Tinydns has cmd line > utilities for doing all this, so I would imagine it would be fairly easy > to write a module to do it. But I don't want to invent the wheel. > > If nothing exists, I'll create one ala the exim module (basicly just > what I need to facilitate adding/deleting/modifing virtual servers in > virtualmin). Hi John, At the moment, there is no support for tinydns or djbdns in Virtualmin. However, it's plugin architecture would make this pretty easy to add - for example, I did one for PowerDNS a while ago that can be used instead of the regular BIND feature. You can get it from : http://www.webmin.com/cgi-bin/search_third.cgi?search=powerdns and check out the source. - Jamie |
From: John G. <gr...@ag...> - 2008-08-02 16:38:13
|
There doesn't appear to be any tinydns support for virtualmin (or did I overlook it)? With recent events, I think I've had enough of bind. I'm not very concerned with configuring tinydns as much as just the day to day issues of adding/deleting domains/entries. Tinydns has cmd line utilities for doing all this, so I would imagine it would be fairly easy to write a module to do it. But I don't want to invent the wheel. If nothing exists, I'll create one ala the exim module (basicly just what I need to facilitate adding/deleting/modifing virtual servers in virtualmin). Thanks, John -- John Gray gr...@ag... AgoraNet, Inc. (302) 224-2475 314 E. Main Street, Suite 1 (302) 224-2552 (fax) Newark, De 19711 http://www.agora-net.com |
From: Bill M. <bm...@ud...> - 2008-07-02 15:45:56
|
Hello all, is there a way to disable the simple virtualmin-autoreply functionality? It's showing up in the "Edit Mail and FTP Users" user-edit in virtualmin and it doesn't work in our setup. Interestingly it writes the file in /home/virtualmin-autoreply with the correct info, but then when the user returns to this form it doesn't read the file so the form is blank. We are using a fairly odd setup so we'd rather just disable this functionality because it would be difficult to coax it to work with our mail forwarding. I can't find any config options to do this, am I just missing something? |
From: Todd K. <tod...@gm...> - 2008-06-13 17:26:17
|
I figured it out. I was passing the hashes in the wrong order. I had this: &modify_user(\%recycleuser, \%user); but it should be this: >> &modify_user(\%user, \%recycleuser); A small over site on my part. Thats for taking the time to look at it. Now that I have some Webmin coding under my belt I might try some other stuff like writing a module for Solaris Jumpstart "JET" Thanks for the help. On Fri, Jun 13, 2008 at 1:13 PM, Jamie Cameron <jca...@we...> wrote: > That code looks fine to me - is it doing what you expect? > > - Jamie > > > On Jun 13, 2008, at 10:01 AM, "Todd Kennedy" <tod...@gm...> wrote: > >> Hi Jamie, >> >> One question. If I am resetting the password and I am encrypting it >> like so: >> >> $pass = &encrypt_password($config{'recycle_passwd'}); >> $recycleuser{'pass'} = $pass; >> >> and then I am calling modify_user like so >> >> &modify_user(\%recycleuser, \%user); >> >> Is the hash key 'pass' what I should be using to reset the password if >> I'm doing the encryption outside of the modify_user function or should >> I be using something else? >> >> >> On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> >> wrote: >>> Hi Todd, >>> >>> Make sure that in your code, you aren't calling modify_user with an >>> empty user hash. It looks like that is the case, as this would cause >>> an 'empty' line like that to be inserted into /etc/passwd. >>> >>> I'd have to see all your code to comment further though.. >>> >>> - Jamie >>> >>> On 02/Jun/2008 12:11 Todd Kennedy wrote .. >>>> Hello, >>>> >>>> I am new to webmin module development and am trying to extend the >>>> "Users >>>> & Groups" module for internal purposes. What I have done is create a >>>> "Recycle User" button on the selected users "Edit Users" page that >>>> basically mimics the functionality of the delete_user.cgi (without >>>> actually deleting the user) but also extends it by showing me a >>>> list of >>>> currently selected user processes running. Once I press the "Recycle >>>> user and home directory button" it goes off and first terminates >>>> those >>>> running processes then removes the users home directory then I >>>> need to >>>> reset the users password back to some default. I am about 90% of >>>> the way >>>> there but seem to be caught up on the saving of the modified >>>> password. I >>>> am using the modify_user function. Whats actually happening is >>>> that it's >>>> leaving an incomplete line in the /etc/password and shadow file >>>> looking >>>> something like this: >>>> >>>> svctag:*LK*:6445:::::: >>>> nobody:*LK*:6445:::::: >>>> noaccess:*LK*:6445:::::: >>>> nobody4:*LK*:6445:::::: >>>> :::::::: >>>> >>>> This last line should be the entry that I recycled but it's just a >>>> bunch >>>> of empty GECOS fields. So it seems to me that it's rewriting the >>>> line >>>> but is doing it with empty values. >>>> >>>> So I think I am missing something somewhere but am unsure what other >>>> functions possibly I need to call in order for it to write out the >>>> password file. I'm assuming the modify_user function takes care of >>>> that, no? >>>> >>>> >>>> This does seem like a strange thing to do but would fit nicely into >>>> managing test accounts for may lab machines. When the lab >>>> reservation >>>> expires the admin can recycle the user with a press of the button >>>> and >>>> set it back to some default settings. >>>> >>>> Here's the snippet of code that is suppose to be resetting the >>>> password >>>> and saving it. >>>> >>>> %recycleuser = %{$ulist[$in{'num'}]}; >>>> $pass = &encrypt_password($config{'recycle_passwd'}); >>>> $recycleuser{'pass'} = $pass; >>>> >>>> # Update user details >>>> &modify_user(\%recycleuser, \%user); >>>> >>>> # Run the pre-change command >>>> $merr = &making_changes(); >>>> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined >>>> ($merr)); >>>> &unlock_user_files(); >>>> &made_changes(); >>>> >>>> So as the code runs the following is displayed in the borwser, The >>>> has >>>> info is there for debugging purposes. >>>> >>>> Deleting from other modules .. >>>> .. done >>>> Killing user processes >>>> .. done >>>> >>>> Deleting home directory .. >>>> .. done >>>> >>>> Creating Home Directory >>>> .. done >>>> >>>> new encrypted passwd=TN4xb4vuWbxc6 >>>> >>>> Contents of recycleuser Hash prior to change >>>> >>>> num => 20 >>>> >>>> inactive => >>>> >>>> max => >>>> >>>> warn => >>>> >>>> user => testuser >>>> >>>> shell => /bin/sh >>>> >>>> home => /export/home/testuser >>>> >>>> real => >>>> >>>> line => 20 >>>> >>>> pass => NNwEdL/U3qYwU >>>> >>>> sline => 20 >>>> >>>> uid => 1000 >>>> >>>> change => 14032 >>>> >>>> min => >>>> >>>> expire => >>>> >>>> gid => 10 >>>> >>>> >>>> Contents of User hash after replacing $pass but before saving >>>> >>>> num => 20 >>>> >>>> inactive => >>>> >>>> max => >>>> >>>> warn => >>>> >>>> user => testuser >>>> >>>> shell => /bin/sh >>>> >>>> home => /export/home/testuser >>>> >>>> real => >>>> >>>> line => 20 >>>> >>>> pass => TN4xb4vuWbxc6 >>>> >>>> sline => 20 >>>> >>>> uid => 1000 >>>> >>>> change => 14032 >>>> >>>> min => >>>> >>>> expire => >>>> >>>> gid => 10 >>>> >>>> >>>> Reread the %ulist has for the user "Still has the old password" >>>> >>>> num => 20 >>>> >>>> inactive => >>>> >>>> max => >>>> >>>> warn => >>>> >>>> user => testuser >>>> >>>> shell => /bin/sh >>>> >>>> home => /export/home/testuser >>>> >>>> real => >>>> >>>> line => 20 >>>> >>>> pass => NNwEdL/U3qYwU >>>> >>>> sline => 20 >>>> >>>> uid => 1000 >>>> >>>> change => 14032 >>>> >>>> min => >>>> >>>> expire => >>>> >>>> gid => 10 >>>> >>>> >>>> Any help on this would be much appriciated. >>> >>> --- >>> --- >>> ------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> - >>> Forwarded by the Webmin development list at web...@we... >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >> >> --- >> ---------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2008-06-13 17:13:48
|
That code looks fine to me - is it doing what you expect? - Jamie On Jun 13, 2008, at 10:01 AM, "Todd Kennedy" <tod...@gm...> wrote: > Hi Jamie, > > One question. If I am resetting the password and I am encrypting it > like so: > > $pass = &encrypt_password($config{'recycle_passwd'}); > $recycleuser{'pass'} = $pass; > > and then I am calling modify_user like so > > &modify_user(\%recycleuser, \%user); > > Is the hash key 'pass' what I should be using to reset the password if > I'm doing the encryption outside of the modify_user function or should > I be using something else? > > > On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> > wrote: >> Hi Todd, >> >> Make sure that in your code, you aren't calling modify_user with an >> empty user hash. It looks like that is the case, as this would cause >> an 'empty' line like that to be inserted into /etc/passwd. >> >> I'd have to see all your code to comment further though.. >> >> - Jamie >> >> On 02/Jun/2008 12:11 Todd Kennedy wrote .. >>> Hello, >>> >>> I am new to webmin module development and am trying to extend the >>> "Users >>> & Groups" module for internal purposes. What I have done is create a >>> "Recycle User" button on the selected users "Edit Users" page that >>> basically mimics the functionality of the delete_user.cgi (without >>> actually deleting the user) but also extends it by showing me a >>> list of >>> currently selected user processes running. Once I press the "Recycle >>> user and home directory button" it goes off and first terminates >>> those >>> running processes then removes the users home directory then I >>> need to >>> reset the users password back to some default. I am about 90% of >>> the way >>> there but seem to be caught up on the saving of the modified >>> password. I >>> am using the modify_user function. Whats actually happening is >>> that it's >>> leaving an incomplete line in the /etc/password and shadow file >>> looking >>> something like this: >>> >>> svctag:*LK*:6445:::::: >>> nobody:*LK*:6445:::::: >>> noaccess:*LK*:6445:::::: >>> nobody4:*LK*:6445:::::: >>> :::::::: >>> >>> This last line should be the entry that I recycled but it's just a >>> bunch >>> of empty GECOS fields. So it seems to me that it's rewriting the >>> line >>> but is doing it with empty values. >>> >>> So I think I am missing something somewhere but am unsure what other >>> functions possibly I need to call in order for it to write out the >>> password file. I'm assuming the modify_user function takes care of >>> that, no? >>> >>> >>> This does seem like a strange thing to do but would fit nicely into >>> managing test accounts for may lab machines. When the lab >>> reservation >>> expires the admin can recycle the user with a press of the button >>> and >>> set it back to some default settings. >>> >>> Here's the snippet of code that is suppose to be resetting the >>> password >>> and saving it. >>> >>> %recycleuser = %{$ulist[$in{'num'}]}; >>> $pass = &encrypt_password($config{'recycle_passwd'}); >>> $recycleuser{'pass'} = $pass; >>> >>> # Update user details >>> &modify_user(\%recycleuser, \%user); >>> >>> # Run the pre-change command >>> $merr = &making_changes(); >>> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined >>> ($merr)); >>> &unlock_user_files(); >>> &made_changes(); >>> >>> So as the code runs the following is displayed in the borwser, The >>> has >>> info is there for debugging purposes. >>> >>> Deleting from other modules .. >>> .. done >>> Killing user processes >>> .. done >>> >>> Deleting home directory .. >>> .. done >>> >>> Creating Home Directory >>> .. done >>> >>> new encrypted passwd=TN4xb4vuWbxc6 >>> >>> Contents of recycleuser Hash prior to change >>> >>> num => 20 >>> >>> inactive => >>> >>> max => >>> >>> warn => >>> >>> user => testuser >>> >>> shell => /bin/sh >>> >>> home => /export/home/testuser >>> >>> real => >>> >>> line => 20 >>> >>> pass => NNwEdL/U3qYwU >>> >>> sline => 20 >>> >>> uid => 1000 >>> >>> change => 14032 >>> >>> min => >>> >>> expire => >>> >>> gid => 10 >>> >>> >>> Contents of User hash after replacing $pass but before saving >>> >>> num => 20 >>> >>> inactive => >>> >>> max => >>> >>> warn => >>> >>> user => testuser >>> >>> shell => /bin/sh >>> >>> home => /export/home/testuser >>> >>> real => >>> >>> line => 20 >>> >>> pass => TN4xb4vuWbxc6 >>> >>> sline => 20 >>> >>> uid => 1000 >>> >>> change => 14032 >>> >>> min => >>> >>> expire => >>> >>> gid => 10 >>> >>> >>> Reread the %ulist has for the user "Still has the old password" >>> >>> num => 20 >>> >>> inactive => >>> >>> max => >>> >>> warn => >>> >>> user => testuser >>> >>> shell => /bin/sh >>> >>> home => /export/home/testuser >>> >>> real => >>> >>> line => 20 >>> >>> pass => NNwEdL/U3qYwU >>> >>> sline => 20 >>> >>> uid => 1000 >>> >>> change => 14032 >>> >>> min => >>> >>> expire => >>> >>> gid => 10 >>> >>> >>> Any help on this would be much appriciated. >> >> --- >> --- >> ------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > --- > ---------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Todd K. <tod...@gm...> - 2008-06-13 17:01:29
|
Hi Jamie, One question. If I am resetting the password and I am encrypting it like so: $pass = &encrypt_password($config{'recycle_passwd'}); $recycleuser{'pass'} = $pass; and then I am calling modify_user like so &modify_user(\%recycleuser, \%user); Is the hash key 'pass' what I should be using to reset the password if I'm doing the encryption outside of the modify_user function or should I be using something else? On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> wrote: > Hi Todd, > > Make sure that in your code, you aren't calling modify_user with an > empty user hash. It looks like that is the case, as this would cause > an 'empty' line like that to be inserted into /etc/passwd. > > I'd have to see all your code to comment further though.. > > - Jamie > > On 02/Jun/2008 12:11 Todd Kennedy wrote .. >> Hello, >> >> I am new to webmin module development and am trying to extend the "Users >> & Groups" module for internal purposes. What I have done is create a >> "Recycle User" button on the selected users "Edit Users" page that >> basically mimics the functionality of the delete_user.cgi (without >> actually deleting the user) but also extends it by showing me a list of >> currently selected user processes running. Once I press the "Recycle >> user and home directory button" it goes off and first terminates those >> running processes then removes the users home directory then I need to >> reset the users password back to some default. I am about 90% of the way >> there but seem to be caught up on the saving of the modified password. I >> am using the modify_user function. Whats actually happening is that it's >> leaving an incomplete line in the /etc/password and shadow file looking >> something like this: >> >> svctag:*LK*:6445:::::: >> nobody:*LK*:6445:::::: >> noaccess:*LK*:6445:::::: >> nobody4:*LK*:6445:::::: >> :::::::: >> >> This last line should be the entry that I recycled but it's just a bunch >> of empty GECOS fields. So it seems to me that it's rewriting the line >> but is doing it with empty values. >> >> So I think I am missing something somewhere but am unsure what other >> functions possibly I need to call in order for it to write out the >> password file. I'm assuming the modify_user function takes care of that, no? >> >> >> This does seem like a strange thing to do but would fit nicely into >> managing test accounts for may lab machines. When the lab reservation >> expires the admin can recycle the user with a press of the button and >> set it back to some default settings. >> >> Here's the snippet of code that is suppose to be resetting the password >> and saving it. >> >> %recycleuser = %{$ulist[$in{'num'}]}; >> $pass = &encrypt_password($config{'recycle_passwd'}); >> $recycleuser{'pass'} = $pass; >> >> # Update user details >> &modify_user(\%recycleuser, \%user); >> >> # Run the pre-change command >> $merr = &making_changes(); >> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); >> &unlock_user_files(); >> &made_changes(); >> >> So as the code runs the following is displayed in the borwser, The has >> info is there for debugging purposes. >> >> Deleting from other modules .. >> .. done >> Killing user processes >> .. done >> >> Deleting home directory .. >> .. done >> >> Creating Home Directory >> .. done >> >> new encrypted passwd=TN4xb4vuWbxc6 >> >> Contents of recycleuser Hash prior to change >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => NNwEdL/U3qYwU >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Contents of User hash after replacing $pass but before saving >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => TN4xb4vuWbxc6 >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Reread the %ulist has for the user "Still has the old password" >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => NNwEdL/U3qYwU >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Any help on this would be much appriciated. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Todd K. <tod...@gm...> - 2008-06-04 13:53:41
|
Yeah it suppose to be replacing a valid user. I made a few changes to the script since the other day. Basically I removed all the code for delete the user from other modules "wasn't needed since I'm not deleting the user". Now it doesn't add that bogus line in the /etc/passwd and shadow file but it still is not working. I'll have to keep digging. On Tue, Jun 3, 2008 at 4:20 PM, Jamie Cameron <jca...@we...> wrote: > I was referring to that ::::: line in /etc/passwd. Is it replacing > some valid user, or just being appended? > > - Jamie > > > On Jun 3, 2008, at 12:04 PM, "Todd Kennedy" <tod...@gm...> wrote: > >> I'm not sure I'm following you? In the code you mean? What line #? >> >> On Tue, Jun 3, 2008 at 2:30 PM, Jamie Cameron <jca...@we...> >> wrote: >>> I had a look at your code, and it seems reasonable to me.. >>> >>> Is that extra bogus line just being added, or is it replacing some >>> other user? >>> >>> - Jamie >>> >>> On 03/Jun/2008 06:28 Todd Kennedy wrote .. >>>> Hi Jamie, >>>> >>>> Thanks for replying to my post. I still can't figure out whats going >>>> on. I've defined %user hash but to no avail I cannot seem to locate >>>> the issue. I've attached my recycle_users.cgi. If you could briefly >>>> review it that would be great. I also welcome any pointers and >>>> constructive criticism. >>>> >>>> Thanks >>>> >>>> -Todd >>>> >>>> On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron >>>> <jca...@we...> wrote: >>>>> Hi Todd, >>>>> >>>>> Make sure that in your code, you aren't calling modify_user with an >>>>> empty user hash. It looks like that is the case, as this would >>>>> cause >>>>> an 'empty' line like that to be inserted into /etc/passwd. >>>>> >>>>> I'd have to see all your code to comment further though.. >>>>> >>>>> - Jamie >>>>> >>>>> On 02/Jun/2008 12:11 Todd Kennedy wrote .. >>>>>> Hello, >>>>>> >>>>>> I am new to webmin module development and am trying to extend >>>>>> the "Users >>>>>> & Groups" module for internal purposes. What I have done is >>>>>> create a >>>>>> "Recycle User" button on the selected users "Edit Users" page that >>>>>> basically mimics the functionality of the delete_user.cgi (without >>>>>> actually deleting the user) but also extends it by showing me a >>>>>> list of >>>>>> currently selected user processes running. Once I press the >>>>>> "Recycle >>>>>> user and home directory button" it goes off and first terminates >>>>>> those >>>>>> running processes then removes the users home directory then I >>>>>> need to >>>>>> reset the users password back to some default. I am about 90% of >>>>>> the way >>>>>> there but seem to be caught up on the saving of the modified >>>>>> password. I >>>>>> am using the modify_user function. Whats actually happening is >>>>>> that it's >>>>>> leaving an incomplete line in the /etc/password and shadow file >>>>>> looking >>>>>> something like this: >>>>>> >>>>>> svctag:*LK*:6445:::::: >>>>>> nobody:*LK*:6445:::::: >>>>>> noaccess:*LK*:6445:::::: >>>>>> nobody4:*LK*:6445:::::: >>>>>> :::::::: >>>>>> >>>>>> This last line should be the entry that I recycled but it's just >>>>>> a bunch >>>>>> of empty GECOS fields. So it seems to me that it's rewriting the >>>>>> line >>>>>> but is doing it with empty values. >>>>>> >>>>>> So I think I am missing something somewhere but am unsure what >>>>>> other >>>>>> functions possibly I need to call in order for it to write out the >>>>>> password file. I'm assuming the modify_user function takes care >>>>>> of that, no? >>>>>> >>>>>> >>>>>> This does seem like a strange thing to do but would fit nicely >>>>>> into >>>>>> managing test accounts for may lab machines. When the lab >>>>>> reservation >>>>>> expires the admin can recycle the user with a press of the >>>>>> button and >>>>>> set it back to some default settings. >>>>>> >>>>>> Here's the snippet of code that is suppose to be resetting the >>>>>> password >>>>>> and saving it. >>>>>> >>>>>> %recycleuser = %{$ulist[$in{'num'}]}; >>>>>> $pass = &encrypt_password($config{'recycle_passwd'}); >>>>>> $recycleuser{'pass'} = $pass; >>>>>> >>>>>> # Update user details >>>>>> &modify_user(\%recycleuser, \%user); >>>>>> >>>>>> # Run the pre-change command >>>>>> $merr = &making_changes(); >>>>>> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined >>>>>> ($merr)); >>>>>> &unlock_user_files(); >>>>>> &made_changes(); >>>>>> >>>>>> So as the code runs the following is displayed in the borwser, >>>>>> The has >>>>>> info is there for debugging purposes. >>>>>> >>>>>> Deleting from other modules .. >>>>>> .. done >>>>>> Killing user processes >>>>>> .. done >>>>>> >>>>>> Deleting home directory .. >>>>>> .. done >>>>>> >>>>>> Creating Home Directory >>>>>> .. done >>>>>> >>>>>> new encrypted passwd=TN4xb4vuWbxc6 >>>>>> >>>>>> Contents of recycleuser Hash prior to change >>>>>> >>>>>> num => 20 >>>>>> >>>>>> inactive => >>>>>> >>>>>> max => >>>>>> >>>>>> warn => >>>>>> >>>>>> user => testuser >>>>>> >>>>>> shell => /bin/sh >>>>>> >>>>>> home => /export/home/testuser >>>>>> >>>>>> real => >>>>>> >>>>>> line => 20 >>>>>> >>>>>> pass => NNwEdL/U3qYwU >>>>>> >>>>>> sline => 20 >>>>>> >>>>>> uid => 1000 >>>>>> >>>>>> change => 14032 >>>>>> >>>>>> min => >>>>>> >>>>>> expire => >>>>>> >>>>>> gid => 10 >>>>>> >>>>>> >>>>>> Contents of User hash after replacing $pass but before saving >>>>>> >>>>>> num => 20 >>>>>> >>>>>> inactive => >>>>>> >>>>>> max => >>>>>> >>>>>> warn => >>>>>> >>>>>> user => testuser >>>>>> >>>>>> shell => /bin/sh >>>>>> >>>>>> home => /export/home/testuser >>>>>> >>>>>> real => >>>>>> >>>>>> line => 20 >>>>>> >>>>>> pass => TN4xb4vuWbxc6 >>>>>> >>>>>> sline => 20 >>>>>> >>>>>> uid => 1000 >>>>>> >>>>>> change => 14032 >>>>>> >>>>>> min => >>>>>> >>>>>> expire => >>>>>> >>>>>> gid => 10 >>>>>> >>>>>> >>>>>> Reread the %ulist has for the user "Still has the old password" >>>>>> >>>>>> num => 20 >>>>>> >>>>>> inactive => >>>>>> >>>>>> max => >>>>>> >>>>>> warn => >>>>>> >>>>>> user => testuser >>>>>> >>>>>> shell => /bin/sh >>>>>> >>>>>> home => /export/home/testuser >>>>>> >>>>>> real => >>>>>> >>>>>> line => 20 >>>>>> >>>>>> pass => NNwEdL/U3qYwU >>>>>> >>>>>> sline => 20 >>>>>> >>>>>> uid => 1000 >>>>>> >>>>>> change => 14032 >>>>>> >>>>>> min => >>>>>> >>>>>> expire => >>>>>> >>>>>> gid => 10 >>>>>> >>>>>> >>>>>> Any help on this would be much appriciated. >>>>> >>>>> --- >>>>> --- >>>>> ------------------------------------------------------------------- >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> - >>>>> Forwarded by the Webmin development list at web...@we... >>>>> To remove yourself from this list, go to >>>>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>>>> >>> >>> --- >>> --- >>> ------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> - >>> Forwarded by the Webmin development list at web...@we... >>> To remove yourself from this list, go to >>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>> >> >> --- >> ---------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2008-06-03 20:20:56
|
I was referring to that ::::: line in /etc/passwd. Is it replacing some valid user, or just being appended? - Jamie On Jun 3, 2008, at 12:04 PM, "Todd Kennedy" <tod...@gm...> wrote: > I'm not sure I'm following you? In the code you mean? What line #? > > On Tue, Jun 3, 2008 at 2:30 PM, Jamie Cameron <jca...@we...> > wrote: >> I had a look at your code, and it seems reasonable to me.. >> >> Is that extra bogus line just being added, or is it replacing some >> other user? >> >> - Jamie >> >> On 03/Jun/2008 06:28 Todd Kennedy wrote .. >>> Hi Jamie, >>> >>> Thanks for replying to my post. I still can't figure out whats going >>> on. I've defined %user hash but to no avail I cannot seem to locate >>> the issue. I've attached my recycle_users.cgi. If you could briefly >>> review it that would be great. I also welcome any pointers and >>> constructive criticism. >>> >>> Thanks >>> >>> -Todd >>> >>> On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron >>> <jca...@we...> wrote: >>>> Hi Todd, >>>> >>>> Make sure that in your code, you aren't calling modify_user with an >>>> empty user hash. It looks like that is the case, as this would >>>> cause >>>> an 'empty' line like that to be inserted into /etc/passwd. >>>> >>>> I'd have to see all your code to comment further though.. >>>> >>>> - Jamie >>>> >>>> On 02/Jun/2008 12:11 Todd Kennedy wrote .. >>>>> Hello, >>>>> >>>>> I am new to webmin module development and am trying to extend >>>>> the "Users >>>>> & Groups" module for internal purposes. What I have done is >>>>> create a >>>>> "Recycle User" button on the selected users "Edit Users" page that >>>>> basically mimics the functionality of the delete_user.cgi (without >>>>> actually deleting the user) but also extends it by showing me a >>>>> list of >>>>> currently selected user processes running. Once I press the >>>>> "Recycle >>>>> user and home directory button" it goes off and first terminates >>>>> those >>>>> running processes then removes the users home directory then I >>>>> need to >>>>> reset the users password back to some default. I am about 90% of >>>>> the way >>>>> there but seem to be caught up on the saving of the modified >>>>> password. I >>>>> am using the modify_user function. Whats actually happening is >>>>> that it's >>>>> leaving an incomplete line in the /etc/password and shadow file >>>>> looking >>>>> something like this: >>>>> >>>>> svctag:*LK*:6445:::::: >>>>> nobody:*LK*:6445:::::: >>>>> noaccess:*LK*:6445:::::: >>>>> nobody4:*LK*:6445:::::: >>>>> :::::::: >>>>> >>>>> This last line should be the entry that I recycled but it's just >>>>> a bunch >>>>> of empty GECOS fields. So it seems to me that it's rewriting the >>>>> line >>>>> but is doing it with empty values. >>>>> >>>>> So I think I am missing something somewhere but am unsure what >>>>> other >>>>> functions possibly I need to call in order for it to write out the >>>>> password file. I'm assuming the modify_user function takes care >>>>> of that, no? >>>>> >>>>> >>>>> This does seem like a strange thing to do but would fit nicely >>>>> into >>>>> managing test accounts for may lab machines. When the lab >>>>> reservation >>>>> expires the admin can recycle the user with a press of the >>>>> button and >>>>> set it back to some default settings. >>>>> >>>>> Here's the snippet of code that is suppose to be resetting the >>>>> password >>>>> and saving it. >>>>> >>>>> %recycleuser = %{$ulist[$in{'num'}]}; >>>>> $pass = &encrypt_password($config{'recycle_passwd'}); >>>>> $recycleuser{'pass'} = $pass; >>>>> >>>>> # Update user details >>>>> &modify_user(\%recycleuser, \%user); >>>>> >>>>> # Run the pre-change command >>>>> $merr = &making_changes(); >>>>> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined >>>>> ($merr)); >>>>> &unlock_user_files(); >>>>> &made_changes(); >>>>> >>>>> So as the code runs the following is displayed in the borwser, >>>>> The has >>>>> info is there for debugging purposes. >>>>> >>>>> Deleting from other modules .. >>>>> .. done >>>>> Killing user processes >>>>> .. done >>>>> >>>>> Deleting home directory .. >>>>> .. done >>>>> >>>>> Creating Home Directory >>>>> .. done >>>>> >>>>> new encrypted passwd=TN4xb4vuWbxc6 >>>>> >>>>> Contents of recycleuser Hash prior to change >>>>> >>>>> num => 20 >>>>> >>>>> inactive => >>>>> >>>>> max => >>>>> >>>>> warn => >>>>> >>>>> user => testuser >>>>> >>>>> shell => /bin/sh >>>>> >>>>> home => /export/home/testuser >>>>> >>>>> real => >>>>> >>>>> line => 20 >>>>> >>>>> pass => NNwEdL/U3qYwU >>>>> >>>>> sline => 20 >>>>> >>>>> uid => 1000 >>>>> >>>>> change => 14032 >>>>> >>>>> min => >>>>> >>>>> expire => >>>>> >>>>> gid => 10 >>>>> >>>>> >>>>> Contents of User hash after replacing $pass but before saving >>>>> >>>>> num => 20 >>>>> >>>>> inactive => >>>>> >>>>> max => >>>>> >>>>> warn => >>>>> >>>>> user => testuser >>>>> >>>>> shell => /bin/sh >>>>> >>>>> home => /export/home/testuser >>>>> >>>>> real => >>>>> >>>>> line => 20 >>>>> >>>>> pass => TN4xb4vuWbxc6 >>>>> >>>>> sline => 20 >>>>> >>>>> uid => 1000 >>>>> >>>>> change => 14032 >>>>> >>>>> min => >>>>> >>>>> expire => >>>>> >>>>> gid => 10 >>>>> >>>>> >>>>> Reread the %ulist has for the user "Still has the old password" >>>>> >>>>> num => 20 >>>>> >>>>> inactive => >>>>> >>>>> max => >>>>> >>>>> warn => >>>>> >>>>> user => testuser >>>>> >>>>> shell => /bin/sh >>>>> >>>>> home => /export/home/testuser >>>>> >>>>> real => >>>>> >>>>> line => 20 >>>>> >>>>> pass => NNwEdL/U3qYwU >>>>> >>>>> sline => 20 >>>>> >>>>> uid => 1000 >>>>> >>>>> change => 14032 >>>>> >>>>> min => >>>>> >>>>> expire => >>>>> >>>>> gid => 10 >>>>> >>>>> >>>>> Any help on this would be much appriciated. >>>> >>>> --- >>>> --- >>>> ------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> - >>>> Forwarded by the Webmin development list at web...@we... >>>> To remove yourself from this list, go to >>>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >>>> >> >> --- >> --- >> ------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> - >> Forwarded by the Webmin development list at web...@we... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > --- > ---------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Todd K. <tod...@gm...> - 2008-06-03 19:04:09
|
I'm not sure I'm following you? In the code you mean? What line #? On Tue, Jun 3, 2008 at 2:30 PM, Jamie Cameron <jca...@we...> wrote: > I had a look at your code, and it seems reasonable to me.. > > Is that extra bogus line just being added, or is it replacing some > other user? > > - Jamie > > On 03/Jun/2008 06:28 Todd Kennedy wrote .. >> Hi Jamie, >> >> Thanks for replying to my post. I still can't figure out whats going >> on. I've defined %user hash but to no avail I cannot seem to locate >> the issue. I've attached my recycle_users.cgi. If you could briefly >> review it that would be great. I also welcome any pointers and >> constructive criticism. >> >> Thanks >> >> -Todd >> >> On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> wrote: >> > Hi Todd, >> > >> > Make sure that in your code, you aren't calling modify_user with an >> > empty user hash. It looks like that is the case, as this would cause >> > an 'empty' line like that to be inserted into /etc/passwd. >> > >> > I'd have to see all your code to comment further though.. >> > >> > - Jamie >> > >> > On 02/Jun/2008 12:11 Todd Kennedy wrote .. >> >> Hello, >> >> >> >> I am new to webmin module development and am trying to extend the "Users >> >> & Groups" module for internal purposes. What I have done is create a >> >> "Recycle User" button on the selected users "Edit Users" page that >> >> basically mimics the functionality of the delete_user.cgi (without >> >> actually deleting the user) but also extends it by showing me a list of >> >> currently selected user processes running. Once I press the "Recycle >> >> user and home directory button" it goes off and first terminates those >> >> running processes then removes the users home directory then I need to >> >> reset the users password back to some default. I am about 90% of the way >> >> there but seem to be caught up on the saving of the modified password. I >> >> am using the modify_user function. Whats actually happening is that it's >> >> leaving an incomplete line in the /etc/password and shadow file looking >> >> something like this: >> >> >> >> svctag:*LK*:6445:::::: >> >> nobody:*LK*:6445:::::: >> >> noaccess:*LK*:6445:::::: >> >> nobody4:*LK*:6445:::::: >> >> :::::::: >> >> >> >> This last line should be the entry that I recycled but it's just a bunch >> >> of empty GECOS fields. So it seems to me that it's rewriting the line >> >> but is doing it with empty values. >> >> >> >> So I think I am missing something somewhere but am unsure what other >> >> functions possibly I need to call in order for it to write out the >> >> password file. I'm assuming the modify_user function takes care of that, no? >> >> >> >> >> >> This does seem like a strange thing to do but would fit nicely into >> >> managing test accounts for may lab machines. When the lab reservation >> >> expires the admin can recycle the user with a press of the button and >> >> set it back to some default settings. >> >> >> >> Here's the snippet of code that is suppose to be resetting the password >> >> and saving it. >> >> >> >> %recycleuser = %{$ulist[$in{'num'}]}; >> >> $pass = &encrypt_password($config{'recycle_passwd'}); >> >> $recycleuser{'pass'} = $pass; >> >> >> >> # Update user details >> >> &modify_user(\%recycleuser, \%user); >> >> >> >> # Run the pre-change command >> >> $merr = &making_changes(); >> >> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); >> >> &unlock_user_files(); >> >> &made_changes(); >> >> >> >> So as the code runs the following is displayed in the borwser, The has >> >> info is there for debugging purposes. >> >> >> >> Deleting from other modules .. >> >> .. done >> >> Killing user processes >> >> .. done >> >> >> >> Deleting home directory .. >> >> .. done >> >> >> >> Creating Home Directory >> >> .. done >> >> >> >> new encrypted passwd=TN4xb4vuWbxc6 >> >> >> >> Contents of recycleuser Hash prior to change >> >> >> >> num => 20 >> >> >> >> inactive => >> >> >> >> max => >> >> >> >> warn => >> >> >> >> user => testuser >> >> >> >> shell => /bin/sh >> >> >> >> home => /export/home/testuser >> >> >> >> real => >> >> >> >> line => 20 >> >> >> >> pass => NNwEdL/U3qYwU >> >> >> >> sline => 20 >> >> >> >> uid => 1000 >> >> >> >> change => 14032 >> >> >> >> min => >> >> >> >> expire => >> >> >> >> gid => 10 >> >> >> >> >> >> Contents of User hash after replacing $pass but before saving >> >> >> >> num => 20 >> >> >> >> inactive => >> >> >> >> max => >> >> >> >> warn => >> >> >> >> user => testuser >> >> >> >> shell => /bin/sh >> >> >> >> home => /export/home/testuser >> >> >> >> real => >> >> >> >> line => 20 >> >> >> >> pass => TN4xb4vuWbxc6 >> >> >> >> sline => 20 >> >> >> >> uid => 1000 >> >> >> >> change => 14032 >> >> >> >> min => >> >> >> >> expire => >> >> >> >> gid => 10 >> >> >> >> >> >> Reread the %ulist has for the user "Still has the old password" >> >> >> >> num => 20 >> >> >> >> inactive => >> >> >> >> max => >> >> >> >> warn => >> >> >> >> user => testuser >> >> >> >> shell => /bin/sh >> >> >> >> home => /export/home/testuser >> >> >> >> real => >> >> >> >> line => 20 >> >> >> >> pass => NNwEdL/U3qYwU >> >> >> >> sline => 20 >> >> >> >> uid => 1000 >> >> >> >> change => 14032 >> >> >> >> min => >> >> >> >> expire => >> >> >> >> gid => 10 >> >> >> >> >> >> Any help on this would be much appriciated. >> > >> > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > - >> > Forwarded by the Webmin development list at web...@we... >> > To remove yourself from this list, go to >> > http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2008-06-03 18:30:11
|
I had a look at your code, and it seems reasonable to me.. Is that extra bogus line just being added, or is it replacing some other user? - Jamie On 03/Jun/2008 06:28 Todd Kennedy wrote .. > Hi Jamie, > > Thanks for replying to my post. I still can't figure out whats going > on. I've defined %user hash but to no avail I cannot seem to locate > the issue. I've attached my recycle_users.cgi. If you could briefly > review it that would be great. I also welcome any pointers and > constructive criticism. > > Thanks > > -Todd > > On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> wrote: > > Hi Todd, > > > > Make sure that in your code, you aren't calling modify_user with an > > empty user hash. It looks like that is the case, as this would cause > > an 'empty' line like that to be inserted into /etc/passwd. > > > > I'd have to see all your code to comment further though.. > > > > - Jamie > > > > On 02/Jun/2008 12:11 Todd Kennedy wrote .. > >> Hello, > >> > >> I am new to webmin module development and am trying to extend the "Users > >> & Groups" module for internal purposes. What I have done is create a > >> "Recycle User" button on the selected users "Edit Users" page that > >> basically mimics the functionality of the delete_user.cgi (without > >> actually deleting the user) but also extends it by showing me a list of > >> currently selected user processes running. Once I press the "Recycle > >> user and home directory button" it goes off and first terminates those > >> running processes then removes the users home directory then I need to > >> reset the users password back to some default. I am about 90% of the way > >> there but seem to be caught up on the saving of the modified password. I > >> am using the modify_user function. Whats actually happening is that it's > >> leaving an incomplete line in the /etc/password and shadow file looking > >> something like this: > >> > >> svctag:*LK*:6445:::::: > >> nobody:*LK*:6445:::::: > >> noaccess:*LK*:6445:::::: > >> nobody4:*LK*:6445:::::: > >> :::::::: > >> > >> This last line should be the entry that I recycled but it's just a bunch > >> of empty GECOS fields. So it seems to me that it's rewriting the line > >> but is doing it with empty values. > >> > >> So I think I am missing something somewhere but am unsure what other > >> functions possibly I need to call in order for it to write out the > >> password file. I'm assuming the modify_user function takes care of that, no? > >> > >> > >> This does seem like a strange thing to do but would fit nicely into > >> managing test accounts for may lab machines. When the lab reservation > >> expires the admin can recycle the user with a press of the button and > >> set it back to some default settings. > >> > >> Here's the snippet of code that is suppose to be resetting the password > >> and saving it. > >> > >> %recycleuser = %{$ulist[$in{'num'}]}; > >> $pass = &encrypt_password($config{'recycle_passwd'}); > >> $recycleuser{'pass'} = $pass; > >> > >> # Update user details > >> &modify_user(\%recycleuser, \%user); > >> > >> # Run the pre-change command > >> $merr = &making_changes(); > >> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); > >> &unlock_user_files(); > >> &made_changes(); > >> > >> So as the code runs the following is displayed in the borwser, The has > >> info is there for debugging purposes. > >> > >> Deleting from other modules .. > >> .. done > >> Killing user processes > >> .. done > >> > >> Deleting home directory .. > >> .. done > >> > >> Creating Home Directory > >> .. done > >> > >> new encrypted passwd=TN4xb4vuWbxc6 > >> > >> Contents of recycleuser Hash prior to change > >> > >> num => 20 > >> > >> inactive => > >> > >> max => > >> > >> warn => > >> > >> user => testuser > >> > >> shell => /bin/sh > >> > >> home => /export/home/testuser > >> > >> real => > >> > >> line => 20 > >> > >> pass => NNwEdL/U3qYwU > >> > >> sline => 20 > >> > >> uid => 1000 > >> > >> change => 14032 > >> > >> min => > >> > >> expire => > >> > >> gid => 10 > >> > >> > >> Contents of User hash after replacing $pass but before saving > >> > >> num => 20 > >> > >> inactive => > >> > >> max => > >> > >> warn => > >> > >> user => testuser > >> > >> shell => /bin/sh > >> > >> home => /export/home/testuser > >> > >> real => > >> > >> line => 20 > >> > >> pass => TN4xb4vuWbxc6 > >> > >> sline => 20 > >> > >> uid => 1000 > >> > >> change => 14032 > >> > >> min => > >> > >> expire => > >> > >> gid => 10 > >> > >> > >> Reread the %ulist has for the user "Still has the old password" > >> > >> num => 20 > >> > >> inactive => > >> > >> max => > >> > >> warn => > >> > >> user => testuser > >> > >> shell => /bin/sh > >> > >> home => /export/home/testuser > >> > >> real => > >> > >> line => 20 > >> > >> pass => NNwEdL/U3qYwU > >> > >> sline => 20 > >> > >> uid => 1000 > >> > >> change => 14032 > >> > >> min => > >> > >> expire => > >> > >> gid => 10 > >> > >> > >> Any help on this would be much appriciated. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Todd K. <tod...@gm...> - 2008-06-03 13:28:54
|
Hi Jamie, Thanks for replying to my post. I still can't figure out whats going on. I've defined %user hash but to no avail I cannot seem to locate the issue. I've attached my recycle_users.cgi. If you could briefly review it that would be great. I also welcome any pointers and constructive criticism. Thanks -Todd On Mon, Jun 2, 2008 at 5:04 PM, Jamie Cameron <jca...@we...> wrote: > Hi Todd, > > Make sure that in your code, you aren't calling modify_user with an > empty user hash. It looks like that is the case, as this would cause > an 'empty' line like that to be inserted into /etc/passwd. > > I'd have to see all your code to comment further though.. > > - Jamie > > On 02/Jun/2008 12:11 Todd Kennedy wrote .. >> Hello, >> >> I am new to webmin module development and am trying to extend the "Users >> & Groups" module for internal purposes. What I have done is create a >> "Recycle User" button on the selected users "Edit Users" page that >> basically mimics the functionality of the delete_user.cgi (without >> actually deleting the user) but also extends it by showing me a list of >> currently selected user processes running. Once I press the "Recycle >> user and home directory button" it goes off and first terminates those >> running processes then removes the users home directory then I need to >> reset the users password back to some default. I am about 90% of the way >> there but seem to be caught up on the saving of the modified password. I >> am using the modify_user function. Whats actually happening is that it's >> leaving an incomplete line in the /etc/password and shadow file looking >> something like this: >> >> svctag:*LK*:6445:::::: >> nobody:*LK*:6445:::::: >> noaccess:*LK*:6445:::::: >> nobody4:*LK*:6445:::::: >> :::::::: >> >> This last line should be the entry that I recycled but it's just a bunch >> of empty GECOS fields. So it seems to me that it's rewriting the line >> but is doing it with empty values. >> >> So I think I am missing something somewhere but am unsure what other >> functions possibly I need to call in order for it to write out the >> password file. I'm assuming the modify_user function takes care of that, no? >> >> >> This does seem like a strange thing to do but would fit nicely into >> managing test accounts for may lab machines. When the lab reservation >> expires the admin can recycle the user with a press of the button and >> set it back to some default settings. >> >> Here's the snippet of code that is suppose to be resetting the password >> and saving it. >> >> %recycleuser = %{$ulist[$in{'num'}]}; >> $pass = &encrypt_password($config{'recycle_passwd'}); >> $recycleuser{'pass'} = $pass; >> >> # Update user details >> &modify_user(\%recycleuser, \%user); >> >> # Run the pre-change command >> $merr = &making_changes(); >> &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); >> &unlock_user_files(); >> &made_changes(); >> >> So as the code runs the following is displayed in the borwser, The has >> info is there for debugging purposes. >> >> Deleting from other modules .. >> .. done >> Killing user processes >> .. done >> >> Deleting home directory .. >> .. done >> >> Creating Home Directory >> .. done >> >> new encrypted passwd=TN4xb4vuWbxc6 >> >> Contents of recycleuser Hash prior to change >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => NNwEdL/U3qYwU >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Contents of User hash after replacing $pass but before saving >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => TN4xb4vuWbxc6 >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Reread the %ulist has for the user "Still has the old password" >> >> num => 20 >> >> inactive => >> >> max => >> >> warn => >> >> user => testuser >> >> shell => /bin/sh >> >> home => /export/home/testuser >> >> real => >> >> line => 20 >> >> pass => NNwEdL/U3qYwU >> >> sline => 20 >> >> uid => 1000 >> >> change => 14032 >> >> min => >> >> expire => >> >> gid => 10 >> >> >> Any help on this would be much appriciated. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2008-06-02 21:04:10
|
Hi Todd, Make sure that in your code, you aren't calling modify_user with an empty user hash. It looks like that is the case, as this would cause an 'empty' line like that to be inserted into /etc/passwd. I'd have to see all your code to comment further though.. - Jamie On 02/Jun/2008 12:11 Todd Kennedy wrote .. > Hello, > > I am new to webmin module development and am trying to extend the "Users > & Groups" module for internal purposes. What I have done is create a > "Recycle User" button on the selected users "Edit Users" page that > basically mimics the functionality of the delete_user.cgi (without > actually deleting the user) but also extends it by showing me a list of > currently selected user processes running. Once I press the "Recycle > user and home directory button" it goes off and first terminates those > running processes then removes the users home directory then I need to > reset the users password back to some default. I am about 90% of the way > there but seem to be caught up on the saving of the modified password. I > am using the modify_user function. Whats actually happening is that it's > leaving an incomplete line in the /etc/password and shadow file looking > something like this: > > svctag:*LK*:6445:::::: > nobody:*LK*:6445:::::: > noaccess:*LK*:6445:::::: > nobody4:*LK*:6445:::::: > :::::::: > > This last line should be the entry that I recycled but it's just a bunch > of empty GECOS fields. So it seems to me that it's rewriting the line > but is doing it with empty values. > > So I think I am missing something somewhere but am unsure what other > functions possibly I need to call in order for it to write out the > password file. I'm assuming the modify_user function takes care of that, no? > > > This does seem like a strange thing to do but would fit nicely into > managing test accounts for may lab machines. When the lab reservation > expires the admin can recycle the user with a press of the button and > set it back to some default settings. > > Here's the snippet of code that is suppose to be resetting the password > and saving it. > > %recycleuser = %{$ulist[$in{'num'}]}; > $pass = &encrypt_password($config{'recycle_passwd'}); > $recycleuser{'pass'} = $pass; > > # Update user details > &modify_user(\%recycleuser, \%user); > > # Run the pre-change command > $merr = &making_changes(); > &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); > &unlock_user_files(); > &made_changes(); > > So as the code runs the following is displayed in the borwser, The has > info is there for debugging purposes. > > Deleting from other modules .. > .. done > Killing user processes > .. done > > Deleting home directory .. > .. done > > Creating Home Directory > .. done > > new encrypted passwd=TN4xb4vuWbxc6 > > Contents of recycleuser Hash prior to change > > num => 20 > > inactive => > > max => > > warn => > > user => testuser > > shell => /bin/sh > > home => /export/home/testuser > > real => > > line => 20 > > pass => NNwEdL/U3qYwU > > sline => 20 > > uid => 1000 > > change => 14032 > > min => > > expire => > > gid => 10 > > > Contents of User hash after replacing $pass but before saving > > num => 20 > > inactive => > > max => > > warn => > > user => testuser > > shell => /bin/sh > > home => /export/home/testuser > > real => > > line => 20 > > pass => TN4xb4vuWbxc6 > > sline => 20 > > uid => 1000 > > change => 14032 > > min => > > expire => > > gid => 10 > > > Reread the %ulist has for the user "Still has the old password" > > num => 20 > > inactive => > > max => > > warn => > > user => testuser > > shell => /bin/sh > > home => /export/home/testuser > > real => > > line => 20 > > pass => NNwEdL/U3qYwU > > sline => 20 > > uid => 1000 > > change => 14032 > > min => > > expire => > > gid => 10 > > > Any help on this would be much appriciated. |
From: Todd K. <tod...@or...> - 2008-06-02 19:13:19
|
Hello, I am new to webmin module development and am trying to extend the "Users & Groups" module for internal purposes. What I have done is create a "Recycle User" button on the selected users "Edit Users" page that basically mimics the functionality of the delete_user.cgi (without actually deleting the user) but also extends it by showing me a list of currently selected user processes running. Once I press the "Recycle user and home directory button" it goes off and first terminates those running processes then removes the users home directory then I need to reset the users password back to some default. I am about 90% of the way there but seem to be caught up on the saving of the modified password. I am using the modify_user function. Whats actually happening is that it's leaving an incomplete line in the /etc/password and shadow file looking something like this: svctag:*LK*:6445:::::: nobody:*LK*:6445:::::: noaccess:*LK*:6445:::::: nobody4:*LK*:6445:::::: :::::::: This last line should be the entry that I recycled but it's just a bunch of empty GECOS fields. So it seems to me that it's rewriting the line but is doing it with empty values. So I think I am missing something somewhere but am unsure what other functions possibly I need to call in order for it to write out the password file. I'm assuming the modify_user function takes care of that, no? This does seem like a strange thing to do but would fit nicely into managing test accounts for may lab machines. When the lab reservation expires the admin can recycle the user with a press of the button and set it back to some default settings. Here's the snippet of code that is suppose to be resetting the password and saving it. %recycleuser = %{$ulist[$in{'num'}]}; $pass = &encrypt_password($config{'recycle_passwd'}); $recycleuser{'pass'} = $pass; # Update user details &modify_user(\%recycleuser, \%user); # Run the pre-change command $merr = &making_changes(); &error(&text('usave_emaking', "<tt>$merr</tt>")) if (defined($merr)); &unlock_user_files(); &made_changes(); So as the code runs the following is displayed in the borwser, The has info is there for debugging purposes. Deleting from other modules .. .. done Killing user processes .. done Deleting home directory .. .. done Creating Home Directory .. done new encrypted passwd=TN4xb4vuWbxc6 Contents of recycleuser Hash prior to change num => 20 inactive => max => warn => user => testuser shell => /bin/sh home => /export/home/testuser real => line => 20 pass => NNwEdL/U3qYwU sline => 20 uid => 1000 change => 14032 min => expire => gid => 10 Contents of User hash after replacing $pass but before saving num => 20 inactive => max => warn => user => testuser shell => /bin/sh home => /export/home/testuser real => line => 20 pass => TN4xb4vuWbxc6 sline => 20 uid => 1000 change => 14032 min => expire => gid => 10 Reread the %ulist has for the user "Still has the old password" num => 20 inactive => max => warn => user => testuser shell => /bin/sh home => /export/home/testuser real => line => 20 pass => NNwEdL/U3qYwU sline => 20 uid => 1000 change => 14032 min => expire => gid => 10 Any help on this would be much appriciated. |
From: Jamie C. <jca...@we...> - 2008-05-31 05:55:28
|
Hi Fran, Webmin is pretty flexible in what it lets you do in your .cgi scripts, although the further you get away from the 'standard' (which I admit is itself non-standard in Perl terms), the harder it can be to call other modules or make use of Webmin's access control systems and API. Some things that are quite safe are using 'use CGI' instead of ReadParse and generating output with HTML::Template. However, if you don't use web-lib.pl in the normal way or skip calling init_config, some features of Webmin won't work, such as module-level access control and checking for links from dangerous referers. Other developers could probably comment better here though, as being the author of Webmin I have always pretty much stuck to my own standards for core and non-core modules :-) - Jamie On 30/May/2008 12:35 Fran Fabrizio wrote .. > > I've just inherited a half-dozen or so custom modules from a team member > who departed. Looking at his code, it seems that he did not really > adhere to the style found in the documentation for module developers. > For instance, each module has its own perl module (ex. Cisweb.pm) and > therefore its own namespace. He also does 'use strict' in all of his > .pm and .cgi files, imports the module via use instead of require, > doesn't use the %config hash, uses CGI.pm instead of ReadParse, he's > used HTML::Template to separate HTML from logic, and so on. > > I'd like to bring this code back in line with more standard webmin > module development practices, and I'm trying to decide the best way to > rework this code. Some of the things he's done aren't inherently bad > yet create difficulty in the webmin environment. I like the idea of > using .pm's and therefore private namespaces, but this does complicate > matters a bit because any require '../web-lib.pl' stuff is now going to > populate the private namespace instead. I like the idea of doing use > strict, but this means I'm then going to need to do use vars qw(%config > %in) if I want to do things like ReadParse and init_config(). I like > the idea of HTML::Template, and that actually seems to work pretty > cleanly as-is. Nevertheless, it's all seeming a bit messy. :-) > > So my question is simply whether anyone has developed an alternative set > of practices to what's in the module devel docs that incorporates some > of these practices. I understand that a lot of webmin's style is > "dated" because of the desire to support as many platforms and > environments as possible, but I have full control over the environment > I'm running in and actually would prefer to do this with modules and > perhaps ultimately more of an OO style of coding, and I always prefer to > do use strict, and suppose I will even with the use vars qw() extra > legwork. I'm just curious if any of the more seasoned module devels > have suggestions about how to bridge webmin's style with what I'm more > used to seeing in my perl experience. |