1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-15 16:59:09 +03:00

r26369: Start on tests for the upgrade python code.

(This used to be commit c4458d11c7)
This commit is contained in:
Jelmer Vernooij
2007-12-10 10:29:20 +01:00
committed by Stefan Metzmacher
parent c926cddfad
commit b414ac5052
2 changed files with 30 additions and 0 deletions

View File

@ -15,6 +15,7 @@ from uuid import uuid4
from param import default_configuration
def regkey_to_dn(name):
"""Convert a registry key to a DN."""
dn = "hive=NONE"
for el in name.split("/")[1:]:
@ -191,6 +192,7 @@ unixID: %d""" % (m.sid, domaindn, m.sid, m.type, m.unix_id)
return ldif
def upgrade_wins(samba3):
"""Upgrade the WINS database."""
ldif = ""
version_id = 0