Mauricio Alvarez
2013-Oct-10 20:51 UTC
[Samba] Samba4 can't join domain - drsuapi.DsBindInfoFallBack object has no attribute
I have a Win2k3 server and am trying to manage a Samba4 box (name:UBUNTUSERVER, running Ubuntu 12.04.3 + Samba 4.0.10) as a backup. All seemed well, but after a problem with replication (result 1306 WERR_REVISION_MISMATCH), I couldn't even demote the samba4 DC. So I deleted from SERVERW2K3, deleted /usr/local/samba and re-compiled everything. Also ran make quicktest, all seems OK. Now, this is what I get: ? Any idea what is going on? user at ubuntuserver:/usr/local/samba$ sudo /usr/local/samba/bin/samba-tool domain join acme.local DC -Uadministrator --realm=ACME.LOCAL ?-d9 INFO: Current debug levels: ? all: 9 ? tdb: 9 ? printdrivers: 9 ? lanman: 9 ? smb: 9 ? rpc_parse: 9 ? rpc_srv: 9 ? rpc_cli: 9 ? passdb: 9 ? sam: 9 ? auth: 9 ? winbind: 9 ? vfs: 9 ? idmap: 9 ? quota: 9 ? acls: 9 ? locking: 9 ? msdfs: 9 ? dmapi: 9 ? registry: 9 ? scavenger: 9 ? dns: 9 ? ldb: 9 GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'schannel' registered GENSEC backend 'spnego' registered GENSEC backend 'ntlmssp' registered GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 Finding a writeable DC for domain 'acme.local' added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 finddcs: searching for a DC by DNS domain acme.local finddcs: looking for SRV records for _ldap._tcp.acme.local ads_dns_lookup_srv: 1 records returned in the answer section. finddcs: DNS SRV response 0 at '192.168.0.254' finddcs: performing CLDAP query on 192.168.0.254 finddcs: Found matching DC 192.168.0.254 with server_type=0x000021fd Found DC serverw2k3.acme.local lpcfg_servicenumber: couldn't find ldb added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 Starting GENSEC mechanism spnego Starting GENSEC submechanism gssapi_krb5 Password for [WORKGROUP\administrator]: Received smb_krb5 packet of length 143 Received smb_krb5 packet of length 1256 Received smb_krb5 packet of length 1250 Received smb_krb5 packet of length 1232 gensec_gssapi: credentials were delegated GSSAPI Connection will be cryptographically sealed workgroup is ACME realm is acme.local checking sAMAccountName Adding CN=UBUNTUSERVER,OU=Domain Controllers,DC=acme,DC=local Adding CN=UBUNTUSERVER,CN=Servers,CN=Default-First-Site,CN=Sites,CN=Configuration,DC=acme,DC=local Adding CN=NTDS Settings,CN=UBUNTUSERVER,CN=Servers,CN=Default-First-Site,CN=Sites,CN=Configuration,DC=acme,DC=local Using binding ncacn_ip_tcp:serverw2k3.acme.local[,seal,print] Mapped to DCERPC endpoint 135 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 Mapped to DCERPC endpoint 1025 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 added interface eth0 ip=192.168.0.139 bcast=192.168.0.255 netmask=255.255.255.0 Starting GENSEC mechanism spnego Starting GENSEC submechanism gssapi_krb5 Received smb_krb5 packet of length 144 Received smb_krb5 packet of length 1256 Received smb_krb5 packet of length 1250 Received smb_krb5 packet of length 1232 ../librpc/rpc/dcerpc_util.c:140: auth_pad_length 0 gensec_gssapi: credentials were delegated GSSAPI Connection will be cryptographically sealed ../librpc/rpc/dcerpc_util.c:140: auth_pad_length 0 ? ? ?drsuapi_DsBind: struct drsuapi_DsBind ? ? ? ? in: struct drsuapi_DsBind ? ? ? ? ? ? bind_guid ? ? ? ? ? ? ? ?: * ? ? ? ? ? ? ? ? bind_guid ? ? ? ? ? ? ? ?: e42c210a-4fd6-11d1-a3da-0000f875ae0d ? ? ? ? ? ? bind_info ? ? ? ? ? ? ? ?: * ? ? ? ? ? ? ? ? bind_info: struct drsuapi_DsBindInfoCtr ? ? ? ? ? ? ? ? ? ? length ? ? ? ? ? ? ? ? ? : 0x0000001c (28) ? ? ? ? ? ? ? ? ? ? info ? ? ? ? ? ? ? ? ? ? : union drsuapi_DsBindInfo(case 28) ? ? ? ? ? ? ? ? ? ? info28: struct drsuapi_DsBindInfo28 ? ? ? ? ? ? ? ? ? ? ? ? supported_extensions ? ? : 0x0fefff7f (267386751) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_BASE ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_ASYNC_REPLICATION ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_REMOVEAPI ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_MOVEREQ_V2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHG_COMPRESS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_RESTORE_USN_OPTIMIZATION ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_ADDENTRY ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_KCC_EXECUTE ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_ADDENTRY_V2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_LINKED_VALUE_REPLICATION ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_INSTANCE_TYPE_NOT_REQ_ON_MOD ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_CRYPTO_BIND ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GET_REPL_INFO ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V01 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_TRANSITIVE_MEMBERSHIP ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_ADD_SID_HISTORY ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_POST_BETA3 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V5 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GET_MEMBERSHIPS2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_NONDOMAIN_NCS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V8 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V5 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_ADDENTRYREPLY_V3 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1: DRSUAPI_SUPPORTED_EXTENSION_VERIFY_OBJECT ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_XPRESS_COMPRESS ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V10 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_RESERVED_PART2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0: DRSUAPI_SUPPORTED_EXTENSION_RESERVED_PART3 ? ? ? ? ? ? ? ? ? ? ? ? site_guid ? ? ? ? ? ? ? ?: 00000000-0000-0000-0000-000000000000 ? ? ? ? ? ? ? ? ? ? ? ? pid ? ? ? ? ? ? ? ? ? ? ?: 0x00000000 (0) ? ? ? ? ? ? ? ? ? ? ? ? repl_epoch ? ? ? ? ? ? ? : 0x00000000 (0) ../librpc/rpc/dcerpc_util.c:140: auth_pad_length 12 ? ? ?drsuapi_DsBind: struct drsuapi_DsBind ? ? ? ? out: struct drsuapi_DsBind ? ? ? ? ? ? bind_info ? ? ? ? ? ? ? ?: * ? ? ? ? ? ? ? ? bind_info: struct drsuapi_DsBindInfoCtr ? ? ? ? ? ? ? ? ? ? length ? ? ? ? ? ? ? ? ? : 0x00000020 (32) ? ? ? ? ? ? ? ? ? ? info ? ? ? ? ? ? ? ? ? ? : union drsuapi_DsBindInfo(case 32) ? ? ? ? ? ? ? ? ? ? FallBack: struct drsuapi_DsBindInfoFallBack ? ? ? ? ? ? ? ? ? ? ? ? info ? ? ? ? ? ? ? ? ? ? : DATA_BLOB length=32 [0000] 7F FF FF 1F 66 2D FA B9 ? 46 E8 20 48 99 C9 79 FB ? ....f-.. F. H..y. [0010] 2E 87 69 4F B8 01 00 00 ? 00 00 00 00 02 00 00 00 ? ..iO.... ........ ? ? ? ? ? ? bind_handle ? ? ? ? ? ? ?: * ? ? ? ? ? ? ? ? bind_handle: struct policy_handle ? ? ? ? ? ? ? ? ? ? handle_type ? ? ? ? ? ? ?: 0x00000000 (0) ? ? ? ? ? ? ? ? ? ? uuid ? ? ? ? ? ? ? ? ? ? : 8a8cb2d3-49e8-4f2b-8a30-72efe6f2313d ? ? ? ? ? ? result ? ? ? ? ? ? ? ? ? : WERR_OK Join failed - cleaning up checking sAMAccountName Deleted CN=UBUNTUSERVER,OU=Domain Controllers,DC=acme,DC=local Deleted CN=UBUNTUSERVER,CN=Servers,CN=Default-First-Site,CN=Sites,CN=Configuration,DC=acme,DC=local ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'drsuapi.DsBindInfoFallBack' object has no attribute 'supported_extensions' ? File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run ? ? return self.run(*args, **kwargs) ? File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run ? ? machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1169, in join_DC ? ? ctx.do_join() ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1072, in do_join ? ? ctx.join_add_objects() ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 541, in join_add_objects ? ? ctx.join_add_ntdsdsa() ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 474, in join_add_ntdsdsa ? ? ctx.DsAddEntry([rec]) ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 384, in DsAddEntry ? ? ctx.drsuapi_connect() ? File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 363, in drsuapi_connect ? ? (ctx.drsuapi_handle, ctx.bind_supported_extensions) = drs_utils.drs_DsBind(ctx.drsuapi) ? File "/usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py", line 144, in drs_DsBind ? ? return (handle, info.info.supported_extensions)