From: Douglas Bagnall Date: Fri, 4 Dec 2020 00:56:56 +0000 (+1300) Subject: dbcheck: make rIDSetReferences attr check case-insensitve X-Git-Tag: samba-4.14.0rc1~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25a94fa4743f4bda9924786775aba43bb8c58c0d;p=thirdparty%2Fsamba.git dbcheck: make rIDSetReferences attr check case-insensitve Yes, it looks inefficient, but that's because it is just trying to fit in. Very soon we will fix it it properly. Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index 28b56edaafb..f691f977f6f 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -2632,7 +2632,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) if dn == self.server_ref_dn: # Check we have a valid RID Set - if "*" in attrs or "rIDSetReferences" in attrs: + if "*" in attrs or "ridsetreferences" in map(str.lower, attrs): if "rIDSetReferences" not in obj: # NO RID SET reference # We are RID master, allocate it.