If the GPO "Default Domain Policy" was renamed running samba_upgradedns fails with and get an python error pointing to /usr/lib/python2.7/dist-packages/samba/provision/__init__.py line 271 Reading domain information Traceback (most recent call last): File "/usr/sbin/samba_upgradedns", line 261, in <module> paths, lp.configfile, lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 271, in find_provision_key_parameters names.policyid = str(res7[0]["cn"]).replace("{","").replace("}","") IndexError: list index out of range This is the code snippet failing ---------------------------------------- res7 = samdb.search(expression="(displayName=Default Domain Policy)", base="CN=Policies,CN=System," + basedn, scope=ldb.SCOPE_ONELEVEL, attrs=["cn","displayName"]) names.policyid = str(res7[0]["cn"]).replace("{","").replace("}","") ----------------------------------------
Created attachment 11595 [details] Bug fix patch This patch changes the search from using the 'displayName' attribute to using the 'name' attribute, it also does the same for the 'Default Domain Controllers Policy' search.
Created attachment 11596 [details] new bug fix patch New patch as requested