summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-server-install
diff options
context:
space:
mode:
authorAna Krivokapic <akrivoka@redhat.com>2013-03-27 13:48:01 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-28 08:45:37 +0100
commitdae163aa37a7ea07399a964a143f378c5cb6bffa (patch)
tree305577fe97db7ea386e151cc3c6e83fdbcb41ae6 /install/tools/ipa-server-install
parenta8a77bfb686479ba27e0ff5a186b237d048abe59 (diff)
downloadfreeipa-dae163aa37a7ea07399a964a143f378c5cb6bffa.tar.gz
freeipa-dae163aa37a7ea07399a964a143f378c5cb6bffa.tar.xz
freeipa-dae163aa37a7ea07399a964a143f378c5cb6bffa.zip
Add mkhomedir option to ipa-server-install and ipa-replica-install
Add the option to create home directories for users on their first login to ipa-server-install and ipa-replica-install. https://fedorahosted.org/freeipa/ticket/3515
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-xinstall/tools/ipa-server-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 479894b36..a289941e4 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -132,6 +132,12 @@ def parse_options():
basic_group.add_option("-a", "--admin-password",
sensitive=True, dest="admin_password",
help="admin user kerberos password")
+ basic_group.add_option("--mkhomedir",
+ dest="mkhomedir",
+ action="store_true",
+ default=False,
+ help="create home directories for users "
+ "on their first login")
basic_group.add_option("--hostname", dest="host_name", help="fully qualified name of server")
basic_group.add_option("--ip-address", dest="ip_address",
type="ip", ip_local=True,
@@ -1143,6 +1149,8 @@ def main():
args.append("--no-ssh")
if not options.conf_sshd:
args.append("--no-sshd")
+ if options.mkhomedir:
+ args.append("--mkhomedir")
run(args)
except Exception, e:
sys.exit("Configuration of client side components failed!\nipa-client-install returned: " + str(e))