Net utility doesn't work with interactive password prompting. For example: pinguin# net rpc info Connection failed: NT_STATUS_UNSUCCESSFUL pinguin# With debug: pinguin# net rpc info -d 3 [2008/08/06 12:06:24, 3] param/loadparm.c:lp_load(5055) lp_load: refreshing parameters [2008/08/06 12:06:24, 3] param/loadparm.c:init_globals(1440) Initialising global parameters [2008/08/06 12:06:24, 3] param/params.c:pm_process(572) params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" [2008/08/06 12:06:24, 3] param/loadparm.c:do_section(3794) Processing section "[global]" [2008/08/06 12:06:24, 2] lib/interface.c:add_interface(81) added interface ip=192.168.3.3 bcast=192.168.3.255 nmask=255.255.255.0 Connection failed: NT_STATUS_UNSUCCESSFUL [2008/08/06 12:06:24, 2] utils/net.c:main(1075) return code = -1 pinguin# But it successfully works without interactive password prompting: pinguin# net rpc info -Uadmin%password Domain Name: INFO Domain SID: S-1-5-21-3141774287-1514705365-2616320420 Sequence number: 1218010079 Num users: 522 Num domain groups: 37 Num local groups: 0 pinguin# OS info: FreeBSD 7.0-RELEASE Samba version: samba-3.0.31_1,1
You can use patch by Michael Adam: --- net.c.orig 2008-08-06 12:27:53.000000000 +0400 +++ net.c 2008-08-06 12:28:32.000000000 +0400 @@ -496,7 +496,7 @@ server_ip = *ip; } - if (opt_user_name && opt_password) { + if (opt_user_name) { nt_status = connect_to_ipc(&cli, &server_ip, server_name); if (NT_STATUS_IS_OK(nt_status)) { goto connected;
Patch will be included in the next 3.0 release. Marking bug as fixed. Thanks for reporting!