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

r26587: Fix reading Samba 3 WINS database and initial work on group db, aliases and secrets.

(This used to be commit c7c4cf258a)
This commit is contained in:
Jelmer Vernooij
2007-12-24 13:04:33 -06:00
committed by Stefan Metzmacher
parent 6c9a2a3c52
commit 95b1f554b2
3 changed files with 196 additions and 40 deletions

View File

@ -530,14 +530,7 @@ data: %d
if ldapurl is not None:
message("Enabling Samba3 LDAP mappings for SAM database")
samdb.modify("""
dn: @MODULES
changetype: modify
replace: @LIST
@LIST: samldb,operational,objectguid,rdn_name,samba3sam
""")
samdb.add({"dn": "@MAP=samba3sam", "@MAP_URL": ldapurl})
enable_samba3sam(samdb)
return ret
@ -551,3 +544,15 @@ def upgrade_verify(subobj, samba3, paths, message):
assert(len(msg) >= 1)
# FIXME
def enable_samba3sam(samdb):
samdb.modify("""
dn: @MODULES
changetype: modify
replace: @LIST
@LIST: samldb,operational,objectguid,rdn_name,samba3sam
""")
samdb.add({"dn": "@MAP=samba3sam", "@MAP_URL": ldapurl})