View | Details | Raw Unified | Return to bug 54360
Collapse All | Expand All

(-)42_cn_groups.quilt (+15 lines)
 Lines 239-241    Link Here 
239
+-
239
+-
240
+replace: showInAdvancedViewOnly
240
+replace: showInAdvancedViewOnly
241
+showInAdvancedViewOnly: FALSE
241
+showInAdvancedViewOnly: FALSE
242
diff --git python/samba/dbchecker.py python/samba/dbchecker.py
243
index 0085b4a8515..1030a1e553d 100644
244
--- python/samba/dbchecker.py
245
+++ python/samba/dbchecker.py
246
@@ -131,7 +131,8 @@ class dbcheck(object):
247
         self.link_id_cache = {}
248
         self.name_map = {}
249
         try:
250
-            res = samdb.search(base="CN=DnsAdmins,CN=Users,%s" % samdb.domain_dn(), scope=ldb.SCOPE_BASE,
251
+            res = samdb.search(base="%s" % samdb.domain_dn(), scope=ldb.SCOPE_SUBTREE,
252
+                               expression="(&(CN=DnsAdmins)(objectClass=group))",
253
                                attrs=["objectSid"])
254
             dnsadmins_sid = ndr_unpack(security.dom_sid, res[0]["objectSid"][0])
255
             self.name_map['DnsAdmins'] = str(dnsadmins_sid)
256

Return to bug 54360