1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

s4-classicupgrade: Use s3param.get_context() instead of result.lp

We should not need the guessed values here, but by changing to using the s3 loadparm context
we can move this block to before the provision.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2012-08-27 16:56:35 +10:00
parent 1ed6070570
commit 738f4ac058

View File

@ -810,7 +810,7 @@ Please fix this account before attempting to upgrade again
pgids = {}
if ldap:
creds = Credentials()
creds.guess(result.lp)
creds.guess(s3param.get_context())
creds.set_bind_dn(ldapuser)
creds.set_password(ldappass)
urls = samba3.lp.get("passdb backend").split(":",1)[1].strip('"')