slapformat: don't show user in login managers like gdm

Add parameter to useradd specifying that we have daemon (system) user, not normal one.
parent 27761b98
......@@ -465,6 +465,7 @@ class User(object):
try:
pwd.getpwnam(self.name)
except KeyError:
user_parameter_list.append('--system')
callAndRead(['useradd'] + user_parameter_list)
else:
callAndRead(['usermod'] + user_parameter_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment