From 1317cf4966245d16eaea430a187e6af9216071c4 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 8 Dec 2010 13:58:16 -0500 Subject: Check the number of fields when importing automount maps https://fedorahosted.org/freeipa/ticket/359 --- ipalib/plugins/automount.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipalib/plugins/automount.py') diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py index 56895245a..7cc7a147e 100644 --- a/ipalib/plugins/automount.py +++ b/ipalib/plugins/automount.py @@ -351,6 +351,9 @@ class automountlocation_import(LDAPQuery): if len(m) == 0: continue am = m.split(None) + if len(am) < 2: + continue + if am[1].startswith('/'): mapfile = am[1].replace('"','') am[1] = os.path.basename(am[1]) -- cgit