The Samba-Bugzilla – Attachment 11596 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]
new bug fix patch
0001-Provision-__init__.py-fix-bug-11600.patch (text/plain), 1.79 KB, created by
Rowland Penny
on 2015-11-13 14:23:35 UTC
(
hide
)
Description:
new bug fix patch
Filename:
MIME Type:
Creator:
Rowland Penny
Created:
2015-11-13 14:23:35 UTC
Size:
1.79 KB
patch
obsolete
>From fe420f6771d50144c19f992fea12aea95c83adec Mon Sep 17 00:00:00 2001 >From: Rowland Penny <repenny241155@gmail.com> >Date: Fri, 13 Nov 2015 14:15:34 +0000 >Subject: [PATCH] Provision __init__.py fix bug 11600 > >Signed-off-by: Rowland Penny <repenny241155@gmail.com> >--- > python/samba/provision/__init__.py | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > >diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py >index 953bd0f..b36a7d2 100644 >--- a/python/samba/provision/__init__.py >+++ b/python/samba/provision/__init__.py >@@ -276,16 +276,15 @@ 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={%s})" % DEFAULT_POLICY_GUID, > 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={%s})" % DEFAULT_DC_POLICY_GUID, >+ 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