[sork] small bug in smbpasswd driver for passwd
René Lund Jensen
lundeman@tbkol.dk
Mon, 9 Sep 2002 22:02:05 +0200
Hey
I just found a bug in the smbpasswd driver for the passwd module.
here is the diff. It's only on line I changed,
i don't know why it spits out 3 lines.
I changed them OK, but I'm pretty sure i changed it back though.
Well here it is.
René Lund Jensen
lundeman@tbkol.dk
Index: lib/Driver/smbpasswd.php
===================================================================
RCS file: /repository/passwd/lib/Driver/smbpasswd.php,v
retrieving revision 1.3
diff -u -r1.3 smbpasswd.php
--- lib/Driver/smbpasswd.php 24 Jul 2002 22:45:23 -0000 1.3
+++ lib/Driver/smbpasswd.php 9 Sep 2002 19:55:28 -0000
@@ -28,7 +28,7 @@
*/
function Passwd_Driver_smbpasswd($params = array())
{
- $this->params = $params;
+ $this->params = $params;
}
/**
@@ -102,7 +102,7 @@
$conf = &$GLOBALS['conf'];
- $smbpasswd_path = @$this->params['smbpasswd']['program'];
+ $smbpasswd_path = @$this->params['default']['program'];
$server = @$this->params['default']['host'];
if ( isset($realm) && $realm != "" ) {
@@ -110,7 +110,7 @@
$server = $this->params[$realm]['host'];
}
- if ($server == "" || !is_executable($smbpasswd_path) ) {
+ if ($server == "" || !is_executable($smbpasswd_path) ) {
$this->err_str = _("Password module is not properly
configured.");
return false;
}