#net ads join -k ; echo $KRB5CCNAME; KRB5CCNAME=/tmp/krb5cc_0 net ads join -k Failed to join domain: failed to lookup DC info for domain 'SMB4.TST' over rpc: NT_STATUS_NO_SUCH_FILE Using short domain name -- SAMBA4 Joined 'SMBFSVZ01' to realm 'smb4.tst' So with a valid admin ticket net ads join -k fail with KRB5CCNAME it works
Created attachment 6937 [details] 3-5-test.patch
Created attachment 6938 [details] v3-6-test.patch
Karolin, please pick for 3.6 and 3.5, thanks!
(In reply to comment #3) > Karolin, please pick for 3.6 and 3.5, thanks! Pushed to both branches. Closing out bug report. Thanks!
Re-opening as s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin. breaks the build (in v3-6-test): --- snip --- Compiling rpc_server/wkssvc/srv_wkssvc_nt.c rpc_server/wkssvc/srv_wkssvc_nt.c: In function ‘_wkssvc_NetrJoinDomain2’: rpc_server/wkssvc/srv_wkssvc_nt.c:870:9: error: ‘KRB5_ENV_CCNAME’ undeclared (first use in this function) rpc_server/wkssvc/srv_wkssvc_nt.c:870:9: note: each undeclared identifier is reported only once for each function it appears in rpc_server/wkssvc/srv_wkssvc_nt.c: In function ‘_wkssvc_NetrUnjoinDomain2’: rpc_server/wkssvc/srv_wkssvc_nt.c:938:9: error: ‘KRB5_ENV_CCNAME’ undeclared (first use in this function) The following command failed: gcc -g -DDEBUG_PASSWORD -DDEVELOPER -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Werror-implicit-function-declaration -I. -I/data/git/samba/v3-6-test/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED -I/data/git/samba/v3-6-test/source3/lib -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c rpc_server/wkssvc/srv_wkssvc_nt.c -o rpc_server/wkssvc/srv_wkssvc_nt.o make: *** [rpc_server/wkssvc/srv_wkssvc_nt.o] Fehler 1 --- snap ---
Temporarily reverted patch in v3-6-test. Günther, please investigate. v3-5-test works fine. Thanks! Karo
Created attachment 6948 [details] follow up patch for 3.6 This is the one corrected patch for 3.6 (from the series of 3 patches, where one has been reverted). Sorry, include mixup...
(In reply to comment #7) > Created attachment 6948 [details] > follow up patch for 3.6 > > This is the one corrected patch for 3.6 (from the series of 3 patches, where > one has been reverted). Sorry, include mixup... Pushed to v3-6-test. Thanks a lot, Günther! Closing out bug report.
patch breaks abi, follow up patch needed
Created attachment 7034 [details] v3-5-test.patch followup ABI
Created attachment 7035 [details] v3-6-test.patch followup ABI
Karolin, please pick ABI fixes for the next release. We should avoid realsing without them
Pushed to both branches. Will be included in 3.5.12 and 3.6.2. Closing out bug report. Thanks!