summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2010-02-12 13:33:25 +0100
committerRob Crittenden <rcritten@redhat.com>2010-02-12 10:46:20 -0500
commitb31f259b1a24b5da8a8ed80d27b1f925220e8f24 (patch)
treeb7769f3897b29c6eba57735467c27ad2453573dc /ipalib/plugins
parent85bb506d5b471aa6bdbf96be7c95bad244640595 (diff)
downloadfreeipa-b31f259b1a24b5da8a8ed80d27b1f925220e8f24.tar.gz
freeipa-b31f259b1a24b5da8a8ed80d27b1f925220e8f24.tar.xz
freeipa-b31f259b1a24b5da8a8ed80d27b1f925220e8f24.zip
Add default automount location. Auto-create auto.direct in new locations.
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/automount.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 051f6d05..85b13293 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -121,6 +121,9 @@ class automountlocation_add(LDAPCreate):
def post_callback(self, ldap, dn, entry_attrs, *keys, **options):
# create auto.master for the new location
self.api.Command['automountmap_add'](keys[-1], u'auto.master')
+ self.api.Command['automountmap_add_indirect'](
+ keys[-1], u'auto.direct', key=u'/-'
+ )
return dn
api.register(automountlocation_add)