mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
library/ipanss.py: Check if principal is an empty string
This commit is contained in:
@@ -332,7 +332,7 @@ def main():
|
||||
# Check that nss is working properly
|
||||
if not on_master:
|
||||
user = principal
|
||||
if user is None:
|
||||
if user is None or user == "":
|
||||
user = "admin@%s" % domain
|
||||
module.log("Principal is not set when enrolling with OTP"
|
||||
"; using principal '%s' for 'getent passwd'" % user)
|
||||
|
||||
Reference in New Issue
Block a user