You can subscribe to this list here.
| 2001 |
Jan
(39) |
Feb
(258) |
Mar
(396) |
Apr
(439) |
May
(337) |
Jun
(351) |
Jul
(296) |
Aug
(205) |
Sep
(328) |
Oct
(174) |
Nov
(252) |
Dec
(172) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(213) |
Feb
(194) |
Mar
(337) |
Apr
(314) |
May
(373) |
Jun
(522) |
Jul
(417) |
Aug
(471) |
Sep
(486) |
Oct
(422) |
Nov
(274) |
Dec
(299) |
| 2003 |
Jan
(354) |
Feb
(310) |
Mar
(379) |
Apr
(349) |
May
(388) |
Jun
(218) |
Jul
(368) |
Aug
(340) |
Sep
(222) |
Oct
(176) |
Nov
(214) |
Dec
(211) |
| 2004 |
Jan
(221) |
Feb
(187) |
Mar
(190) |
Apr
(211) |
May
(114) |
Jun
(136) |
Jul
(124) |
Aug
(178) |
Sep
(244) |
Oct
(203) |
Nov
(215) |
Dec
(156) |
| 2005 |
Jan
(334) |
Feb
(268) |
Mar
(302) |
Apr
(309) |
May
(192) |
Jun
(288) |
Jul
(273) |
Aug
(215) |
Sep
(318) |
Oct
(347) |
Nov
(226) |
Dec
(265) |
| 2006 |
Jan
(192) |
Feb
(227) |
Mar
(311) |
Apr
(197) |
May
(224) |
Jun
(213) |
Jul
(285) |
Aug
(227) |
Sep
(190) |
Oct
(209) |
Nov
(169) |
Dec
(174) |
| 2007 |
Jan
(149) |
Feb
(112) |
Mar
(144) |
Apr
(204) |
May
(178) |
Jun
(155) |
Jul
(246) |
Aug
(221) |
Sep
(187) |
Oct
(262) |
Nov
(163) |
Dec
(158) |
| 2008 |
Jan
(256) |
Feb
(318) |
Mar
(307) |
Apr
(237) |
May
(202) |
Jun
(105) |
Jul
(131) |
Aug
(107) |
Sep
(153) |
Oct
(165) |
Nov
(159) |
Dec
(189) |
| 2009 |
Jan
(202) |
Feb
(150) |
Mar
(151) |
Apr
(132) |
May
(56) |
Jun
(115) |
Jul
(103) |
Aug
(150) |
Sep
(141) |
Oct
(187) |
Nov
(154) |
Dec
(105) |
| 2010 |
Jan
(128) |
Feb
(83) |
Mar
(64) |
Apr
(37) |
May
(92) |
Jun
(91) |
Jul
(90) |
Aug
(145) |
Sep
(53) |
Oct
(69) |
Nov
(98) |
Dec
(149) |
| 2011 |
Jan
(44) |
Feb
(99) |
Mar
(70) |
Apr
(78) |
May
(138) |
Jun
(132) |
Jul
(151) |
Aug
(146) |
Sep
(107) |
Oct
(168) |
Nov
(88) |
Dec
(94) |
| 2012 |
Jan
(51) |
Feb
(153) |
Mar
(141) |
Apr
(102) |
May
(79) |
Jun
(63) |
Jul
(87) |
Aug
(39) |
Sep
(67) |
Oct
(84) |
Nov
(57) |
Dec
(31) |
| 2013 |
Jan
(55) |
Feb
(96) |
Mar
(79) |
Apr
(33) |
May
(53) |
Jun
(63) |
Jul
(57) |
Aug
(76) |
Sep
(39) |
Oct
(47) |
Nov
(68) |
Dec
(61) |
| 2014 |
Jan
(26) |
Feb
(98) |
Mar
(29) |
Apr
(57) |
May
(58) |
Jun
(51) |
Jul
(34) |
Aug
(26) |
Sep
(69) |
Oct
(81) |
Nov
(52) |
Dec
(48) |
| 2015 |
Jan
(67) |
Feb
(18) |
Mar
(92) |
Apr
(32) |
May
(37) |
Jun
(21) |
Jul
(26) |
Aug
(28) |
Sep
(6) |
Oct
(24) |
Nov
(35) |
Dec
(34) |
| 2016 |
Jan
(16) |
Feb
(24) |
Mar
(49) |
Apr
(11) |
May
(37) |
Jun
(68) |
Jul
(35) |
Aug
(24) |
Sep
(35) |
Oct
(63) |
Nov
(20) |
Dec
(26) |
| 2017 |
Jan
(98) |
Feb
(82) |
Mar
(42) |
Apr
(62) |
May
(55) |
Jun
(28) |
Jul
(17) |
Aug
(13) |
Sep
(4) |
Oct
(11) |
Nov
(6) |
Dec
(17) |
| 2018 |
Jan
(22) |
Feb
(6) |
Mar
(16) |
Apr
(9) |
May
(20) |
Jun
(25) |
Jul
(15) |
Aug
(10) |
Sep
(6) |
Oct
(2) |
Nov
(14) |
Dec
(25) |
| 2019 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(4) |
May
(13) |
Jun
(8) |
Jul
(14) |
Aug
(36) |
Sep
(10) |
Oct
(27) |
Nov
(5) |
Dec
|
| 2020 |
Jan
(10) |
Feb
(4) |
Mar
|
Apr
(1) |
May
(2) |
Jun
(3) |
Jul
(4) |
Aug
(11) |
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
(12) |
| 2021 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
(6) |
May
(8) |
Jun
(2) |
Jul
(1) |
Aug
(7) |
Sep
(3) |
Oct
(23) |
Nov
(10) |
Dec
(17) |
| 2022 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(6) |
Jun
(5) |
Jul
(27) |
Aug
(5) |
Sep
(3) |
Oct
(9) |
Nov
(3) |
Dec
(11) |
| 2023 |
Jan
(13) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(4) |
Jun
(9) |
Jul
|
Aug
(17) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
| 2025 |
Jan
(2) |
Feb
(6) |
Mar
(4) |
Apr
(10) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(2) |
| 2026 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Jamie C. <jca...@we...> - 2006-07-20 19:30:35
|
On 11/Jul/2006 22:41 Jamie Cameron wrote .. > Hi everyone, > > If you run Webmin on a Debian or Ubuntu system, a new .deb package > is available from : > http://prdownloads.sourceforge.net/webadmin/webmin_1.290.deb > > Unlike previous Debian packages of Webmin, this one was created by > me and so includes the latest Webmin release. It also puts all standard > modules into a single package, just like the RPM and tar.gz distributions. > > This will eventually make its way into Debian's APT repository, > but I am releasing it on www.webmin.com first for testing purposes. > > Upgrading from the old Debian package of Webmin *should* work, but > has not been fully tested. An update on Webmin for Debian - a new package is available from http://download.webmin.com/devel/deb/ which uses a more Debian-ish base directory, and supports distros like Ubuntu that don't allow root logins. Also, I've created a script for packaging up a module as a .deb file, available from http://www.webmin.com/makemoduledeb.pl . It's handy for module authors or re-distributors focusing on Debian.. - Jamie |
|
From: Jamie C. <jca...@we...> - 2006-07-20 16:41:27
|
That would be quite tricky, as for Webmin to be able to edit
the config file it would need to 'undo' the M4 substitions, which
is near impossible.
Solaris uses M4 in its syslog.conf file, but to handle this Webmin
runs the file through M4 the first time you open the module, to
expand all M4 directives. I could do this for Mon as well, but it
would really defeat the purpose of using M4 in the first place, and
would probably annoy users who want to save their M4 directives!
So basically, Mon+M4 is incompatible with Webmin :-(
- Jamie
On 20/Jul/2006 06:31 Tim Carr wrote ..
>
> Jamie - one other request...
>
> Mon supports the usage of m4 for their config files. Would it be
> possible to integrate that support into Webmin as well?
>
> Thanks,
> Tim
>
> -----Original Message-----
> From: web...@li...
> [mailto:web...@li...] On Behalf Of Jamie
> Cameron
> Sent: Friday, July 14, 2006 3:23 PM
> To: Webmin users list
> Subject: Re: [webmin-l] Question about the MON monitoring component
>
> On 14/Jul/2006 12:28 Tim Carr wrote ..
> > Here's a snippet of my mon config (posted below).
> >
> >
> >
> > The man output for the redistribute option is:
> >
> >
> >
> > redistribute alert [arg...]
> >
> > A service may have one redistribute option, which is a special form
> > of an alert definition.
> >
> > This alert will be called on every service status update, even
> > sequential success status
> >
> > updates. This can be used to integrate Mon with another monitoring
> > system, or to link together
> >
> > multiple Mon servers via an alert script that generates Mon traps.
> > See the "ALERT PROGRAMS"
> >
> > section above for a list of the parameters mon will pass
> > automatically to alert programs.
> >
> >
> >
> > So basically, I'm using the command "redistribute trap.alert
> > mainmonitor" to send whatever the
> >
> > latest status check (via trap.alert) is for each of my services to my
> > main monitoring server
> >
> > (with a hostname of mainmonitor).
> >
> >
> >
> >
> >
> > Config file:
> >
> >
> >
> > #
> >
> > # Global Options
> >
> > #
> >
> >
> >
> > alertdir= /opt/mon/alert.d
> >
> > mondir = /opt/mon/mon.d
> >
> > logdir = /var/log/mon
> >
> > historicfile = /var/log/mon/history
> >
> > maxprocs = 20
> >
> > histlength = 100
> >
> > randstart = 60s
> >
> >
> >
> > #
> >
> > # Downtime logging
> >
> > #
> >
> >
> >
> > dtlogging = yes
> >
> > dtlogfile = /var/log/mon/mondtlog
> >
> >
> >
> > #
> >
> > # define groups of hosts to monitor
> >
> > #
> >
> >
> >
> > hostgroup Store13-1 myip
> >
> >
> >
> >
> >
> > watch Store13-1
> >
> > service Ping_Myself
> >
> > interval 1m
> >
> > monitor fping.monitor
> >
> > description Can I ping myself?
> >
> > redistribute trap.alert mainmonitor
> >
> > period wd {Mon-Sun}
> >
> > alert trap.alert mainmonitor
> >
> > upalert trap.alert mainmonitor
> >
> > service Freespace_Root_80
> >
> > interval 1m
> >
> > monitor freespace.monitor /:20%
> >
> > description Check for at least 20% free space on the root
> > partition
> >
> > redistribute trap.alert mainmonitor
> >
> > period wd {Mon-Sun}
> >
> > alert trap.alert mainmonitor
> >
> > upalert trap.alert mainmonitor
> >
>
> Thanks for the info - I will update the next Webmin release to
> handle this format. In the short term, you can edit the file
> mon/mon-lib.pl
> under the Webmin root directory, and change line 16 to :
>
> 'failure_interval', 'redistribute' ],
>
> - Jamie
>
>
> ------------------------------------------------------------------------
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> -
> Forwarded by the Webmin mailing list at
> web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> -
> Forwarded by the Webmin mailing list at web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
|
|
From: Tim C. <TC...@Bu...> - 2006-07-20 13:31:06
|
Jamie - one other request...
Mon supports the usage of m4 for their config files. Would it be
possible to integrate that support into Webmin as well? =20
Thanks,
Tim
-----Original Message-----
From: web...@li...
[mailto:web...@li...] On Behalf Of Jamie
Cameron
Sent: Friday, July 14, 2006 3:23 PM
To: Webmin users list
Subject: Re: [webmin-l] Question about the MON monitoring component
On 14/Jul/2006 12:28 Tim Carr wrote ..
> Here's a snippet of my mon config (posted below).
>=20
> =20
>=20
> The man output for the redistribute option is:
>=20
> =20
>=20
> redistribute alert [arg...]
>=20
> A service may have one redistribute option, which is a special form
> of an alert definition.
>=20
> This alert will be called on every service status update, even
> sequential success status
>=20
> updates. This can be used to integrate Mon with another monitoring
> system, or to link together
>=20
> multiple Mon servers via an alert script that generates Mon traps.
> See the "ALERT PROGRAMS"
>=20
> section above for a list of the parameters mon will pass
> automatically to alert programs.
>=20
> =20
>=20
> So basically, I'm using the command "redistribute trap.alert
> mainmonitor" to send whatever the=20
>=20
> latest status check (via trap.alert) is for each of my services to my
> main monitoring server
>=20
> (with a hostname of mainmonitor).
>=20
> =20
>=20
> =20
>=20
> Config file:
>=20
> =20
>=20
> #
>=20
> # Global Options
>=20
> #
>=20
> =20
>=20
> alertdir=3D /opt/mon/alert.d
>=20
> mondir =3D /opt/mon/mon.d
>=20
> logdir =3D /var/log/mon
>=20
> historicfile =3D /var/log/mon/history
>=20
> maxprocs =3D 20
>=20
> histlength =3D 100
>=20
> randstart =3D 60s
>=20
> =20
>=20
> #
>=20
> # Downtime logging
>=20
> #
>=20
> =20
>=20
> dtlogging =3D yes
>=20
> dtlogfile =3D /var/log/mon/mondtlog
>=20
> =20
>=20
> #
>=20
> # define groups of hosts to monitor
>=20
> #
>=20
> =20
>=20
> hostgroup Store13-1 myip
>=20
> =20
>=20
> =20
>=20
> watch Store13-1
>=20
> service Ping_Myself
>=20
> interval 1m
>=20
> monitor fping.monitor
>=20
> description Can I ping myself?
>=20
> redistribute trap.alert mainmonitor
>=20
> period wd {Mon-Sun}
>=20
> alert trap.alert mainmonitor
>=20
> upalert trap.alert mainmonitor
>=20
> service Freespace_Root_80
>=20
> interval 1m
>=20
> monitor freespace.monitor /:20%
>=20
> description Check for at least 20% free space on the root
> partition
>=20
> redistribute trap.alert mainmonitor
>=20
> period wd {Mon-Sun}
>=20
> alert trap.alert mainmonitor
>=20
> upalert trap.alert mainmonitor
>=20
Thanks for the info - I will update the next Webmin release to
handle this format. In the short term, you can edit the file
mon/mon-lib.pl
under the Webmin root directory, and change line 16 to :
'failure_interval', 'redistribute' ],
- Jamie
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
-
Forwarded by the Webmin mailing list at
web...@li...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
|
|
From: Murray T. <mtr...@ce...> - 2006-07-20 02:02:06
|
Hi Jamie,
Thanks for all your modifications to this module to date. I haven't
asked for anything for a while so here goes :-) The module currently
has a hard coded IMAP quota value in its config which has been fine
until now. We now need to create different classes of users with
different IMAP quotas. We use the Cyrus IMAP module for maintaining
user mailboxes but want to keep the user creation process to a single
step. An IMAP quota field in the user creation/edit screen that can
override the module's default IMAP quota would be really helpful.
It appears you use the NET::IMAP perl module in ldap-useradmin-lib.pl.
The code you use to set the user's quota in save_user.cgi is:
if ($config{'quota'}) {
# Set his IMAP quota
$rv = $imap->setquota("user.".$user,
"STORAGE", $config{'quota'});
$rv->{'Status'} eq 'ok' ||
&imap_error($text{'usave_eiquota'}, $rv);
}
I would assume you could use the getquota function described below to
get the current quota on the mailbox.
http://search.cpan.org/~kjohnson/NetxAP-0.02/Net/IMAP.pm#getquota_%
24quotaroot
Hope you're not too busy to have a look at this one if you think it's a
reasonable idea.
Thanks
Murray
|
|
From: Murray T. <mtr...@ce...> - 2006-07-20 01:21:59
|
On Wed, 2006-07-19 at 15:06 -0600, Anthony Chavez wrote: > Anthony Chavez <ac...@an...> writes: > > > Hello, webadmin-list! > > > > I've currently got 3 deployments of Webmin (1.290, 1.260, and 1.250) > > in conjuction with Samba 3.0.22 on FreeBSD 6.0-RELEASE-p4. > > > > I recently performed a successful upgrade from OpenLDAP version 2.2.30 > > to 2.3.24. After the upgrade was performed, two problems with the > > LDAP Users and Groups module have surfaced on each of these > > deployments. > > It would appear that there is some sort of incompatibility with the > ACLs that I was using in my OpenLDAP 2.2 configuration (which used the > deprecatd attr= syntax, and was chnaged to attrs= during the upgrade) > that were not portable to 2.3. Webmin does not appear to be at > fault after all. ;-) This rings a bell - I think I came across the attr(s) issue going from SuSE 10.0 to SuSE 10.1. Murray |
|
From: Anthony C. <ac...@an...> - 2006-07-19 21:07:30
|
Anthony Chavez <ac...@an...> writes: > Hello, webadmin-list! > > I've currently got 3 deployments of Webmin (1.290, 1.260, and 1.250) > in conjuction with Samba 3.0.22 on FreeBSD 6.0-RELEASE-p4. > > I recently performed a successful upgrade from OpenLDAP version 2.2.30 > to 2.3.24. After the upgrade was performed, two problems with the > LDAP Users and Groups module have surfaced on each of these > deployments. It would appear that there is some sort of incompatibility with the ACLs that I was using in my OpenLDAP 2.2 configuration (which used the deprecatd attr= syntax, and was chnaged to attrs= during the upgrade) that were not portable to 2.3. Webmin does not appear to be at fault after all. ;-) -- Anthony Chavez http://anthonychavez.org/ mailto:ac...@an... jabber:ac...@ja... |
|
From: Anthony C. <ac...@an...> - 2006-07-19 16:53:43
|
Hello, webadmin-list!
I've currently got 3 deployments of Webmin (1.290, 1.260, and 1.250)
in conjuction with Samba 3.0.22 on FreeBSD 6.0-RELEASE-p4.
I recently performed a successful upgrade from OpenLDAP version 2.2.30
to 2.3.24. After the upgrade was performed, two problems with the
LDAP Users and Groups module have surfaced on each of these
deployments.
1. I can no longer add users.
Initially, each of the deployments give me the same error:
Failed to save user : Failed to add user to LDAP database : object
class 'inetOrgPerson' requires attribute 'sn'
After doing a bit of research, I discovered that most users have
been working around this by configuring "sn: ${USER}" or "sn:
${REAL}" as an additional attribute for new users. Not satisfied
with this solution (since I want the user's actual *surname* to be
in the *surname* attribute), I decided to try upgrading Webmin and
its dependencies and reconfigure the module. So I upgraded the
first box (which is how it became 1.290---it was 1.250 previously,
IIRC), rm'ed /usr/local/etc/webmin/ldap-useradmin/config, re-ran
/usr/local/lib/webmin/setup.sh (to regenerate the base config), and
set it back up. This eliminated the need to specify the sn
attribute, but now I'm seeing this:
Failed to save user : Failed to add user to LDAP database : object
class 'sambaSamAccount' requires attribute 'sambaSID'
Now here's the *really* bizarre thing. If I analyze the traffic
between miniserv.pl and slapd, I see that no sambaSamAccount
attributes are ever being sent over the wire. I can see all of the
objectClasses (posixAccount, shadowAccount, inetLocalMailRecipient,
sambaSamAccount, and inetOrgPerson). The associated attributes for
each of these objectClasses are being delivered, with the exception
of those for sambaSamAccount.
We've been patching Webmin to enable us to use SSHA1 password
hashes as well as use some slightly different SIDs, which AFAIK,
are perfectly legal according to the SMB protocol. I've attached
the (highly experimental and very crude!) patch below. I haven't
tried removing the patch just yet as I've got to turn my attention
to another very crucial project, but I will be doing so next week
sometime.
I've also included my ldap-useradmin config file, which could be
the source of our problems.
2. The NTLM password hash is not being stored.
It would seem that this is another effect of whatever is causing
the problem with issue #1 mentioned previously. The same symptoms
are exhibited: the UserPassword attribute is transmitted, but the
NTPassword and LMPassword attributes are not.
However, if I use /usr/local/sbin/smbldap-passwd (from the
smbldap-tools 0.9.1 package), UnixPassword, NTPassword, and
LMPassword all get updated properly. This is strong evidence that
the problem lies somewhere within Webmin.
We would very much appreciate to hear from somebody regarding this
issue, as one of the deployments normally sees a fair amount of new
users.
Cheers!
--
Anthony Chavez http://anthonychavez.org/
mailto:ac...@an... jabber:ac...@ja...
--8<---------------cut here---------------start------------->8---
diff -ru /home/acc/bak/ldap-useradmin-1.290/config ldap-useradmin/config
--- /home/acc/bak/ldap-useradmin-1.290/config Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config Sat Jul 8 08:34:23 2006
@@ -3,7 +3,7 @@
samba_class=sambaAccount
imap_class=SuSEeMailObject
imap_folders=old public sent-mail
-md5=0
+pw_encrypt=0
given=0
slappasswd=slappasswd
samba_def=0
diff -ru /home/acc/bak/ldap-useradmin-1.290/config-*-linux ldap-useradmin/config-*-linux
--- /home/acc/bak/ldap-useradmin-1.290/config-*-linux Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config-*-linux Sat Jul 8 08:34:23 2006
@@ -3,7 +3,7 @@
samba_class=sambaAccount
imap_class=SuSEeMailObject
imap_folders=old public sent-mail
-md5=0
+pw_encrypt=0
given=0
slappasswd=slappasswd
samba_def=0
diff -ru /home/acc/bak/ldap-useradmin-1.290/config-*-linux.orig ldap-useradmin/config-*-linux.orig
--- /home/acc/bak/ldap-useradmin-1.290/config-*-linux.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/config-*-linux.orig Sat Jul 8 08:26:24 2006
@@ -14,3 +14,5 @@
secmode=0
imap_folderalt=1
samba_gclass=sambaGroup
+alias_same=0
+given_class=inetOrgPerson
diff -ru /home/acc/bak/ldap-useradmin-1.290/config-debian-squirrelmail-linux ldap-useradmin/config-debian-squirrelmail-linux
--- /home/acc/bak/ldap-useradmin-1.290/config-debian-squirrelmail-linux Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config-debian-squirrelmail-linux Sat Jul 8 08:34:23 2006
@@ -3,7 +3,7 @@
samba_class=sambaSamAccount
imap_class=SquirrelMailUser inetLocalMailRecipient
imap_folders=old public sent-mail
-md5=0
+pw_encrypt=0
given=0
slappasswd=slappasswd
maillocaladdress=mailLocalAddress
diff -ru /home/acc/bak/ldap-useradmin-1.290/config-debian-squirrelmail-linux.orig ldap-useradmin/config-debian-squirrelmail-linux.orig
--- /home/acc/bak/ldap-useradmin-1.290/config-debian-squirrelmail-linux.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/config-debian-squirrelmail-linux.orig Sat Jul 8 08:26:24 2006
@@ -19,3 +19,5 @@
shells=fixed,ldap,passwd,shells
secmode=0
samba_gclass=sambaGroup
+alias_same=0
+given_class=inetOrgPerson
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info ldap-useradmin/config.info
--- /home/acc/bak/ldap-useradmin-1.290/config.info Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config.info Sat Jul 8 08:34:23 2006
@@ -32,7 +32,7 @@
line6=New user options,11
base_uid=Lowest UID for new users,3,From Users and Groups module
base_gid=Lowest GID for new groups,3,From Users and Groups module
-md5=Encryption method for passwords,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text
+pw_encrypt=Encryption method for passwords,1,5-LDAP SSHA,4-LDAP SHA,3-LDAP MD5,1-Unix MD5,0-crypt,2-Plain text
shells=Build list of shells from,2,fixed-Builtin list,passwd-System users,shells-/etc/shells
secmode=Show secondary groups on user form?,1,0-Yes,1-No
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info.ca ldap-useradmin/config.info.ca
--- /home/acc/bak/ldap-useradmin-1.290/config.info.ca Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config.info.ca Sat Jul 8 08:34:23 2006
@@ -32,7 +32,7 @@
line6=Opcions d'usuari nou,11
base_uid=UID més baix per a usuaris nous,3,Del mòdul d'Usuaris i Grups
base_gid=GID més baix per a grups nous,3,Del mòdul d'Usuaris i Grups
-md5=Mètode de xifratge de les contrasenyes,1,3-LDAP MD5,1-MD5 de Unix,0-crypt,2-Text planer
+pw_encrypt=Mètode de xifratge de les contrasenyes,1,5-LDAP SSHA,4-LDAP SHA,3-LDAP MD5,1-MD5 de Unix,0-crypt,2-Text planer
shells=Construeix la llista de shells de,2,fixed-Llista integrada,passwd-Usuaris del sistema,shells-/etc/shells
secmode=Mostra els grups secundaris al formulari de l'usuari,1,0-Sí,1-No
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info.ca.orig ldap-useradmin/config.info.ca.orig
--- /home/acc/bak/ldap-useradmin-1.290/config.info.ca.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/config.info.ca.orig Sat Jul 8 08:26:24 2006
@@ -10,6 +10,7 @@
other_class=Altres objectClasses per afegir als usuaris nous,0
gother_class=Altres objectClasses per afegir als grups nous,0
given=Mostra els camps per al nom i cognom donats,1,1-Sí,0-No
+given_class=Classe d'objectes a afegir per al nom donat,0
slappasswd=Camí complet del programa <tt>slappasswd</tt>,0
line9=Atributs LDAP,11
@@ -20,6 +21,7 @@
group_mod_props=Propietats LDAP per als grups modificats,9,40,3,\t
group_fields=Propietats extra de grups LDAP per permetre l'edició de<br>(AL format de <i>fieldname</i> <i>description</i>),9,40,3,\t
multi_fields=Permet valors múltiples a les propietats extra,1,1-Sí,0-No
+noclash=Atributs que no permeten duplicats,0
line5=Opcions del directori arrel,11
homedir_perms=Permisos dels nous directoris arrel,3,Del mòdul d'Usuaris i Grups
@@ -56,7 +58,8 @@
samba_def=Activa el compte Samba per defecte,1,1-Sí,0-No
samba_domain=Domini SID de Samba3,0
samba_props=Propietats LDAP per als nous usuaris de Samba,9,40,3,\t
-samba_gclass=Classe d'objectes LDAP dels grups de Samba,0
+samba_gclass=Classe d'objectes LDAP dels grups de Samba,10,-sambaGroup (Samba 2),sambaSamGroup-sambaSamGroup (esquema antic Samba 3),sambaGroupMapping-sambaGroupMapping (Esquema nou Samba 3),Una altra
+samba_gid=SID del grup primari,10,none-Cap,-Dedueix-lo automàticament
line3=Opcions del servidor IMAP Cyrus,11
imap_class=Classe d'objecte LDAP per als usuaris d'IMAP,0
@@ -70,8 +73,9 @@
domain=Domini de correu de l'atribut de correu,3,No afegeixis atributs de correu
mailfmt=Format de l'adreá de correu,1,0-cognom.nom@domini,1-usuari@domini
quota=Quota per defecte dels nous usuaris de Cyrus,3,Cap
-addressbook=Base de la llibreta d'adreces,3,Cap
+addressbook=Base de la llibreta d'adreces,3,Cap,,,Kb
maillocaladdress=Atribut dels àlies de correu,3,Per defecte (alias)
+alias_same=Dos usuaris poden tenir el mateix àlies,1,1-Sí,0-No
line4=Ordres abans i després,11
pre_command=Ordre a executar abans de fer els canvis,0
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info.de ldap-useradmin/config.info.de
--- /home/acc/bak/ldap-useradmin-1.290/config.info.de Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config.info.de Sat Jul 8 08:34:23 2006
@@ -27,7 +27,7 @@
line6=Optionen für neue Benutzer,11
base_uid=Niedrigste UID für neue Benutzer,3,Aus dem Benutzer- und Gruppenmodul
base_gid=Niedrigste GID für neue Gruppen,3,Aus dem Benutzer- und Gruppenmodul
-md5=Verschlüsselungsmethodik für Passworte,1,3-LDAP MD5,1-Unix MD5,0-cryp,2-Einfacher Text
+pw_encrypt=Verschlüsselungsmethodik für Passworte,1,5-LDAP SSHA,4-LDAP SHA,3-LDAP MD5,1-Unix MD5,0-cryp,2-Einfacher Text
shells=Baue eine Liste der Shells aus,2,fixed-Eingebaute Liste,passwd-Systembenutzer,shells-/etc/shells
secmode=Zeige sekundäre Gruppen auf dem Benutzerformular?,0-Ja,1-Nein
line7=Standards für neue Benutzer,11
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info.es ldap-useradmin/config.info.es
--- /home/acc/bak/ldap-useradmin-1.290/config.info.es Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/config.info.es Sat Jul 8 08:34:23 2006
@@ -27,7 +27,7 @@
line6=Opciones de usuario nuevo,11
base_uid=UID menor para nuevos usuarios,3,Del módulo de Usuarios y Grupos
base_gid=GID menor para nuevos grupos,3,Del módulo de Usuarios y Grupos
-md5=Método de encriptación de contraseñas,1,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto plano
+pw_encrypt=Método de encriptación de contraseñas,1,5-LDAP SSHA,4-LDAP SHA,3-LDAP MD5,1-Unix MD5,0-crypt,2-Texto plano
shells=Construir lista de shells desde,2,fijada-Lista original,passwd-Usuarios de sistema,shells-/etc/shells
secmode=¿Mostrar grupos secundarios en el formulario de usuario?,1,0-Sí,1-No
line7=Conf. por defecto de nuevo usuario,11
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.info.orig ldap-useradmin/config.info.orig
--- /home/acc/bak/ldap-useradmin-1.290/config.info.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/config.info.orig Sat Jul 8 08:26:24 2006
@@ -10,6 +10,7 @@
other_class=Other objectClasses to add to new users,0
gother_class=Other objectClasses to add to new groups,0
given=Show fields for given name and surname?,1,1-Yes,0-No
+given_class=Object class to add for given name?,0
slappasswd=Full path to <tt>slappasswd</tt> program,0
line9=LDAP attributes,11
@@ -20,6 +21,7 @@
group_mod_props=LDAP properties for modified groups,9,40,3,\t
group_fields=Extra LDAP group properties to allow editing of<br>(In <i>fieldname</i> <i>description</i> format),9,40,3,\t
multi_fields=Allow multiple values for extra properties?,1,1-Yes,0-No
+noclash=Attributes for which duplicates are disallowed,0
line5=Home directory options,11
homedir_perms=Permissions on new home directories,3,From Users and Groups module
@@ -56,7 +58,8 @@
samba_def=Enabled Samba account by default?,1,1-Yes,0-No
samba_domain=Domain SID for Samba3,0
samba_props=LDAP properties for new Samba users,9,40,3,\t
-samba_gclass=LDAP object class for Samba groups,0
+samba_gclass=LDAP object class for Samba groups,10,-sambaGroup (Samba 2),sambaSamGroup-sambaSamGroup (Samba 3 old schema),sambaGroupMapping-sambaGroupMapping (Samba 3 new schema),Other
+samba_gid=Primary group SID,10,none-None,-Work out automatically
line3=Cyrus IMAP server options,11
imap_class=LDAP object class for IMAP users,0
@@ -70,8 +73,9 @@
domain=Email domain for mail attribute,0,Don't add mail attributes
mailfmt=Email address format,1,0-firstname.surname@domain,1-username@domain
addressbook=Address book base,3,None
-quota=Default quota for new Cyrus users,3,None
+quota=Default quota for new Cyrus users,3,None,,,kB
maillocaladdress=Attribute for mail aliases,3,Default (alias)
+alias_same=Can two users have the same alias?,1,1-Yes,0-No
line4=Before and after commands,11
pre_command=Command to run before making changes,0
diff -ru /home/acc/bak/ldap-useradmin-1.290/config.orig ldap-useradmin/config.orig
--- /home/acc/bak/ldap-useradmin-1.290/config.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/config.orig Sat Jul 8 08:26:24 2006
@@ -14,3 +14,5 @@
secmode=0
imap_folderalt=1
samba_gclass=sambaGroup
+alias_same=0
+given_class=inetOrgPerson
diff -ru /home/acc/bak/ldap-useradmin-1.290/edit_group.cgi ldap-useradmin/edit_group.cgi
--- /home/acc/bak/ldap-useradmin-1.290/edit_group.cgi Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/edit_group.cgi Sat Jul 8 08:34:23 2006
@@ -85,10 +85,18 @@
print "<tr $cb> <td><table width=100%>\n";
print "<tr> <td><b>$text{'gedit_samba'}</b></td>\n";
-printf "<td><input type=radio name=samba value=1 %s> %s\n",
- $oclass{$samba_group_class} ? "checked" : "", $text{'yes'};
-printf "<input type=radio name=samba value=0 %s> %s</td>\n",
- $oclass{$samba_group_class} ? "" : "checked", $text{'no'};
+if ($in{'new'}) {
+ printf "<td><input type=radio name=samba value=1 %s> %s\n",
+ $samba_group_class ? "checked" : "", $text{'yes'};
+ printf "<input type=radio name=samba value=0 %s> %s</td>\n",
+ $samba_group_class ? "" : "checked", $text{'no'};
+}
+else {
+ printf "<td><input type=radio name=samba value=1 %s> %s\n",
+ $oclass{$samba_group_class} ? "checked" : "", $text{'yes'};
+ printf "<input type=radio name=samba value=0 %s> %s</td>\n",
+ $oclass{$samba_group_class} ? "" : "checked", $text{'no'};
+}
print "<td colspan=2 width=50%></td>\n";
diff -ru /home/acc/bak/ldap-useradmin-1.290/ldap-useradmin-lib.pl ldap-useradmin/ldap-useradmin-lib.pl
--- /home/acc/bak/ldap-useradmin-1.290/ldap-useradmin-lib.pl Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/ldap-useradmin-lib.pl Sat Jul 8 09:03:55 2006
@@ -191,20 +191,23 @@
{
local ($pass, $salt) = @_;
&seed_random();
-if ($config{'md5'} == 3) {
- # LDAP MD5 encryption
+if ($config{'pw_encrypt'} == 5 || $config{'pw_encrypt'} == 4 ||
+ $config{'pw_encrypt'} == 3) {
+ # LDAP encryption
local $qp = quotemeta($pass);
- local $out = `$config{'slappasswd'} -h '{md5}' -s $qp 2>/dev/null`;
+ local $hash = $config{'pw_encrypt'} == 5 ? "ssha" :
+ $config{'pw_encrypt'} == 4 ? "sha" : "md5";
+ local $out = `$config{'slappasswd'} -h '{$hash}' -s $qp 2>/dev/null`;
$out =~ s/\s+$//;
- $out =~ s/^\{md5\}//i;
+ $out =~ s/^\{$hash\}//i;
return $out;
}
-if ($config{'md5'} == 1) {
+if ($config{'pw_encrypt'} == 1) {
# Unix MD5 encryption
&foreign_require("useradmin", "user-lib.pl");
return &useradmin::encrypt_md5($pass, $salt);
}
-elsif ($config{'md5'} == 0) {
+elsif ($config{'pw_encrypt'} == 0) {
# Standard Unix crypt
$salt ||= chr(int(rand(26))+65).chr(int(rand(26))+65);
return &unix_crypt($pass, $salt);
@@ -435,8 +438,11 @@
sub user_to_dn
{
local $pfx = $_[0]->{'pass'} =~ /^\{[a-z0-9]+\}/i ? undef :
- $config{'md5'} == 1 || $config{'md5'} == 3 ? "{md5}" :
- $config{'md5'} == 0 ? "{crypt}" : "";
+ $config{'pw_encrypt'} == 5 ? "{ssha}" :
+ $config{'pw_encrypt'} == 4 ? "{sha}" :
+ $config{'pw_encrypt'} == 1 || $config{'pw_encrypt'} == 3 ?
+ "{md5}" :
+ $config{'pw_encrypt'} == 0 ? "{crypt}" : "";
local $pass = $_[0]->{'pass'};
local $disabled;
if ($pass =~ s/^\!//) {
@@ -988,12 +994,23 @@
if (&in_schema($schema, "sambaSID") &&
$samba_schema == 3);
- push(@$props, "sambaPrimaryGroupSID",
+ if (&in_schema($schema, "sambaPrimaryGroupSID") &&
+ $samba_schema == 3 &&
+ $config{'samba_gid'} ne 'none') {
+ local $ldap = &ldap_connect();
+ local $base = &get_group_base();
+ local $rv = $ldap->search(base => $base,
+ filter => '(objectClass=sambaGroup)',
+ attrs => [ 'sambaSID' ]);
+ local $sid;
+ $sid = $rv->entry(0) if ($rv->count());
+ push(@$props, "sambaPrimaryGroupSID",
$config{'samba_gid'} ||
- $config{'samba_domain'}.'-'.($user->{'gid'}*2+1000))
- if (&in_schema($schema, "sambaPrimaryGroupSID") &&
- $samba_schema == 3 &&
- $config{'samba_gid'} ne 'none');
+ $sid ||
+ $config{'samba_domain'}.'-'.($user->{'gid'}*2+1001));
+ push(@$props, "sambaPrimaryGroupSID", $sid);
+ $ldap->unbind();
+ }
}
if (defined($opts)) {
diff -ru /home/acc/bak/ldap-useradmin-1.290/ldap-useradmin-lib.pl.orig ldap-useradmin/ldap-useradmin-lib.pl.orig
--- /home/acc/bak/ldap-useradmin-1.290/ldap-useradmin-lib.pl.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/ldap-useradmin-lib.pl.orig Sat Jul 8 08:26:24 2006
@@ -8,6 +8,8 @@
require '../ui-lib.pl';
&foreign_require("useradmin", "user-lib.pl");
%access = &get_module_acl();
+$useradmin::access{'udelete'} = 1; # needed for users_table / groups_table
+$useradmin::access{'gdelete'} = 1;
%utext = &load_language("useradmin");
foreach $t (keys %utext) {
@@ -30,8 +32,11 @@
$secret_file = "/etc/ldap.secret";
$samba_class = $config{'samba_class'} || "sambaAccount";
$samba_class =~ s/^\s+//; $samba_class =~ s/\s+$//;
+$samba_schema = $samba_class eq "sambaSamAccount" ? 3 : 2;
$samba_group_class = $config{'samba_gclass'} || "sambaGroup";
$samba_group_class =~ s/^\s+//; $samba_group_class =~ s/\s+$//;
+$samba_group_schema = $samba_group_class eq "sambaSamGroup" ||
+ $samba_group_class eq "sambaGroupMapping" ? 3 : 2;
$cyrus_class = $config{'imap_class'} || "SuSEeMailObject";
$cyrus_class =~ s/^\s+//; $cyrus_class =~ s/\s+$//;
@@ -181,13 +186,14 @@
return ($nt, $lm);
}
-# encrypt_password(string)
+# encrypt_password(string, [salt])
sub encrypt_password
{
+local ($pass, $salt) = @_;
&seed_random();
if ($config{'md5'} == 3) {
# LDAP MD5 encryption
- local $qp = quotemeta($_[0]);
+ local $qp = quotemeta($pass);
local $out = `$config{'slappasswd'} -h '{md5}' -s $qp 2>/dev/null`;
$out =~ s/\s+$//;
$out =~ s/^\{md5\}//i;
@@ -196,16 +202,16 @@
if ($config{'md5'} == 1) {
# Unix MD5 encryption
&foreign_require("useradmin", "user-lib.pl");
- return &useradmin::encrypt_md5($_[0]);
+ return &useradmin::encrypt_md5($pass, $salt);
}
elsif ($config{'md5'} == 0) {
# Standard Unix crypt
- local $salt = chr(int(rand(26))+65).chr(int(rand(26))+65);
- return &unix_crypt($_[0], $salt);
+ $salt ||= chr(int(rand(26))+65).chr(int(rand(26))+65);
+ return &unix_crypt($pass, $salt);
}
else {
# No encryption!
- return $_[0];
+ return $pass;
}
}
@@ -275,9 +281,9 @@
local $base = &get_user_base();
local @attrs = &user_to_dn($_[1]);
push(@attrs, &split_props($config{'mod_props'}, $_[1]));
-push(@attrs, @{$_[0]->{'ldap_attrs'}});
-if (defined($_[0]->{'ldap_class'})) {
- push(@attrs, "objectClass" => $_[0]->{'ldap_class'});
+push(@attrs, @{$_[1]->{'ldap_attrs'}});
+if (defined($_[1]->{'ldap_class'})) {
+ push(@attrs, "objectClass" => $_[1]->{'ldap_class'});
}
local $rv = $ldap->modify($_[0]->{'dn'}, replace => { @attrs });
if ($rv->code) {
@@ -407,7 +413,7 @@
'inactive' => $_[0]->get_value("shadowInactive") || "",
);
$user{'pass'} =~ s/^(\!?){[a-z0-9]+}/$1/i;
- $user{'all_ldap_attrs'} = { map { lc($_), $_[0]->get_value($_) }
+ $user{'all_ldap_attrs'} = { map { lc($_), scalar($_[0]->get_value($_)) }
$_[0]->attributes() };
$user{'ldap_class'} = [ $_[0]->get_value('objectClass') ];
return %user;
@@ -491,10 +497,18 @@
return undef;
}
+# set_user_envs(&hash, action, [plainpass], [secondary])
# Just call the useradmin function of the same name
sub set_user_envs
{
-return &useradmin::set_user_envs(@_);
+local $rv = &useradmin::set_user_envs(@_[0..3]);
+if ($_[0]->{'all_ldap_attrs'}) {
+ foreach my $a (keys %{$_[0]->{'all_ldap_attrs'}}) {
+ my $v = $_[0]->{'all_ldap_attrs'}->{$a};
+ $ENV{'USERADMIN_LDAP_'.uc($a)} = $v;
+ }
+ }
+return $rv;
}
# Just call the useradmin function of the same name
@@ -860,11 +874,12 @@
}
}
-# parse_extra_fields(fields-list, &props, &rprops)
+# parse_extra_fields(fields-list, &props, &rprops, &ldap, [dn])
sub parse_extra_fields
{
-local ($fields, $props, $rprops) = @_;
+local ($fields, $props, $rprops, $ldap, $dn) = @_;
local @fields = map { [ split(/\s+/, $_, 2) ] } split(/\t/, $fields);
+local %noclash = map { lc($_), 1 } split(/\s+/, $config{'noclash'});
local $i = 0;
local $f;
foreach $f (@fields) {
@@ -875,6 +890,24 @@
else {
$in{"field_$i"} =~ s/\r//g;
local @v = split(/\n/, $in{"field_$i"});
+ if ($noclash{lc($f->[0])}) {
+ ($dup, $dupwhat) = &check_duplicates($ldap, $f->[0],
+ \@v, $dn);
+ if ($dup && $dup->get_value('uid')) {
+ &error(&text('usave_eattrdupu',
+ $dup->get_value('uid'),
+ $f->[1], $dupwhat));
+ }
+ elsif ($dup && $dup->get_value('cn')) {
+ &error(&text('usave_eattrdupg',
+ $dup->get_value('cn'),
+ $f->[1], $dupwhat));
+ }
+ elsif ($dup) {
+ &error(&text('usave_eattrdup',
+ $dup->dn(), $f->[1], $dupwhat));
+ }
+ }
push(@$props, $f->[0], @v == 1 ? $v[0] : \@v);
}
$i++;
@@ -918,12 +951,16 @@
# Plain-text password to convert
($nt, $lm) = &samba_password($pass);
$opts = "U";
+ push(@$props, "sambaPwdLastSet", time())
+ if (&in_schema($schema, "sambaPwdLastSet"));
+ push(@$props, "sambaPwdCanChange", time())
+ if (&in_schema($schema, "sambaPwdCanChange"));
}
elsif ($passmode == 4) {
# No change
}
if (defined($nt)) {
- if ($config{'samba_class'} eq 'sambaSamAccount') {
+ if ($samba_schema == 3) {
push(@$props, "sambaNTPassword", $nt)
if (&in_schema($schema, "sambaNTPassword"));
push(@$props, "sambaLMPassword", $lm)
@@ -949,12 +986,14 @@
push(@$props, "sambaSID",
$config{'samba_domain'}.'-'.($user->{'uid'}*2+1000))
if (&in_schema($schema, "sambaSID") &&
- $config{'samba_class'} eq 'sambaSamAccount');
+ $samba_schema == 3);
push(@$props, "sambaPrimaryGroupSID",
+ $config{'samba_gid'} ||
$config{'samba_domain'}.'-'.($user->{'gid'}*2+1000))
if (&in_schema($schema, "sambaPrimaryGroupSID") &&
- $config{'samba_class'} eq 'sambaSamAccount');
+ $samba_schema == 3 &&
+ $config{'samba_gid'} ne 'none');
}
if (defined($opts)) {
@@ -964,7 +1003,7 @@
push(@$props, "sambaAcctFlags", sprintf("[%-11s]",$opts))
if (&in_schema($schema, "sambaAcctFlags") &&
- $config{'samba_class'} eq 'sambaSamAccount');
+ $samba_schema == 3);
}
push(@$props, &split_props($config{'samba_props'}, $user));
@@ -977,10 +1016,10 @@
local ($user, $schema, $rprops) = @_;
push(@$rprops, "ntPassword", "lmPassword",
"ntuid", "rid", "acctFlags")
- if ($config{'samba_class'} eq 'sambaAccount');
+ if ($samba_schema == 2);
push(@$rprops, "sambaNTPassword", "sambaLMPassword",
"sambaSID","sambaAcctFlags")
- if ($config{'samba_class'} eq 'sambaSamAccount');
+ if ($samba_schema == 3);
push(@$rprops, &split_first($config{'samba_props'}));
}
@@ -996,6 +1035,63 @@
}
}
return @rv;
+}
+
+# check_duplicates(&ldap, name, &values, [dn])
+# Returns a DN object and the clashing value if some other user has an
+# attribute with the same name and value
+sub check_duplicates
+{
+local ($ldap, $name, $values, $dn) = @_;
+local $base = &get_user_base();
+foreach my $v (@$values) {
+ local $search = "($name=$v)";
+ $rv = $ldap->search(base => $base, filter => $search);
+ next if ($rv->code);
+ foreach my $u ($rv->all_entries) {
+ if ($u->dn() ne $dn) {
+ return ($u, $v);
+ }
+ }
+ }
+return ();
+}
+
+# delete_ldap_subtree(&ldap, dn)
+# Deletes an LDAP entry and all those below it. Returns undef on success, or
+# an errpr message on failure.
+sub delete_ldap_subtree
+{
+local ($ldap, $dn) = @_;
+local $rv = $ldap->search(base => $dn, scope => 'one',
+ filter => '(objectClass=*)');
+if ($rv->code) {
+ print "subtree search error ",$rv->error,"<br>\n";
+ }
+foreach my $e ($rv->all_entries) {
+ &delete_ldap_subtree($ldap, $e->dn());
+ }
+local $rv = $ldap->delete($dn);
+return $rv->code ? $rv->error : undef;
+}
+
+# remove_accents(text)
+# Given some text with european accented characters, convert them to ascii
+sub remove_accents
+{
+local ($string) = @_;
+$string =~ tr/ÀÁÂÃÄÅàáâãäå/a/;
+$string =~ tr/Çç/c/;
+$string =~ tr/ÈÉÊËèéêë/e/;
+$string =~ tr/ÌÍÎÏìíîï/i/;
+$string =~ tr/Ð/d/;
+$string =~ tr/Ññ/n/;
+$string =~ tr/ÒÓÔÕÖØðòóôõöø/o/;
+$string =~ tr/ÙÚÛÜùúûü/u/;
+$string =~ tr/Ýýÿ/y/;
+$string =~ tr/ß/b/;
+$string =~ s/æÆ/ae/go;
+return $string;
}
1;
diff -ru /home/acc/bak/ldap-useradmin-1.290/save_group.cgi ldap-useradmin/save_group.cgi
--- /home/acc/bak/ldap-useradmin-1.290/save_group.cgi Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/save_group.cgi Sat Jul 8 09:21:40 2006
@@ -129,8 +129,10 @@
&error(&text('gsave_einuse', $group));
}
-$pfx = $config{'md5'} == 1 || $config{'md5'} == 3 ? "{md5}" :
- $config{'md5'} == 0 ? "{crypt}" : "";
+$pfx = $config{'pw_encrypt'} == 5 ? "{ssha}" :
+ $config{'pw_encrypt'} == 4 ? "{sha}" :
+ $config{'pw_encrypt'} == 1 || $config{'pw_encrypt'} == 3 ? "{md5}" :
+ $config{'pw_encrypt'} == 0 ? "{crypt}" : "";
if ($in{'passmode'} == 0) {
$pass = "";
}
@@ -195,8 +197,9 @@
push(@props, "rid", $gid*2+1001)
if (&in_schema($schema, "rid") &&
$samba_group_schema == 2);
+ # TODO: Create posixGroup with sambaGroupMapping
push(@props, "sambaSID",
- "$config{'samba_domain'}-".($gid*2+1000))
+ "$config{'samba_domain'}-".($gid*2+1001))
if (&in_schema($schema, "sambaSID") &&
$samba_group_schema == 3);
push(@props, "sambaGrouptype", 2)
@@ -266,8 +269,9 @@
push(@props, "rid", $gid*2+1000)
if (&in_schema($schema, "rid") &&
$samba_group_class eq 'sambaGroup');
+ # TODO: Create posixGroup with sambaGroupMapping
push(@props, "sambaSID",
- "$config{'samba_domain'}-".($gid*2+1000))
+ "$config{'samba_domain'}-".($gid*2+1001))
if (&in_schema($schema, "sambaSID") &&
$samba_group_schema == 3);
push(@props, "sambaGrouptype", 2)
diff -ru /home/acc/bak/ldap-useradmin-1.290/save_group.cgi.orig ldap-useradmin/save_group.cgi.orig
--- /home/acc/bak/ldap-useradmin-1.290/save_group.cgi.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/save_group.cgi.orig Sat Jul 8 08:26:24 2006
@@ -186,22 +186,26 @@
# Remove Samba attributes
@classes = grep { $_ ne $samba_group_class } @classes;
push(@rprops,
- $samba_group_class eq "sambaGroup" ? "rid" : "sambaSID");
+ $samba_group_class eq "sambaGroup" ? ( "rid" )
+ : ( "sambaSID", "sambaGrouptype" ));
}
elsif (!$wassamba && $in{'samba'}) {
# Add Samba attributes
push(@classes, $samba_group_class);
- push(@props, "rid", $gid*2+1000)
+ push(@props, "rid", $gid*2+1001)
if (&in_schema($schema, "rid") &&
- $samba_group_class eq 'sambaGroup');
+ $samba_group_schema == 2);
push(@props, "sambaSID",
"$config{'samba_domain'}-".($gid*2+1000))
if (&in_schema($schema, "sambaSID") &&
- $samba_group_class eq 'sambaSamGroup');
+ $samba_group_schema == 3);
+ push(@props, "sambaGrouptype", 2)
+ if (&in_schema($schema, "sambaGrouptype") &&
+ $samba_group_schema == 3);
}
# Add extra fields
- &parse_extra_fields($config{'group_fields'}, \@props, \@rprops);
+ &parse_extra_fields($config{'group_fields'}, \@props, \@rprops, $ldap);
# Get the properties for modified groups
push(@props, &split_props($config{'group_mod_props'}, \%ghash));
@@ -246,7 +250,8 @@
if (defined($merr));
# Parse extra fields
- &parse_extra_fields($config{'group_fields'}, \@props, \@rprops);
+ &parse_extra_fields($config{'group_fields'}, \@props, \@rprops,
+ $ldap, $in{'dn'});
# Get the properties for new groups
push(@props, &split_props($config{'group_props'}, \%ghash));
@@ -264,7 +269,10 @@
push(@props, "sambaSID",
"$config{'samba_domain'}-".($gid*2+1000))
if (&in_schema($schema, "sambaSID") &&
- $samba_group_class eq 'sambaSamGroup');
+ $samba_group_schema == 3);
+ push(@props, "sambaGrouptype", 2)
+ if (&in_schema($schema, "sambaGrouptype") &&
+ $samba_group_schema == 3);
}
$rv = $ldap->add($newdn, attr =>
[ "cn" => $group,
diff -ru /home/acc/bak/ldap-useradmin-1.290/save_user.cgi ldap-useradmin/save_user.cgi
--- /home/acc/bak/ldap-useradmin-1.290/save_user.cgi Sat Jul 8 08:26:24 2006
+++ ldap-useradmin/save_user.cgi Sat Jul 8 08:34:23 2006
@@ -221,8 +221,11 @@
}
}
- local $pfx = $config{'md5'} == 1 || $config{'md5'} == 3 ? "{md5}" :
- $config{'md5'} == 0 ? "{crypt}" : "";
+ local $pfx = $config{'pw_encrypt'} == 5 ? "{ssha}" :
+ $config{'pw_encrypt'} == 4 ? "{sha}" :
+ $config{'pw_encrypt'} == 1 || $config{'pw_encrypt'} == 3 ?
+ "{md5}" :
+ $config{'pw_encrypt'} == 0 ? "{crypt}" : "";
if ($in{'passmode'} == 0) {
# Password is blank
if (!$mconfig{'empty_mode'}) {
diff -ru /home/acc/bak/ldap-useradmin-1.290/save_user.cgi.orig ldap-useradmin/save_user.cgi.orig
--- /home/acc/bak/ldap-useradmin-1.290/save_user.cgi.orig Sun Nov 6 16:42:35 2005
+++ ldap-useradmin/save_user.cgi.orig Sat Jul 8 08:26:24 2006
@@ -39,11 +39,16 @@
if ($in{'confirm'}) {
# Run the before command
%uhash = &dn_to_hash($uinfo);
- &set_user_envs(\%uhash, 'DELETE_USER', undef);
+ &set_user_envs(\%uhash, 'DELETE_USER', undef, undef);
$merr = &making_changes();
&error(&text('usave_emaking', "<tt>$merr</tt>"))
if (defined($merr));
+ # Work out old classes
+ @classes = $uinfo->get_value("objectClass");
+ @cyrus_class_2 = split(' ',$cyrus_class);
+ $wascyrus = &indexof($cyrus_class_2[0], @classes) >= 0;
+
# Delete from other modules
%user = &dn_to_hash($uinfo);
if ($in{'others'}) {
@@ -84,10 +89,15 @@
print "$text{'udel_done'}<p>\n";
# Delete his addressbook entry
- if ($config{'addressbook'}) {
+ if ($config{'addressbook'} && $wascyrus) {
print "$text{'udel_book'}<br>\n";
- &delete_addressbook();
- print "$text{'udel_done'}<p>\n";
+ $err = &delete_addressbook();
+ if ($err) {
+ print &text('udel_failed', $err),"<p>\n";
+ }
+ else {
+ print "$text{'udel_done'}<p>\n";
+ }
}
# Delete his home directory
@@ -125,7 +135,7 @@
print "<input type=hidden name=confirm value=1>\n";
if ($home ne "/" && -d $home) {
- $size = &disk_usage_kb($home);
+ $size = &nice_size(&disk_usage_kb($home)*1024);
print "<center><b>",&text('udel_sure', $user, $home,
$size),"</b><p>\n";
print "<input type=submit ",
@@ -175,6 +185,7 @@
$in{'user'} =~ /^[^:\t]+$/ ||
&error(&text('usave_ebadname', $in{'user'}));
$in{'user'} =~ s/\r//g;
+ $in{'real'} || &error($text{'usave_ereal2'});
@users = split(/\n/, $in{'user'});
$user = $users[0];
$in{'uid'} =~ /^\-?[0-9]+$/ || &error(&text('usave_euid', $in{'uid'}));
@@ -213,16 +224,28 @@
local $pfx = $config{'md5'} == 1 || $config{'md5'} == 3 ? "{md5}" :
$config{'md5'} == 0 ? "{crypt}" : "";
if ($in{'passmode'} == 0) {
+ # Password is blank
+ if (!$mconfig{'empty_mode'}) {
+ local $err = &useradmin::check_password_restrictions(
+ "", $user);
+ &error($err) if ($err);
+ }
$pass = "";
}
elsif ($in{'passmode'} == 1) {
+ # Password is locked
$pass = $mconfig{'lock_string'};
}
elsif ($in{'passmode'} == 2) {
+ # Specific encrypted password entered, or possibly no change
$pass = $in{'encpass'};
$pass = $pfx.$pass if ($pass !~ /^\{[a-z0-9]+\}/i && $pfx);
}
elsif ($in{'passmode'} == 3) {
+ # Normal password entered - check restrictions
+ local $err = &useradmin::check_password_restrictions(
+ $in{'pass'}, $user);
+ &error($err) if ($err);
$pass = $pfx.&encrypt_password($in{'pass'});
$plainpass = $in{'pass'};
}
@@ -259,7 +282,8 @@
# Run the pre-change command
&set_user_envs(\%uhash, 'CREATE_USER',
- $in{'passmode'} == 3 ? $in{'pass'} : "");
+ $in{'passmode'} == 3 ? $in{'pass'} : "",
+ undef);
$merr = &making_changes();
&error(&text('usave_emaking', "<tt>$merr</tt>"))
if (defined($merr));
@@ -295,7 +319,8 @@
}
# Add any extra LDAP fields
- &parse_extra_fields($config{'fields'}, \@props, \@rprops);
+ &parse_extra_fields($config{'fields'}, \@props, \@rprops,
+ $ldap);
# Add shadow LDAP fields
$shadow = &shadow_fields();
@@ -306,10 +331,10 @@
push(@classes, split(/\s+/, $config{'other_class'}));
push(@classes, $samba_class) if ($in{'samba'});
push(@classes, split(' ',$cyrus_class)) if ($in{'cyrus'});
+ &name_fields();
@classes = &unique(@classes);
$base = &get_user_base();
$newdn = "uid=$user,$base";
- &name_fields();
$rv = $ldap->add($newdn, attr =>
[ "cn" => $real,
"uid" => \@users,
@@ -352,6 +377,7 @@
}
}
else {
+ # Modifying a user
$olduser = $uinfo->get_value('uid');
if ($olduser ne $user) {
defined(&all_getpwnam($user)) &&
@@ -371,7 +397,8 @@
# Run the pre-change command
&set_user_envs(\%uhash, 'MODIFY_USER',
- $in{'passmode'} == 3 ? $in{'pass'} : "");
+ $in{'passmode'} == 3 ? $in{'pass'} : "",
+ undef);
$merr = &making_changes();
&error(&text('usave_emaking', "<tt>$merr</tt>"))
if (defined($merr));
@@ -447,7 +474,8 @@
}
# Add or update any extra LDAP fields
- &parse_extra_fields($config{'fields'}, \@props, \@rprops);
+ &parse_extra_fields($config{'fields'}, \@props, \@rprops,
+ $ldap, $in{'dn'});
# Add or update shadow LDAP fields
$shadow = &shadow_fields();
@@ -470,10 +498,10 @@
}
push(@classes, "shadowAccount") if ($shadow);
+ &name_fields();
@classes = &unique(@classes);
@rprops = grep { defined($uinfo->get_value($_)) } @rprops;
$newdn = $in{'dn'};
- &name_fields();
$rv = $ldap->modify($in{'dn'}, replace =>
{ "cn" => $real,
"uid" => \@users,
@@ -532,7 +560,7 @@
}
# Setup the imap account as well
- &setup_imap();
+ &setup_imap(\%uhash);
}
elsif (!$in{'cyrus'} && $wascyrus) {
if ($config{'addressbook'}) {
@@ -592,16 +620,20 @@
}
}
+ # Get the updated user object
+ $rv = $ldap->search(base => $newdn,
+ scope => 'base',
+ filter => '(&(objectClass=posixAccount))');
+ ($uinfo) = $rv->all_entries;
+ %user = &dn_to_hash($uinfo);
+
# Run post-change script
+ &set_user_envs(\%user, $in{'new'} ? 'CREATE_USER' : 'MODIFY_USER',
+ $in{'passmode'} == 3 ? $in{'pass'} : "", undef);
&made_changes();
# Run other modules' scripts
if ($in{'others'}) {
- $rv = $ldap->search(base => $newdn,
- scope => 'base',
- filter => '(&(objectClass=posixAccount))');
- ($uinfo) = $rv->all_entries;
- %user = &dn_to_hash($uinfo);
$user{'passmode'} = $in{'passmode'};
if ($in{'passmode'} == 2 && $user{'pass'} eq $ouser{'pass'}) {
# not changing password
@@ -634,38 +666,36 @@
return if (!$config{'domain'});
# Add surname and first name details
-local ($firstname, $surname);
-if ($in{'real'} =~ /(\S+)\s+(\S+)$/) {
- $firstname = lc($1);
- $surname = lc($2);
+local ($autofirstname, $autolastname);
+if ($firstname && $lastname) {
+ $autofirstname = $firstname;
+ $autolastname = $lastname;
+ }
+elsif ($in{'real'} =~ /(\S+)\s+(\S+)$/) {
+ $autofirstname = lc($1);
+ $autolastname = lc($2);
}
elsif ($in{'real'} =~ /(\S+)/) {
- $firstname = lc($1);
+ $autofirstname = lc($1);
}
else {
- $firstname = lc($in{'user'});
+ $autofirstname = lc($in{'user'});
}
-push(@props, "name", $firstname)
- if (&in_schema($schema, "name"));
-if ($surname) {
+if ($autolastname) {
if (&in_schema($schema, "mail")) {
if ($config{'mailfmt'} == 0) {
push(@props, "mail",
- "$firstname.$surname\@$config{'domain'}")
+ "$autofirstname.$autolastname\@$config{'domain'}")
}
else {
push(@props, "mail",
"$user\@$config{'domain'}")
}
}
- push(@props, "surname", $surname)
- if (&in_schema($schema, "surname"));
}
else {
- push(@props, "mail", "$firstname\@$config{'domain'}")
+ push(@props, "mail", "$autofirstname\@$config{'domain'}")
if (&in_schema($schema, "mail"));
- push(@rprops, "surname")
- if (&in_schema($schema, "surname"));
}
# Add extra aliases
@@ -673,6 +703,10 @@
if (&in_schema($schema, $aattr)) {
local @alias = split(/\s+/, $in{'alias'});
if ($in{'alias'}) {
+ if (!$config{'alias_same'}) {
+ ($dup, $dupwhat) = &check_duplicates($ldap, $aattr, \@alias, $in{'dn'});
+ $dup && &error(&text('save_ealiasdup', $dupwhat, $dup->dn()));
+ }
push(@props, $aattr, \@alias);
}
else {
@@ -696,33 +730,28 @@
if (($battr ne "") && &in_schema($schema, $battr)) {
push(@rprops, $battr);
}
-push(@rprops, "name")
- if (&in_schema($schema, "name"));
push(@rprops, "mail")
if (&in_schema($schema, "mail"));
-push(@rprops, "surname")
- if (&in_schema($schema, "surname"));
}
sub delete_addressbook
{
-$rv = $ldap->delete("ou=$user, $config{'addressbook'}");
+return &delete_ldap_subtree($ldap, "ou=$user, $config{'addressbook'}");
}
sub name_fields
{
if ($config{'given'}) {
- push(@props, "givenName", $firstname)
+ push(@props, "gn", $firstname)
if ($firstname && &in_schema($schema, "givenName"));
push(@props, "sn", $lastname)
if ($lastname && &in_schema($schema, "sn"));
- }
-else {
- #push(@props, "sn", $in{'real'})
- # if (&in_schema($schema, "sn"));
+ if ($firstname || $lastname) {
+ push(@classes, $config{'given_class'});
+ }
}
if (&in_schema($schema, "gecos")) {
- push(@props, "gecos", $in{'real'});
+ push(@props, "gecos", &remove_accents($in{'real'}));
}
}
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
given=1
imap_login=cyrus
alias_same=0
multi_fields=1
samba_def=1
mailfmt=1
imap_def=0
samba_gclass=sambaGroupMapping
ldap_host=localhost
imap_folders=old public sent-mail
imap_folderalt=1
secmode=0
pw_encrypt=5
shells=fixed,passwd,shells
given_class=inetOrgPerson
imap_class=
samba_class=sambaSamAccount
slappasswd=/usr/local/sbin/slappasswd
default_min=
group_props=
addressbook=
random_password=
passwd_stars=
ldap_tls=0
other_class=inetLocalMailRecipient
default_warn=
group_fields=mailLocalAddress Group email address(es)
charset=
login=
imap_props=
pre_command=
base_gid=2000
user_files=
homedir_perms=
user_base=ou=People,ou=Users,dc=workstationit,dc=com
domain=workstationit.com
default_inactive=
gother_class=
ldap_port=
group_base=
fields=mailLocalAddress Email address(es)
imap_pass=
display_max=
home_style=
group_mod_props=
default_max=
imap_host=
default_secs=
samba_props=
props=
base_uid=2000
default_group=Domain Users
quota=
home_base=
default_shell=/usr/sbin/nologin
samba_gid=
maillocaladdress=
default_other=
noclash=
auth_ldap=/usr/local/etc/nss_ldap.conf
samba_domain=S-1-5-21-etc-etc-etc
post_command=/usr/local/sbin/imapcreatefolders
mod_props=
default_expire=
--8<---------------cut here---------------end--------------->8---
--
Anthony Chavez http://anthonychavez.org/
mailto:ac...@an... jabber:ac...@ja...
|
|
From: Roderick H. <rlp...@gm...> - 2006-07-19 04:20:32
|
I will try... and get back with you thanks for you assistance On 7/18/06, Jamie Cameron <jca...@we...> wrote: > > Another possibility is that the /usr/libexec/webmin/servers/index.cgi file > has somehow been deleted on > your system. If so, you should try re-installing the Webmin RPM - this is > quite safe, and won't effect > your settings. > > - Jamie > > On 18/Jul/2006 10:47 Roderick Herring wrote .. > > No, > > Not at all - just through my DSL - bellsouth connection - it worked fine > three days ago !! > > Roderick > > > > On 7/18/06, Jamie Cameron <jca...@we... <http://_unsafe_link_/>> > wrote: > > > > Hi, > > Are you accessing Webmin via an Apache proxy or running it's CGIs under > > Apache? > > Sometimes this can mess up the /servers URL, as Apache uses that same > > path for its own purposes .. > > > > - Jamie > > > > On 18/Jul/2006 08:38 Roderick Herring wrote .. > > > > I log into webmin - go to webmin index - click on one of the Red Hat > > servers - when I click on > > of modules - all I get is files and no graphics - some of the modules > > give me an error message - > > "Error - Access denied to /servers/servers-lib.pl" this happens with > > all of the modules. > > > > I have about six servers - some of the servers work fine - did I lose my > > access or something change? > > > > > > Help - need to change some of my alerts.. > > > > Roderick > > > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys -- and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > - > > Forwarded by the Webmin mailing list at > > web...@li... <http://_unsafe_link_/> > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > |
|
From: Jamie C. <jca...@we...> - 2006-07-18 17:52:44
|
Another possibility is that the /usr/libexec/webmin/servers/index.cgi file has somehow been deleted on<br />your system. If so, you should try re-installing the Webmin RPM - this is quite safe, and won't effect<br />your settings.<br /><br />=A0 - Jamie<br /><br />On 18/Jul/2006 10:47 Roderick Herring wrote .. <blockquote type=3D"cite"> <div>No,</div> <div> </div> <div>Not at all - just through my=A0DSL -=A0bellsouth connection - it worked fine three days ago !!</div> <div> </div> <div>Roderick</div> <div><br /><br />=A0</div> <div><span class=3D"gmail_quote">On 7/18/06, <b class=3D"gmail_sendername">Jamie Cameron</b> <<a href=3D"_unsafe_link_">jca...@we...</a>> wrote:</span> <blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class=3D"gmail_quote"> <div>Hi,<br />Are you accessing Webmin via an Apache proxy or running it's CGIs under Apache?<br />Sometimes this can mess up the /servers URL, as Apache uses that same path for its own purposes ..<br /><br />=A0- Jamie<br /><br />On 18/Jul/2006 08:38 Roderick Herring wrote .. </div> <div><span id=3D"q_10c82b1f6702bafa_1" class=3D"e"> <blockquote type=3D"cite"> <div>I log into webmin - go to webmin index - click on one of the Red Hat servers - when I click on </div> <div>of modules - all I get is files and no graphics - some of the modules give me an error message - </div> <div>"Error - Access denied to /servers/servers-lib.pl"=A0 this happens with all of the modules.</div> <div> </div> <div>I have about six servers - some of the servers work fine - did I lose my access or something change?</div> <div> </div> <div> </div> <div>Help - need to change some of my alerts..</div> <div> </div> <div>Roderick</div></blockquote><br /></span></div><br />-------------------------------------------------------------------------<br />Take Surveys. Earn Cash. Influence the Future of IT<br />Join SourceForge.net's Techsay panel and you'll get the chance to share your <br />opinions on IT & business topics through brief surveys -- and earn cash<br /><a target=3D"_blank" href=3D"http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV" xonclick=3D"return top.js.OpenExtLink(window,event,this)"> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV</a><br /><br />-<br />Forwarded by the Webmin mailing list at <a href=3D"_unsafe_link_" xonclick=3D"return top.js.OpenExtLink(window,event,this)"> web...@li...</a><br />To remove yourself from this list, go to<br /><a target=3D"_blank" href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list" xonclick=3D"return top.js.OpenExtLink(window,event,this)"> http://lists.sourceforge.net/lists/listinfo/webadmin-list</a><br /><br /><br /></blockquote></div><br /> </blockquote><br /> |
|
From: Roderick H. <rlp...@gm...> - 2006-07-18 17:47:49
|
No, Not at all - just through my DSL - bellsouth connection - it worked fine three days ago !! Roderick On 7/18/06, Jamie Cameron <jca...@we...> wrote: > > Hi, > Are you accessing Webmin via an Apache proxy or running it's CGIs under > Apache? > Sometimes this can mess up the /servers URL, as Apache uses that same path > for its own purposes .. > > - Jamie > > On 18/Jul/2006 08:38 Roderick Herring wrote .. > > I log into webmin - go to webmin index - click on one of the Red Hat > servers - when I click on > of modules - all I get is files and no graphics - some of the modules give > me an error message - > "Error - Access denied to /servers/servers-lib.pl" this happens with all > of the modules. > > I have about six servers - some of the servers work fine - did I lose my > access or something change? > > > Help - need to change some of my alerts.. > > Roderick > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > |
|
From: Jamie C. <jca...@we...> - 2006-07-18 17:32:05
|
Hi,<br />Are you accessing Webmin via an Apache proxy or running it's CGIs under Apache?<br />Sometimes this can mess up the /servers URL, as Apache uses that same path for its own purposes ..<br /><br />=A0- Jamie<br /><br />On 18/Jul/2006 08:38 Roderick Herring wrote .. <blockquote type=3D"cite"> <div>I log into webmin - go to webmin index - click on one of the Red Hat servers - when I click on </div> <div>of modules - all I get is files and no graphics - some of the modules give me an error message - </div> <div>"Error - Access denied to /servers/servers-lib.pl"=A0 this happens with all of the modules.</div> <div> </div> <div>I have about six servers - some of the servers work fine - did I lose my access or something change?</div> <div> </div> <div> </div> <div>Help - need to change some of my alerts..</div> <div> </div> <div>Roderick</div> </blockquote><br /> |
|
From: Roderick H. <rlp...@gm...> - 2006-07-18 16:55:58
|
When I click on one of my servers icon in the webmin index - I get this - no
graphics !!
then I get access denied...
Index of /
Name Last Modified Size
------------------------------
web-lib.pl <http://66.201.54.45:10000/servers/link.cgi/1150990355/web-lib.pl>
21/06/2006 00:51:09 1648 ui-lib.pl
<http://66.201.54.45:10000/servers/link.cgi/1150990355/ui-lib.pl>
21/06/2006 00:51:09 19397 lang_list.txt
<http://66.201.54.45:10000/servers/link.cgi/1150990355/lang_list.txt>
21/06/2006 00:51:09 1594 lang/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/lang/>
21/06/2006 17:51:09 4096 defaultacl
<http://66.201.54.45:10000/servers/link.cgi/1150990355/defaultacl>
21/06/2006 00:51:09 69 sshd/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/sshd/>
21/06/2006 10:51:09 4096 samba/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/samba/>
21/06/2006 01:51:09 4096 status/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/status/>
21/06/2006 17:51:09 4096 net/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/net/>
21/06/2006 04:51:09 4096 mount/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/mount/>
21/06/2006 00:51:09 4096 proc/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/proc/>
21/06/2006 01:51:09 4096 web-lib-funcs.pl
<http://66.201.54.45:10000/servers/link.cgi/1150990355/web-lib-funcs.pl>
21/06/2006 00:51:09 161401 acl/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/acl/>
21/06/2006 02:51:09 4096 wuftpd/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/wuftpd/>
21/06/2006 05:51:09 4096 lpadmin/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/lpadmin/>
21/06/2006 02:51:09 4096 sendmail/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/sendmail/>
21/06/2006 03:51:09 4096 entities_map.txt
<http://66.201.54.45:10000/servers/link.cgi/1150990355/entities_map.txt>
21/06/2006 00:51:09 1501 postgresql/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/postgresql/>
21/06/2006 06:51:09 4096 mscstyle3/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/mscstyle3/>
21/06/2006 12:51:09 4096 raid/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/raid/>
21/06/2006 05:51:09 4096 inetd/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/inetd/>
21/06/2006 00:51:09 4096 apache/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/apache/>
21/06/2006 02:51:09 12288 mailboxes/
<http://66.201.54.45:10000/servers/link.cgi/1150990355/mailboxes/>
21/06/2006 16:51:09 4096
|
|
From: Roderick H. <rlp...@gm...> - 2006-07-18 15:38:36
|
I log into webmin - go to webmin index - click on one of the Red Hat servers - when I click on of modules - all I get is files and no graphics - some of the modules give me an error message - "Error - Access denied to /servers/servers-lib.pl" this happens with all of the modules. I have about six servers - some of the servers work fine - did I lose my access or something change? Help - need to change some of my alerts.. Roderick |
|
From: Marcos R. <we...@al...> - 2006-07-17 05:19:04
|
thanks!!! Cheers! Marcos On Sat, 15 Jul 2006, Jamie Cameron wrote: > On 15/Jul/2006 19:44 Marcos Rubinstein wrote .. >> I'm sure it was mentioned some time ago... but I can not find it :( >> >> How can I change Webmin behavior in such a way that it will treat the >> upgrade as one from a tar.gz install instead of one from an RPM install??? >> (I inherit the server where Webmin was installed from RPM). > > Just edit the file /usr/libexec/webmin/install-type, and delete the rpm > line so that it is empty. > > - Jamie > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |
|
From: Jamie C. <jca...@we...> - 2006-07-17 02:43:13
|
On 16/Jul/2006 13:55 Mr What wrote .. > I have a few questions about this function in the Sendmail module (i.e. > Spam Control). I thought I read somewhere, or perhaps someone told me, > that MailScanner will also read from this module to remove or block spam, > even when Sendmail is not "turned on" (it being run by MailScanner). > > Is this true? The 'Spam Control' page in Webmin just updates the /etc/mail/access file, which Sendmail uses to block or allow mail from certain senders, networks and hosts. You would have to ask the MailScanner developers if and how they actually use this file though.. - Jamie |
|
From: Mr W. <we...@ro...> - 2006-07-17 00:55:16
|
I have a few questions about this function in the Sendmail module (i.e. Spam Control). I thought I read somewhere, or perhaps someone told me, that MailScanner will also read from this module to remove or block spam, even when Sendmail is not "turned on" (it being run by MailScanner). Is this true? Thanks, MW |
|
From: Neal M. <Ne...@mo...> - 2006-07-17 00:52:59
|
You mean that button that's been staring back at me all this time? =20 Sorry for the dumb request! -----Original Message----- From: web...@li... [mailto:web...@li...] On Behalf Of Jamie Cameron Sent: Sunday, July 16, 2006 5:15 PM To: Webmin users list Subject: Re: [webmin-l] File Manager, New File, DOS Mode Hi Neal, This is already possible - there is a Find button on the toolbar at the bottom of the editing window. - Jamie On 16/Jul/2006 12:00 Neal Morgan wrote .. > Thanks Jamie. >=20 > Can I throw a feature request in? :-) Sure would be nice to be able to > do a "search" in that edit window. =20 >=20 > If editing a large file I end up copy/pasting over to notepad so I can > find things... then putting them back into the edit window to save. >=20 >=20 >=20 >=20 > -----Original Message----- > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Sunday, July 16, 2006 11:55 AM > To: Webmin users list > Subject: Re: [webmin-l] File Manager, New File, DOS Mode >=20 > On 15/Jul/2006 23:05 Neal Morgan wrote .. > > Jamie: > >=20 > > Is there a way to set the default mode for new file creation with File > > Manager? Recently it seems to always use DOS mode, even though the > box > > is unchecked. If I re-open the file I see the box is now checked. > >=20 > > Some programs behave unexpectedly if they find those ^M in their .conf > > files. I have to keep remembering to double check this before I get > too > > sidetracked troubleshooting the side effects... >=20 > Hi Neal, > Thanks for pointing this out - this is a bug in the file manager.. > I will fix this in the next Webmin release, so that it only saves in DOS > mode when you explicitly check the box. >=20 > - Jamie >=20 >=20 > ------------------------------------------------------------------------ > - > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list >=20 >=20 > ------------------------------------------------------------------------ - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-07-17 00:15:40
|
Hi Neal, This is already possible - there is a Find button on the toolbar at the bottom of the editing window. - Jamie On 16/Jul/2006 12:00 Neal Morgan wrote .. > Thanks Jamie. > > Can I throw a feature request in? :-) Sure would be nice to be able to > do a "search" in that edit window. > > If editing a large file I end up copy/pasting over to notepad so I can > find things... then putting them back into the edit window to save. > > > > > -----Original Message----- > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Sunday, July 16, 2006 11:55 AM > To: Webmin users list > Subject: Re: [webmin-l] File Manager, New File, DOS Mode > > On 15/Jul/2006 23:05 Neal Morgan wrote .. > > Jamie: > > > > Is there a way to set the default mode for new file creation with File > > Manager? Recently it seems to always use DOS mode, even though the > box > > is unchecked. If I re-open the file I see the box is now checked. > > > > Some programs behave unexpectedly if they find those ^M in their .conf > > files. I have to keep remembering to double check this before I get > too > > sidetracked troubleshooting the side effects... > > Hi Neal, > Thanks for pointing this out - this is a bug in the file manager.. > I will fix this in the next Webmin release, so that it only saves in DOS > mode when you explicitly check the box. > > - Jamie > > > ------------------------------------------------------------------------ > - > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-07-17 00:13:43
|
I haven't seen this one before. Do different browsers or Java versions make any difference? - Jamie On 16/Jul/2006 16:18 Morris Hooten wrote .. > I'm seing an issue in mozilla 1.7 when using the file manager applets that > require typing in input like creating a new directory it doesn't allowing > typing. > > Is this new? > > > -----Original Message----- > From: web...@li... > [mailto:web...@li...] On Behalf Of Jamie > Cameron > Sent: Saturday, July 01, 2006 11:39 AM > To: Webmin users list > Subject: Re: [webmin-l] Usermin Issue > > On 1/Jul/2006 03:46 MWS wrote .. > > > > I noticed that every since the last two upgrades of usermin this month, > > that the "Mark As" button doesn't work. i.e. When I select mail, and > press > > the button, I get the error: "No mail selected to mark". > > > > Anyone else have this issue with Usermin? > > Thanks for pointing this out - it is a bug in Usermin. It will be fixed > in the 1.221 development release though, which will be available shortly > from http://www.webmin.com/devel.html > > - Jamie > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Morris H. <Mor...@Su...> - 2006-07-16 23:19:29
|
I'm seing an issue in mozilla 1.7 when using the file manager applets that require typing in input like creating a new directory it doesn't allowing typing. Is this new? -----Original Message----- From: web...@li... [mailto:web...@li...] On Behalf Of Jamie Cameron Sent: Saturday, July 01, 2006 11:39 AM To: Webmin users list Subject: Re: [webmin-l] Usermin Issue On 1/Jul/2006 03:46 MWS wrote .. > > I noticed that every since the last two upgrades of usermin this month, > that the "Mark As" button doesn't work. i.e. When I select mail, and press > the button, I get the error: "No mail selected to mark". > > Anyone else have this issue with Usermin? Thanks for pointing this out - it is a bug in Usermin. It will be fixed in the 1.221 development release though, which will be available shortly from http://www.webmin.com/devel.html - Jamie Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Neal M. <Ne...@mo...> - 2006-07-16 19:00:35
|
Thanks Jamie. Can I throw a feature request in? :-) Sure would be nice to be able to do a "search" in that edit window. =20 If editing a large file I end up copy/pasting over to notepad so I can find things... then putting them back into the edit window to save. -----Original Message----- From: web...@li... [mailto:web...@li...] On Behalf Of Jamie Cameron Sent: Sunday, July 16, 2006 11:55 AM To: Webmin users list Subject: Re: [webmin-l] File Manager, New File, DOS Mode On 15/Jul/2006 23:05 Neal Morgan wrote .. > Jamie: >=20 > Is there a way to set the default mode for new file creation with File > Manager? Recently it seems to always use DOS mode, even though the box > is unchecked. If I re-open the file I see the box is now checked. >=20 > Some programs behave unexpectedly if they find those ^M in their .conf > files. I have to keep remembering to double check this before I get too > sidetracked troubleshooting the side effects... Hi Neal, Thanks for pointing this out - this is a bug in the file manager.. I will fix this in the next Webmin release, so that it only saves in DOS mode when you explicitly check the box. - Jamie ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-07-16 18:55:18
|
On 15/Jul/2006 23:05 Neal Morgan wrote .. > Jamie: > > Is there a way to set the default mode for new file creation with File > Manager? Recently it seems to always use DOS mode, even though the box > is unchecked. If I re-open the file I see the box is now checked. > > Some programs behave unexpectedly if they find those ^M in their .conf > files. I have to keep remembering to double check this before I get too > sidetracked troubleshooting the side effects... Hi Neal, Thanks for pointing this out - this is a bug in the file manager.. I will fix this in the next Webmin release, so that it only saves in DOS mode when you explicitly check the box. - Jamie |
|
From: Neal M. <Ne...@mo...> - 2006-07-16 06:06:18
|
Jamie: Is there a way to set the default mode for new file creation with File Manager? Recently it seems to always use DOS mode, even though the box is unchecked. If I re-open the file I see the box is now checked. Some programs behave unexpectedly if they find those ^M in their .conf files. I have to keep remembering to double check this before I get too sidetracked troubleshooting the side effects... Thanks, Neal Morgan |
|
From: Jamie C. <jca...@we...> - 2006-07-16 05:55:04
|
On 15/Jul/2006 19:44 Marcos Rubinstein wrote .. > I'm sure it was mentioned some time ago... but I can not find it :( > > How can I change Webmin behavior in such a way that it will treat the > upgrade as one from a tar.gz install instead of one from an RPM install??? > (I inherit the server where Webmin was installed from RPM). Just edit the file /usr/libexec/webmin/install-type, and delete the rpm line so that it is empty. - Jamie |
|
From: Marcos R. <we...@al...> - 2006-07-16 02:44:36
|
I'm sure it was mentioned some time ago... but I can not find it :( How can I change Webmin behavior in such a way that it will treat the upgrade as one from a tar.gz install instead of one from an RPM install??? (I inherit the server where Webmin was installed from RPM). TIA Cheers! Marcos |