From b31f259b1a24b5da8a8ed80d27b1f925220e8f24 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Fri, 12 Feb 2010 13:33:25 +0100 Subject: Add default automount location. Auto-create auto.direct in new locations. --- ipalib/plugins/automount.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipalib/plugins') 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) -- cgit