btaimport ERROR: Normalization failed on field nTSecurityDescriptor

Issue #4 new
Former user created an issue
ERROR: Normalization failed on field nTSecurityDescriptor (value='<snip>')
Traceback (most recent call last):
  File "/usr/local/bin/btaimport", line 5, in <module>
    pkg_resources.run_script('bta==0.5', 'btaimport')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_scr                                   ipt
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_sc                                   ript
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/EGG-INFO/script                                   s/btaimport", line 7, in <module>
    bta.ntds2db.main()
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/ntds2db.py"                                   , line 361, in main
    map(import_file, jobs)
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/ntds2db.py"                                   , line 261, in import_file
    dt.create()
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/ntds2db.py"                                   , line 84, in create
    self.parse_file(table)
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/ntds2db.py"                                   , line 65, in parse_file
    dbtable.insert_fields([val.value for val in rec], ignore_normalization_error                                   s=self.options.ignore_import_errors)
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/backend/mon                                   go.py", line 258, in insert_fields
    d[name] = norm.normal(v)
  File "/usr/local/lib/python2.7/dist-packages/bta-0.5-py2.7.egg/bta/backend/mon                                   go.py", line 73, in normal
    return struct.unpack("Q", val)[0]
struct.error: unpack requires a string argument of length 8

I'm not sure how much data I can provide in regards to the actual content that's being decoded, but I will try to provide what I can if requested.

Comments (1)

  1. Joffrey CZARNY

    Hi,

    First, let me know how did you extract your NTDS.dit file ? Via ntdsutil and IFM method ?

  2. Log in to comment