summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/automount.py
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-12-08 13:58:16 -0500
committerRob Crittenden <rcritten@redhat.com>2010-12-20 11:27:38 -0500
commit1317cf4966245d16eaea430a187e6af9216071c4 (patch)
treeaa8a1e140493680e6289bdbc2e83cb8864a6a1c0 /ipalib/plugins/automount.py
parentee4d2739f11465ba6a7d817f9b988da5bfe86e2c (diff)
downloadfreeipa-1317cf4966245d16eaea430a187e6af9216071c4.tar.gz
freeipa-1317cf4966245d16eaea430a187e6af9216071c4.tar.xz
freeipa-1317cf4966245d16eaea430a187e6af9216071c4.zip
Check the number of fields when importing automount maps
https://fedorahosted.org/freeipa/ticket/359
Diffstat (limited to 'ipalib/plugins/automount.py')
-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 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])