The Samba-Bugzilla – Attachment 11595 Details for
Bug 11600
samba_upgradedns fails if "Default Domain Policy" was renamed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug fix patch
0001-Provision-__init__.py-fix-for-bug-11600.patch (text/plain), 1.87 KB, created by
Rowland Penny
on 2015-11-13 13:36:14 UTC
(
hide
)
Description:
Bug fix patch
Filename:
MIME Type:
Creator:
Rowland Penny
Created:
2015-11-13 13:36:14 UTC
Size:
1.87 KB
patch
obsolete
>From 5ef0b657637401418b530246631e162fbc684162 Mon Sep 17 00:00:00 2001 >From: Rowland Penny <repenny241155@gmail.com> >Date: Fri, 13 Nov 2015 13:21:54 +0000 >Subject: [PATCH] Provision __init__.py: fix for bug 11600 > >Signed-off-by: Rowland Penny <repenny241155@gmail.com> >--- > python/samba/provision/__init__.py | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py >index 953bd0f..84cbff5 100644 >--- a/python/samba/provision/__init__.py >+++ b/python/samba/provision/__init__.py >@@ -276,16 +276,17 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf, > names.domainlevel = int(res6[0]["msDS-Behavior-Version"][0]) > > # policy guid >- res7 = samdb.search(expression="(displayName=Default Domain Policy)", >+ res7 = samdb.search(expression="(name={31B2F340-016D-11D2-945F-" >+ "00C04FB984F9})", > base="CN=Policies,CN=System," + basedn, > scope=ldb.SCOPE_ONELEVEL, attrs=["cn","displayName"]) > names.policyid = str(res7[0]["cn"]).replace("{","").replace("}","") > # dc policy guid >- res8 = samdb.search(expression="(displayName=Default Domain Controllers" >- " Policy)", >- base="CN=Policies,CN=System," + basedn, >- scope=ldb.SCOPE_ONELEVEL, >- attrs=["cn","displayName"]) >+ res8 = samdb.search(expression="(name={6AC1786C-016F-11D2-945F-" >+ "00C04FB984F9})", >+ base="CN=Policies,CN=System," + basedn, >+ scope=ldb.SCOPE_ONELEVEL, >+ attrs=["cn","displayName"]) > if len(res8) == 1: > names.policyid_dc = str(res8[0]["cn"]).replace("{","").replace("}","") > else: >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11600
: 11595 |
11596