Bug 9080 - net join various errors
Summary: net join various errors
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: DCE-RPCs and pipes (show other bugs)
Version: 3.6.6
Hardware: x86 Linux
: P5 major
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2012-08-06 16:20 UTC by TJ
Modified: 2014-06-13 17:25 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description TJ 2012-08-06 16:20:12 UTC
This may be mis-filed with regards to the component...Please advise and/or reclassify if needed

Trying to join a Fedora 17 machine (3.3.4-5.fc17.i686.PAE) to an AD2003 domain.

Running "net join -S <dc-name> -U <account-with-domain-Join-authority> yields

PANIC (pid 1576): failed to create UCS2 buffer
BACKTRACE: 15 stack frames:
 #0 /usr/bin/net(log_stack_trace+0x2a) [0xb71edd0a]
 #1 /usr/bin/net(smb_panic+0x29) [0xb71ede09]
 #2 /usr/bin/net(+0x32e313) [0xb71da313]
 #3 /usr/bin/net(name_mangle+0xa4) [0xb70e4624]
 #4 /usr/bin/net(cli_session_request+0xca) [0xb70935fa]
 #5 /usr/bin/net(cli_start_connection+0x17f) [0xb709423f]
 #6 /usr/bin/net(cli_full_connection+0x89) [0xb7094629]
 #7 /usr/bin/net(+0x5b820b) [0xb746420b]
 #8 /usr/bin/net(libnet_Join+0x140) [0xb74666d0]
 #9 /usr/bin/net(net_ads_join+0x2e7) [0xb6f53ab7]
 #10 /usr/bin/net(net_join+0x90) [0xb6f9cb70]
 #11 /usr/bin/net(net_run_function+0x16a) [0xb6f95cba]
 #12 /usr/bin/net(main+0x987) [0xb6f50847]
 #13 /lib/libc.so.6(__libc_start_main+0xf5) [0xb6a0a635]
 #14 /usr/bin/net(+0xa4a19) [0xb6f50a19]

Running "net join -U <account-with-domain-Join-authority>"  yields:

Enter <user>'s password:
dos charset 'CP850' unavailable - using ASCII
convert_string_talloc: Conversion not supported.
Failed to join domain: failed to lookup DC info for domain '<DOMAIN>' over rpc: Memory allocation error
ADS join did not work, falling back to RPC...
Unable to find a suitable server for domain <DOMAIN>
Unable to find a suitable server for domain <DOMAIN>

If I substitute the DC's IP address, I get the same results with 
Connection failed: NT_STATUS_NO_MEMORY instead of "Memory Allocation Error"
Comment 1 Andrew Bartlett 2013-05-27 22:46:32 UTC
The first line is the critical clue.  Please recompile with iconv headers available. 

Otherwise, any single non-ASCII character that for some reason needs to be in dos charset will cause pain.  It certainly is important to rule this out.
Comment 2 Björn Jacke 2014-06-13 17:25:24 UTC
please reopen if you still see that problem with a libiconv enabled samba build. closing this for now.