> I've been trying to get Unix password synchronization working with the
Samba
> to no avail. I've testing it on Solaris and it
> works fine. What appears to happen is a timeout when trying to sync the
> Unix password. I've including the output from smbpasswd with debug on
, and
> the log file for the password change, and a snipet of my smb.conf.
>
> I'm looking for any clues on how to fix this. The version I'm
running is
> from the Samba ftp site, version 2.2.2. It's from the
> Binary Packages subdirectory. I've tried similar versions with the
same
> result.
>
> Thanks in advance...
>
> >From smbpasswd
>
> write_socket(3,635)
> write_socket(3,635) wrote 635
> read_socket_with_timeout: timeout read. select timed out.
> receive_smb: length < 0!
> client_receive_smb failed
> size=0
> smb_com=0x0
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=0
> smb_flg2=0
> smb_tid=0
> smb_pid=0
> smb_uid=0
> smb_mid=0
> smt_wct=0
> smb_bcc=0
> Password changed for user bjones
>
>
> >From log file:
>
> Invoking '/usr/bin/passwd bjones' as password change program.
> [2001/10/16 12:42:50, 100] smbd/chgpasswd.c:(265)
> expect: expected [*ew*password:*] received [New password:] match yes
> [2001/10/16 12:42:50, 10] smbd/chgpasswd.c:(277)
> expect: returning True
> [2001/10/16 12:42:50, 100] smbd/chgpasswd.c:(232)
> expect: sending [3851waj
> ]
> [2001/10/16 12:42:50, 100] smbd/chgpasswd.c:(265)
> expect: expected [*e-enter*new*password:*] received [
> Re-enter new password:] match yes
> [2001/10/16 12:42:50, 10] smbd/chgpasswd.c:(277)
> expect: returning True
> [2001/10/16 12:43:09, 3] smbd/chgpasswd.c:(395)
> The process exited while we were waiting
We had this on RH 5.1 years ago. It was even better: You turn debugg
on on the password change worked, you turn it of and it didn't. What
we did was edit source/smbd/chagpasswd.c (2.0.6), looked for "time
out" (Lines 213 and 224) and increased them very much (10 times). The
Problem went a way. We do it ever since and have no problems with it.
BUT: I DO NOT KNOW IF THERE ARE ANY SECURITY CONCERNS ABOUT IT and
where the original valuse came from.
Christian
> [2001/10/16 12:43:09, 5] smbd/ipc.c:(63)
> copy_trans_params_and_data: params[0..2] data[0..0]
> [2001/10/16 12:43:09, 5] lib/util.c:(273)
>
> smb.conf:
>
> security = user
> ; These are the settings required for IRIX password sync
> passwd program = /usr/bin/passwd %u
> passwd chat = *ew*password:* %n\n *e-enter*new*password:* %n\n
> passwd chat debug = yes
> log level = 100
>
> ; Uncomment the following if you wish to use encrypted passwords.
> encrypt passwords = yes
>
> ; Uncomment the following if you wish to sync unix and smbpasswd
> unix password sync = yes
>
>
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
_(_)_ wWWWw _
@@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_
@@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_)
@@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\
/ Y \| \|/ /(_) \| |/ |
\ | \ |/ | / \ | / \|/ |/ \| \|/
jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|//
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^