mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 10:54:44 +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
|
# 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user