[sork] passwd: Problems with smbpasswd backend

Oscar Retana oscar at gridshield.net
Mon Mar 29 06:53:49 PST 2004


It works for me. If you are authenticating with system users, samba must 
change the unix password too. So, I'm using these options in smb.conf.

encrypt passwords = Yes
update encrypted = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd chat debug = Yes
unix password sync = Yes

Besides, this is my backends.php file


$backends['smbpasswd'] = array(
     'name' => 'SERVER',
     'preferred' => 'true',
     'password policy' => array(),
     'driver' => 'smbpasswd',
     'params' => array(
         'program' => '/usr/bin/smbpasswd',
         'host' => 'host.domain.com'
     )
);


Regards,

- Oscar Retana.

Christopher Huyler wrote:
> I can't seem to get smbpasswd to work from Horde.  I can run the command
> successfully from the command-line...
> 
> /usr/local/samba/bin/smbpasswd -r <HOST> -s -U <USERNAME>
> 
> ...and it returns...
> 
> Password changed for user <USERNAME> on <HOST>
> 
> ...like it should.  However, when it runs from Horde, it doesn't return
> anything
> and the password is not changed.  An error is printed to the apache error log:
> 
> machine <HOST> rejected the password change: Error was : RAP86: The specified
> password is invalid.
> Failed to change password for <USERNAME>
> 
> Can anyone help me with this?
> 
> ~ Chris
> 
> --
> Christopher Huyler
> chris at huyler.net
> http://www.huyler.net



More information about the sork mailing list