Skip to content
Snippets Groups Projects
Commit 9fa0419d authored by Thomas Woerner's avatar Thomas Woerner
Browse files

library/ipanss.py: Check if principal is an empty string

parent 0a8672fc
No related branches found
No related tags found
No related merge requests found
...@@ -332,7 +332,7 @@ def main(): ...@@ -332,7 +332,7 @@ def main():
# Check that nss is working properly # Check that nss is working properly
if not on_master: if not on_master:
user = principal user = principal
if user is None: if user is None or user == "":
user = "admin@%s" % domain user = "admin@%s" % domain
module.log("Principal is not set when enrolling with OTP" module.log("Principal is not set when enrolling with OTP"
"; using principal '%s' for 'getent passwd'" % user) "; using principal '%s' for 'getent passwd'" % user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment