Bug 5674 - NT_STATUS_UNSUCCESSFUL
Summary: NT_STATUS_UNSUCCESSFUL
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.31
Hardware: x86 FreeBSD
: P3 normal
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 03:06 UTC by Vasiliy I Ozerov
Modified: 2008-08-06 05:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy I Ozerov 2008-08-06 03:06:20 UTC
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
Comment 1 Vasiliy I Ozerov 2008-08-06 03:34:00 UTC
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;


Comment 2 Karolin Seeger 2008-08-06 05:46:51 UTC
Patch will be included in the next 3.0 release.
Marking bug as fixed.

Thanks for reporting!