[Samba] List Index Out of Range

Matthew Delfino Samba List mdelfino.list.samba at KNOCKinc.com
Fri Nov 8 21:06:11 UTC 2019


Thank you, Louis, for setting me at ease that this was a bug.

Thank you, Rowland, for showing me how to fix it until I'm on the latest version of Samba.

I am now able to use this part of samba-tool.

Case closed!
Matthew

On 2019.11.06, 3:42 AM, "samba on behalf of L.P.H. van Belle via samba" <samba-bounces at lists.samba.org on behalf of samba at lists.samba.org> wrote:

    Hai Rowland,

    Thanks for this verification, bug closed.

    Greetz,

    Louis


    > -----Oorspronkelijk bericht-----
    > Van: samba [mailto:samba-bounces at lists.samba.org] Namens
    > Rowland penny via samba
    > Verzonden: woensdag 6 november 2019 10:26
    > Aan: samba at lists.samba.org
    > Onderwerp: Re: [Samba] List Index Out of Range
    >
    > On 06/11/2019 08:01, L.P.H. van Belle via samba wrote:
    > > Hai,
    > >
    > > That looks like its a bug.
    > >
    > > I just verified this on a 4.10.10 AD-DC.
    > > I was hoping a python package was missing but i dont
    > see/have missing packages here.
    > > I have exact the same result.
    > >
    > > I have reported it :
    > https://bugzilla.samba.org/show_bug.cgi?id=14184
    >
    > Hi Louis, you might want to close that bug report ;-)
    >
    > It has been fixed in master and at least 4.11.2. Open
    > /usr/lib/python3/dist-packages/samba/uptodateness.py in your
    > favourite
    > editor
    >
    > Go down to 'def get_utdv(samdb, dn):'
    >
    > Find this block:
    >
    >          res = samdb.search(base=config_dn,
    >                             expression=("(&(invocationId=%s)"
    >
    > "(objectClass=nTDSDSA))" % inv_id),
    >                             attrs=["distinguishedName",
    > "invocationId"])
    >          settings_dn = str(res[0]["distinguishedName"][0])
    >          prefix, dsa_dn = settings_dn.split(',', 1)
    >          if prefix != 'CN=NTDS Settings':
    >
    > And change it to:
    >
    >          res = samdb.search(base=config_dn,
    >                             expression=("(&(invocationId=%s)"
    >
    > "(objectClass=nTDSDSA))" % inv_id),
    >                             attrs=["distinguishedName",
    > "invocationId"])
    >          try:
    >              settings_dn = str(res[0]["distinguishedName"][0])
    >              prefix, dsa_dn = settings_dn.split(',', 1)
    >          except IndexError as e:
    >              print("Unknown invocation ID %s" % inv_id,
    >                    file=sys.stderr)
    >              continue
    >          if prefix != 'CN=NTDS Settings':
    >
    > Close and save the file and try again.
    >
    > Rowland
    >
    >
    >
    > --
    > To unsubscribe from this list go to the following URL and read the
    > instructions:  https://lists.samba.org/mailman/options/samba
    >
    >


    --
    To unsubscribe from this list go to the following URL and read the
    instructions:  https://lists.samba.org/mailman/options/samba



© 2019 KNOCK, inc. All rights reserved. KNOCK, inc, is a registered trademark of KNOCK, inc. This message and any attachments contain information, which is confidential and/or privileged. If you are not the intended recipient, please refrain from any disclosure, copying, distribution or use of this information. Please be aware that such actions are prohibited. If you have received this transmission in error, kindly notify the sender by e-mail. Your cooperation is appreciated.


More information about the samba mailing list