Automount segfaults if it can't parse an LDAP entry.

Bug #962348 reported by darqchild
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs5 (Ubuntu)
New
Low
Unassigned

Bug Description

When autofs is configured to use LDAP it segfaults upon failing to parse an entry in our LDAP directory.

See attachment for valgrind log, backtrace, configuration files and .ldif file.

$ lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

$ apt-cache policy autofs5-ldap
autofs5-ldap:
  Installed: 5.0.6-0ubuntu3
  Candidate: 5.0.6-0ubuntu3
  Version table:
 *** 5.0.6-0ubuntu3 0
        500 http://10.1.4.185/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status

Program output:

# automount -vdf
Starting automounter version 5.0.6, master map /etc/auto.master
using kernel protocol version 5.02
lookup_nss_read_master: reading master file /etc/auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_master: reading master ldap auto.master
parse_init: parse(sun): init gathered global options: (null)
syntax error in map near [ home ldap:ou=auto.home,ou=automount,ou=admin,dc=xxxxxxx,dc=xxxxx,dc=com ]
Segmentation fault (core dumped)

Revision history for this message
darqchild (darqchild) wrote :
James Page (james-page)
Changed in autofs5 (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.