[sork] Passwd/Expect patches
j.huinink at wanadoo.nl
j.huinink at wanadoo.nl
Tue Feb 4 14:30:58 PST 2003
Hello Everybody,
I had some troubles getting the passwd module up and running with the expect
backend in RELENG_2. The attached patch solved my problems. I assume that this
problem is not limited to our setup. You might want to take a look at this. I
suspect that similar problems are present in the HEAD version.
Regards,
Jeroen
__________________________________________________________
http://www.wanadoo.nl/
-------------- next part --------------
? config/.backends.php.swp
? lib/Driver/aia.php
Index: main.php
===================================================================
RCS file: /repository/passwd/main.php,v
retrieving revision 1.1.1.1.2.7
diff -r1.1.1.1.2.7 main.php
173c173
< $res = $daemon->change_password($backend_userid, $oldpassword,
---
> $res = $daemon->change_password($backend_userid, '', $oldpassword,
Index: lib/Driver/expect.php
===================================================================
RCS file: /repository/passwd/lib/Driver/expect.php,v
retrieving revision 1.7.2.1
diff -r1.7.2.1 expect.php
45d44
<
54d52
<
63c61
< return $errormsg ? $errormsg : false;
---
> return $errormsg ? PEAR::raiseError($errormsg) : false;
Index: scripts/passwd_expect
===================================================================
RCS file: /repository/passwd/scripts/passwd_expect,v
retrieving revision 1.1
diff -r1.1 passwd_expect
41a42
> set badpassword_string "(BAD PASSWORD).*"
43c44
< set badpassword_string "(passwd|Bad:).*\r"
---
> #set badpassword_string "(passwd|Bad:).*\r"
More information about the sork
mailing list