Rowland Penny
2023-Feb-02 13:50 UTC
[Samba] Crash on "samba-tool domain functionalprep --function-level=2012_R2 ..."
On 02/02/2023 13:23, Fabio Fantoni via samba wrote:> |Hi, I tried to add windows 2019 domain controller to samba active > directory following this procedure: > https://dev.to/aciklab/adding-a-windows-2019-dc-to-your-samba-domain-im2 > When I this command I had a crash: samba-tool domain functionalprep > --function-level=2012_R2 --forest-prep --domain-prep I also tried to > update to latest samba version (4.17.5) from backports packages (exactly > version 2:4.17.5+dfsg-1~bpo11+1) on debian 11 but crashed anyway. > Redoing another time the command don't do error but I don't know did all > correct and complete changes with crash occurred. I restored the backup > installed also needed dbgsym packages before reproduce the crash to > decode the backtrace symbols >> vi /etc/apt/sources.list deb http://deb.debian.org/debian-debug/ >> bullseye-debug main contrib non-free deb >> http://deb.debian.org/debian-debug/ bullseye-backports-debug main >> contrib non-free apt -t bullseye-backports-debug install >> samba-libs-dbgsym libtevent0-dbgsym samba-dsdb-modules-dbgsym >> libldb2-dbgsym python3-ldb-dbgsym apt install libc6-dbg python3-dbg > Before start I also checked db >> samba-tool dbcheck --cross-ncs --fix --yes --reset-well-known-acls >> Checking 3630 objects Checked 3630 objects (0 errors) > And even if dbgsym packages was installed it didn't decode the symbols > in the backtrace: >> samba-tool domain functionalprep --function-level=2012_R2 >> --forest-prep --domain-prep Temporarily overriding 'dsdb:schema update >> allowed' setting ndr_pull_relative_ptr1: ndr_pull_error(Buffer Size >> Error): ndr_pull_relative_ptr1 rel_offset(1347566395) > >> ndr->data_size(86) at ../../librpc/ndr/ndr.c:1944 >> ndr_pull_relative_ptr1: ndr_pull_error(Buffer Size Error): >> ndr_pull_relative_ptr1 rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(88) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1146305339) > ndr->data_size(100) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(86) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(96) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(96) at >> ../../librpc/ndr/ndr.c:1944 ndr_pull_relative_ptr1: >> ndr_pull_error(Buffer Size Error): ndr_pull_relative_ptr1 >> rel_offset(1347566395) > ndr->data_size(92) at >> ../../librpc/ndr/ndr.c:1944 >> =============================================================== >> INTERNAL ERROR: Signal 11: Segmentation fault in pid 4106 >> (4.17.5-Debian) If you are running a recent Samba version, and if you >> think this problem is not yet fixed in the latest versions, please >> consider reporting this bug, see >> https://wiki.samba.org/index.php/Bug_Reporting >> =============================================================== PANIC >> (pid 4106): Signal 11: Segmentation fault in 4.17.5-Debian BACKTRACE: >> 50 stack frames: #0 >> /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(log_stack_trace+0x30) [0x7f2460d03690] #1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(smb_panic+0x9) [0x7f2460d038d9] #2 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(+0x1971) [0x7f2460d03971] #3 /lib/x86_64-linux-gnu/libpthread.so.0(+0x13140) [0x7f2461dc3140] #4 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_update_timer+0x17) [0x7f2460f2ca87] #5 /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm-samba4.so.0(messaging_dgm_send+0xcb) [0x7f245de6676b] #6 /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-SEND-samba4.so.0(imessaging_send+0xd7) [0x7f245de703a7] #7 /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-samba4.so.0(+0x4ae1) [0x7f245e149ae1] #8 /usr/lib/x86_64-linux-gnu/libdcerpc-binding.so.0(dcerpc_binding_handle_raw_call_send+0xa5) [0x7f245e0f8425] #9 /usr/lib/x86_64-linux-gnu/libdcerpc-binding.so.0(dcerpc_binding_handle_call_send+0x1ed) [0x7f245e0f8bcd] #10 /usr/lib/x86_64-linux-gnu/samba/ldb/dns_notify.so(dcerpc_dnssrv_reload_dns_zones_r_send+0x73) [0x7f245be571a3] #11 /usr/lib/x86_64-linux-gnu/samba/ldb/dns_notify.so(+0x3764) [0x7f245be53764] #12 /usr/lib/x86_64-linux-gnu/libldb.so.2(ldb_next_end_trans+0x44) [0x7f24614e48e4] #13 /usr/lib/x86_64-linux-gnu/libldb.so.2(ldb_next_end_trans+0x44) [0x7f24614e48e4] #14 /usr/lib/x86_64-linux-gnu/samba/ldb/audit_log.so(+0x3e8d) [0x7f245be7ee8d] #15 /usr/lib/x86_64-linux-gnu/libldb.so.2(ldb_next_end_trans+0x44) [0x7f24614e48e4] #16 /usr/lib/x86_64-linux-gnu/libldb.so.2(ldb_next_end_trans+0x44) [0x7f24614e48e4] #17 /usr/lib/x86_64-linux-gnu/samba/ldb/rootdse.so(+0x4b3e) [0x7f245bc4bb3e] #18 /usr/lib/x86_64-linux-gnu/libldb.so.2(ldb_transaction_commit+0xc9) [0x7f24614e1729] #19 /usr/lib/python3/dist-packages/ldb.cpython-39-x86_64-linux-gnu.so(+0xb5a1) [0x7f24615205a1] #20 /usr/bin/python3() [0x531573] #21 /usr/bin/python3(_PyEval_EvalFrameDefault+0x702) [0x512192] #22 /usr/bin/python3() [0x5106ed] #23 /usr/bin/python3(_PyFunction_Vectorcall+0x361) [0x528d21] #24 /usr/bin/python3() [0x53bcfb] #25 /usr/bin/python3(PyObject_Call+0xc1) [0x53c361] #26 /usr/bin/python3(_PyEval_EvalFrameDefault+0x23fb) [0x513e8b] #27 /usr/bin/python3() [0x5106ed] #28 /usr/bin/python3(_PyFunction_Vectorcall+0x361) [0x528d21] #29 /usr/bin/python3() [0x53bdb1] #30 /usr/bin/python3(_PyEval_EvalFrameDefault+0x23fb) [0x513e8b] #31 /usr/bin/python3() [0x5106ed] #32 /usr/bin/python3(_PyFunction_Vectorcall+0x361) [0x528d21] #33 /usr/bin/python3() [0x53be7e] #34 /usr/bin/python3(_PyEval_EvalFrameDefault+0x23fb) [0x513e8b] #35 /usr/bin/python3() [0x5106ed] #36 /usr/bin/python3(_PyFunction_Vectorcall+0x361) [0x528d21] #37 /usr/bin/python3() [0x53be7e] #38 /usr/bin/python3(_PyEval_EvalFrameDefault+0x23fb) [0x513e8b] #39 /usr/bin/python3() [0x5106ed] #40 /usr/bin/python3(_PyEval_EvalCodeWithName+0x47) [0x510497] #41 /usr/bin/python3(PyEval_EvalCode+0x23) [0x5f5be3] #42 /usr/bin/python3() [0x619de7] #43 /usr/bin/python3() [0x615610] #44 /usr/bin/python3() [0x619d79] #45 /usr/bin/python3(PyRun_SimpleFileExFlags+0x196) [0x619816] #46 /usr/bin/python3(Py_RunMain+0x2b3) [0x60d4e3] #47 /usr/bin/python3(Py_BytesMain+0x29) [0x5ea6e9] #48 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f2461a61d0a] #49 /usr/bin/python3(_start+0x2a) [0x5ea5ea] Annullato > I don't know how to decode symbols of this printed backtrace, if are > needed to solve the issue can you tell me what I should do please? > Another thing spotted on previous command that even if don't seems > failed there are some "|||Unable to find attribute|", are them normal or > minor "not blocking" issues or there is something that should be solved > before? >> samba-tool domain schemaupgrade Temporarily overriding 'dsdb:schema >> update allowed' setting Patched Sch49.ldf using >> /usr/share/samba/setup/adprep/WindowsServerDocs/Sch49.ldf.diff Patched >> Sch50.ldf using >> /usr/share/samba/setup/adprep/WindowsServerDocs/Sch50.ldf.diff Patched >> Sch51.ldf using >> /usr/share/samba/setup/adprep/WindowsServerDocs/Sch51.ldf.diff Patched >> Sch57.ldf using >> /usr/share/samba/setup/adprep/WindowsServerDocs/Sch57.ldf.diff Patched >> Sch59.ldf using >> /usr/share/samba/setup/adprep/WindowsServerDocs/Sch59.ldf.diff >> Applying Sch48.ldf updates... Unable to find attribute >> msDS-MembersOfResourcePropertyList in the schema >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 38 changes >> applied Applying Sch49.ldf updates... Unable to find attribute >> msDNS-KeymasterZones in the schema >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 47 changes >> applied Applying Sch50.ldf updates... >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 33 changes >> applied Applying Sch51.ldf updates... >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 25 changes >> applied Applying Sch52.ldf updates... >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL Unable to find >> attribute 1.2.840.113556.1.4.2214 in the schema >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 33 changes >> applied Applying Sch53.ldf updates... 2 changes applied Applying >> Sch54.ldf updates... 3 changes applied Applying Sch55.ldf updates... 3 >> changes applied Applying Sch56.ldf updates... 3 changes applied >> Applying Sch57.ldf updates... >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL >> ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute >> value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on >> servicePrincipalName, duplicate of objectGUID >> 9067704b-cf87-4167-afcb-568d2c710468 in >> @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 16 changes >> applied Applying Sch58.ldf updates... 3 changes applied Applying >> Sch59.ldf updates... Defunct object >> CN=ms-DS-User-Device-Registration,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Defunct object CN=ms-DS-User-Device-Registration-Container,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Unable to find attribute 1.2.840.113556.1.4.2246 in the schema Unable to find attribute 1.2.840.113556.1.4.2246 in the schema Skipping unknown OID 1.2.840.113556.1.4.2246 for object CN=ms-DS-Device,CN=Schema,CN=Configuration,DC=m2r,DC=local Unable to find attribute 1.2.840.113556.1.4.2244 in the schema Unable to find attribute 1.2.840.113556.1.4.2244 in the schema Skipping unknown OID 1.2.840.113556.1.4.2244 for object CN=User,CN=Schema,CN=Configuration,DC=m2r,DC=local Defunct object CN=ms-DS-User-Device-Registration-Link,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Defunct object CN=ms-DS-User-Device-Registration-Link-BL,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Defunct object CN=ms-DS-Authentication-Level,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Defunct object CN=ms-DS-Approximate-Last-Use-Time-Stamp,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping Defunct object CN=ms-DS-Device-Reference,CN=Schema,CN=Configuration,DC=m2r,DC=local doesn't exist, skipping ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 17 changes applied Applying Sch60.ldf updates... ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 11 changes applied Applying Sch61.ldf updates... ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 5 changes applied Applying Sch62.ldf updates... 5 changes applied Applying Sch63.ldf updates... 5 changes applied Applying Sch64.ldf updates... 6 changes applied Applying Sch65.ldf updates... ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 22 changes applied Applying Sch66.ldf updates... ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 5 changes applied Applying Sch67.ldf updates... 5 changes applied Applying Sch68.ldf updates... ../../lib/ldb/ldb_key_value/ldb_kv_index.c:2955: duplicate attribute value in CN=W7-KTEST1,CN=Computers,DC=m2r,DC=local for index on servicePrincipalName, duplicate of objectGUID 9067704b-cf87-4167-afcb-568d2c710468 in @INDEX:SERVICEPRINCIPALNAME:TERMSRV/W7-KTEST1.M2R.LOCAL 30 changes applied Applying Sch69.ldf updates... 4 changes applied Schema successfully updated > Thanks for any reply and sorry for my bad english | > >Your English isn't bad, which is more than what I can say about your email client ;-) Can you please try again, with a different client that doesn't try to put everything on one line. Rowland
Fabio Fantoni
2023-Feb-02 14:15 UTC
[Samba] Crash on "samba-tool domain functionalprep --function-level=2012_R2 ..."
Il 02/02/2023 14:50, Rowland Penny via samba ha scritto:> Your English isn't bad, which is more than what I can say about your > email client ? > > Can you please try again, with a different client that doesn't try to > put everything on one line. > > RowlandThanks for reply, the client is thunderbird and I setted text-only format to avoid some issue saw in past with mailing list but don't seems produced good result in this case (or is antivirus that I try to temp. disable now), I'll retry without this mode and using paste.debian.net for bigger commands output, see below... Hi, I tried to add windows 2019 domain controller to samba active directory following this procedure: https://dev.to/aciklab/adding-a-windows-2019-dc-to-your-samba-domain-im2 When I this command I had a crash: samba-tool domain functionalprep --function-level=2012_R2 --forest-prep --domain-prep I also tried to update to latest samba version (4.17.5) from backports packages (exactly version 2:4.17.5+dfsg-1~bpo11+1) on debian 11 but crashed anyway. Redoing another time the command don't crash and don't print errors but I don't know really did all correct and complete changes with crash occurred before. I restored the backup installed also needed dbgsym packages before reproduce the crash to decode the backtrace symbols.> vi /etc/apt/sources.list > deb http://deb.debian.org/debian-debug/ bullseye-debug main contrib > non-free > deb http://deb.debian.org/debian-debug/ bullseye-backports-debug main > contrib non-free > > apt -t bullseye-backports-debug install samba-libs-dbgsym > libtevent0-dbgsym samba-dsdb-modules-dbgsym libldb2-dbgsym > python3-ldb-dbgsym > apt install libc6-dbg python3-dbgBefore start I also checked db> samba-tool dbcheck --cross-ncs --fix --yes? --reset-well-known-acls > Checking 3630 objects > Checked 3630 objects (0 errors)And even if dbgsym packages was installed it didn't decode the symbols in the backtrace: https://paste.debian.net/hidden/1f4f1de4/ I don't know how to decode symbols of this printed backtrace, if are needed to solve the issue can you tell me what I should do please? Another thing spotted on previous command that even if don't seems failed there are some "Unable to find attribute", are them normal or minor "not blocking" issues or there is something that should be solved before? "samba-tool domain schemaupgrade" output: https://paste.debian.net/hidden/7d2de9ee/ Thanks for any reply and sorry for my bad english