[imp] Poppaswd

Eric Jon ROSTETTER eric.rostetter@physics.utexas.edu
Tue, 29 Jan 2002 14:00:53 -0600


Quoting Mathieu CLABAUT <mathieu.clabaut@free.fr>:

>  I've just put a new archive with a small README.... Hope it will help !
> 
>  http://mathieu.clabaut.free.fr/public/passwd.tgz (it is always the last
> version).
> 
> -mat.

I liked the parameterized "refused" user list.  So I added it to my version
of his program.  But I noticed what I assume is a mistake.  Patch is simple:

24c25
<     elseif (ereg(implode("|",$conf['user']['refused']),$userid)) {
---
>     elseif (ereg(implode($conf['user']['refused'],"|"),$userid)) {

or, in real patch format:

@@ -21,7 +22,7 @@
 							HORDE_ERROR);
 		$error = true;
     }
-    elseif (ereg(implode("|",$conf['user']['refused']),$userid)) {
+    elseif (ereg(implode($conf['user']['refused'],"|"),$userid)) {
 		$msg=sprintf (_("You can't change password for user %s"),$userid);
 		Horde::raiseMessage($msg,HORDE_ERROR);
 		$error = true;


Eric Jon Rostetter
The Department of Physics
The University of Texas at Austin
Austin, Texas 78712-1081

Office:    RLM 7.126
Telephone: 512-471-5821
Email:	   eric.rostetter@physics.utexas.edu

Fragen Sie nicht was Ihre Kumputer tun koennen,
aber fragen Sie was Sie fur Ihre Kumputer koennen.