[Samba] smbpasswd and rpcclient differences between 3.0.14a and 3.0.21a

gints neimanis gints at venta.lv
Mon Jan 16 12:45:37 GMT 2006


Hi all,

The problem is that from version 3.0.21a the commands rpcclient and
smbpasswd does't work as before (and as I wish), when connecting to
remote Windows2000 domain controller.

Below are some tests and outputs, which show the command outputs. In
both cases samba is compiled from original sources. OS - Debian testing
and verified on Ubuntu.

RPCLIENT:
./rpcclient -c 'queryuser 0x2270' -U admin%password PDC

3.0.14a returns neccessary user data, like:
====
	User Name   :   ...
	...
	<skip>
        ...
        logon_hrs[0..21]...
====

3.0.21a returns:
===
result was NT_STATUS_NONE_MAPPED
===
(other tested rpclient commands works as expected)



SMBPASSWD:
in version 3.0.21a it is impossible to change expired passwords and
passwords, where the option "User must change password at next logon" is
enabled.

3.0.21a:
==============
./smbpasswd -r PDC -U domuser
Old SMB password:
New SMB password:
Retype new SMB password:
cli_pipe_validate_current_pdu: RPC fault code NT code 0x00000005
received from remote machine PDC pipe \samr fnum 0x4002!
machine PDC rejected the password change: Error was : NT code 0x00000005.
Failed to modify password entry for user domuser
==============

3.0.14a:
==============
./smbpasswd -r PDC -U domuser
Old SMB password:
New SMB password:
Retype new SMB password:
Password changed for user domuser on PDC.
==============


Actually both commands are very useful, we are used it for our tasks (to
query user data and change passwords from web form), but now with new
versions they don't work as (we) expected.

Or I'm something missing, and both tasks can be accomplished in
different ways?

Have a nice day!
Gints Neimanis


More information about the samba mailing list