library/ipajoin.py: Fix principal usage with otp

With otp usage the user supplied principal may not be used for join.
This commit is contained in:
Thomas Woerner
2017-09-15 14:06:39 +02:00
parent 6a9bc0df82
commit db12c0959a
2 changed files with 3 additions and 3 deletions

View File

@@ -231,7 +231,7 @@ def main():
options.ca_cert_file = ca_cert_file
options.unattended = True
options.principal = principal
options.principal = principal if principal != "" else None
options.force = False
options.password = password