when setting e.g. the following in smb.conf log level = 2 acls:5 You get this when running samba-tool drs showrepl root@samba4-3:/usr/local/samba# samba-tool drs kcc ERROR(<type 'exceptions.ValueError'>): DRS connection to samba4-3.stp4.stp.internal failed - invalid literal for int() with base 10: '2 acls:5' File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/drs.py", line 39, in drsuapi_connect (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) = drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) File "/usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py", line 47, in drsuapi_connect if int(lp.get("log level")) >= 5: When running with log level = 2 Everything is fine. For me, this is annoying, nothing more... It scared me off tho the first time i saw it :) Version 4.1.0pre1-GIT-3b3b5b0 Distro: debian wheezy
This isssue is still present in samba 4.3.1 / Debian Jessie / compiled from source : # samba -V Version 4.3.1 # cat /etc/samba/smb.conf | grep "log level" log level = 2 auth:4 dmapi:4 # samba-tool drs showrepl debug_lookup_classname(drsapi): Unknown class ERROR(<type 'exceptions.ValueError'>): DRS connection to srvads.tranquilit.local failed - invalid literal for int() with base 10: '2 auth:4 dmapi:4 drsapi:9' File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/drs.py", line 39, in drsuapi_connect (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) = drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) File "/usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py", line 47, in drsuapi_connect if int(lp.get("log level")) >= 5: Workaround : set debug level on the command line: # samba-tool dns showrepl -d0
*** Bug 12188 has been marked as a duplicate of this bug. ***
Created attachment 12509 [details] patches for 4.4.x and 4.5.x with cherry-pick information
Karolin, please pick for 4.4.x and 4.5.x.
(In reply to Christian Ambach from comment #4) Pushed to autobuild-v4-{5,4}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!