autofs package is missing the lookup_sss.so module(!); negating autofs-enabled sssd functionality (automount fails)

Bug #1081489 reported by martin
40
This bug affects 5 people
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
Fix Released
Medium
Timo Aaltonen

Bug Description

Brief:

We are running an environment where users' home directories are automounted based on information stored in an LDAP db. To avoid double-lookups (and increase performance and stability), we use the sssd daemon to cache login and automount information. I.e, the /etc/nsswitch.conf has 'automount: sss' as opposed to 'automount: ldap'.

Problem:

The autofs pkg in Linux Mint 14 is missing the 'lookup_sss.so' module (which autofs uses to obtain the automount information from the System Security Services Daemon/sssd.) This means that the entire sssd integration with autofs is unable to function properly.

Since this looks like an oversight; I am reporting this issue as a bug in the hope of a quick upstream fix. Naturally, the Mint installation is not working very well without this functionality in place and maintaining custom packages for this task is not a good option.

Information Required for Inclusion In Main Proposal
====================================================

Availability:
 SSSD is already in the Ubuntu universe, and builds successfully for the architectures it is designed to work on as required.

Rationale:
 This package is essential for enterprise environments using automounted NFS home directories. Without it, there is no way to cache autofs maps leading to failed logins as autofs starts before networking is up.

 The package is to be a new build dependency of a package that we already support (autofs). This resolves bug No. 1081489 comment No. 5 allowing sssd's autofs module to be built correctly.

Security:
 The package has had 3 vulnerabilities discovered and patched in the last 18 months. Ubuntu uses the LTM (long-term maintenance) version of SSSD which is supported for longer than other releases with both fixes for important bugs and security patches. The Redhat security team are actively involved in fixing vulnerabilities in this package.

Quality assurance:

 The package meets all of the following criteria as required except where noted below:
 After installing the package it must be possible to make it working with a reasonable effort of configuration and documentation reading.
 The package must not ask debconf questions higher than medium if it is going to be installed by default. The debconf questions must have reasonable defaults.
 The status of important bugs in Debian's, Ubuntu's, and upstream's bug tracking systems must be evaluated. Links to these bug trackers need to be provided in the MIR report. Important bugs must be pointed out and discussed in the MIR report.
 The package is maintained well in Debian/Ubuntu (check out the Debian PTS)
 The package should not deal with exotic hardware which we cannot support.
 If the package ships a test suite, and there is no obvious reason why it cannot work during build (e. g. it needs root privileges or network access), it should be run during package build, and a failing test suite should fail the build.
 The package uses a debian/watch file whenever possible. In cases where this is not possible (e. g. native packages), the package should either provide a debian/README.source file or a debian/watch file (with comments only) providing clear instructions on how to generate the source tar file.

 ***There are no long-term outstanding bugs which affect the usability of the program to a major degree. To support a package, we must be reasonably convinced that upstream supports and cares for the package.***
 There is a long-term oustanding bug, i.e. autofs caching doesn't work... however the promotion to main and the patch provided in comment no. 3 will fix this!
UI standards:
N/A for this package

Dependencies:
*** NOT All build and binary dependencies (including Recommends:) are satisfiable in main *** libdhash1 and libsss-idmap0 required - see comment no. 12

Standards compliance:
Package is already present in Universe so should meet the FHS and Debian Policy standards.

Maintenance:
SSSD is well maintained with a clear maintenance policy from Redhat and the long term maintenance version is that already used in Ubuntu ensuring longevity of security updates and fixes.

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

It doesn't seem likely to me that Ubuntu could have introduced this bug in the delta against Debian, so it would be best to verify and file a bug in Debian.

Alternatively, patches welcome!

Changed in autofs (Ubuntu):
importance: Undecided → Medium
Revision history for this message
martin (martin-andersen) wrote :

Thanks for replying. The, AFAIK, most recent autofs package provided in the Ubuntu repositories (5.0.6-2ubuntu2) already have the sssd patches included for this functionality. However, the configure script is not looking in the correct directory for the 'libsss_autofs.so' lib (which is provided by sssd-1.9.1); and thus sssd is disabled by default in Makefile.conf (SSSD = )

The small patch provided should address this issue, and include the correct path in the debian/rules file. I also explicitly enabled it in Makefile.conf with 'SSSD = 1', but I strictly this should not be needed.

--Martin

Revision history for this message
martin (martin-andersen) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "autofs-5.0.6-enable-sssd.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Robie Basak (racb) wrote :

Ah, we have a catch. I apologise for not noticing this before.

I've verified that /usr/lib/x86_64-linux-gnu/sssd/modules/libsss_autofs.so is provided by sssd. So your patch would require a new build dependency on sssd. However, sssd is in universe, and autofs is in main, so we can't depend on it as this is not permitted by policy (http://people.canonical.com/~cjwatson/ubuntu-policy/policy.html/ch-archive.html#s-main).

The only solutions I'm aware of are to promote sssd to main or to demote autofs to universe. The former is dependent on Canonical's agreement to support it in main, and I'm not sure how the requirements weigh up in this case (https://wiki.ubuntu.com/UbuntuMainInclusionRequirements).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autofs (Ubuntu):
status: New → Confirmed
Revision history for this message
martin (martin-andersen) wrote :

I hope it will be possible to promote sssd to main, so that the build dependency can be resolved. Running Ubuntu in an enterprise environment needs this functionality to be in place.

Revision history for this message
Vanush "Misha" Paturyan (misha-cs) wrote :

What about creating a separate packages autofs-sss (similar to autofs-ldap) and putting it into universe?

Apart from that is there an easy way to obtain a patched autofs package or do I have to compile my own version if I want to use it?

Revision history for this message
Dan Bishop (danbishop) wrote :

Subscribed ubuntu-mir in the hope of including sssd in main to fix this issue.

sssd is pretty much essential for enterprise setups and the only way to reliably cache autofs maps. Promoting sssd to main so that the above patch can be used looks like a great way to fix this... Having read through the requirements, I see no reason why sssd shouldn't be promoted.

Revision history for this message
Vanush "Misha" Paturyan (misha-cs) wrote :

What should be done for sssd to be considered for promotion?

Revision history for this message
Michael Terry (mterry) wrote :

Follow https://wiki.ubuntu.com/UbuntuMainInclusionRequirements and flesh this bug's description out with the requested information.

Dan Bishop (danbishop)
description: updated
Revision history for this message
Dan Bishop (danbishop) wrote :

I've attempted to provide all the requested information in body of the bug report, but did run across one possible problem...

The sssd package depends on several other sssd-something packages and these would also have to be included in main. I had a quick run through them and each of their individual dependencies appear to be in main already with two exceptions: libdhash1 and libsss-idmap0

Both of these packages are required by several of sssd's dependencies and so as I understand it, would also need to be moved to main.

Both libdhash1 and libsss-idmap0's dependencies are already in main so no further packages would be required.

Dan Bishop (danbishop)
description: updated
Revision history for this message
Michael Terry (mterry) wrote :

Doko, is this something you could look at?

Changed in sssd (Ubuntu):
assignee: nobody → Matthias Klose (doko)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

there already is a MIR for sssd:

https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/903752

which is just missing someone who knows germinate enough to add it to the supported seed..

Revision history for this message
Michael Terry (mterry) wrote :

Ah perfect! I forgot about that MIR. I will drop that task from this bug then.

no longer affects: sssd (Ubuntu)
Revision history for this message
Dan Bishop (danbishop) wrote :

Thank you both!

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

so sssd should be moved to main already, I'll see that it happens and provide this feature to debian too.

Changed in autofs (Ubuntu):
assignee: nobody → Timo Aaltonen (tjaalton)
status: Confirmed → In Progress
Revision history for this message
Dan Bishop (danbishop) wrote : Re: [Bug 1081489] Re: autofs package is missing the lookup_sss.so module(!); negating autofs-enabled sssd functionality (automount fails)

That's amazing! Thanks Timo!!! :D

On 31 January 2014 13:30, Timo Aaltonen <email address hidden> wrote:

> so sssd should be moved to main already, I'll see that it happens and
> provide this feature to debian too.
>
> ** Changed in: autofs (Ubuntu)
> Status: Confirmed => In Progress
>
> ** Changed in: autofs (Ubuntu)
> Assignee: (unassigned) => Timo Aaltonen (tjaalton)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1081489
>
> Title:
> autofs package is missing the lookup_sss.so module(!); negating
> autofs-enabled sssd functionality (automount fails)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linuxmint/+bug/1081489/+subscriptions
>

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

uploaded to trusty, but is in the queue now, and needs sssd to move to main first

Changed in autofs (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autofs - 5.0.7-3ubuntu2

---------------
autofs (5.0.7-3ubuntu2) trusty; urgency=medium

  * Add support for sssd backend (LP: #1081489)
    - control: Add sssd-common to build-depends.
    - rules: Set sssldir for the sssd module so autoreconf knows about it.
 -- Timo Aaltonen <email address hidden> Fri, 31 Jan 2014 13:57:03 +0200

Changed in autofs (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Dan Bishop (danbishop) wrote :

I've upgraded autofs to 5.0.7-3ubuntu2 on Trusty... but still get:

automount[3824]: open_lookup:93: cannot open lookup module sss (/usr/lib/x86_64-linux-gnu/autofs/lookup_sss.so: cannot open shared object file: No such file or directory)

When trying to use automount with sssd...

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

thanks for testing, reopening

Changed in autofs (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Adam Conrad (adconrad) wrote :

This diff seems to fix the bug where the autoconf check completely skips sssldir if it's preseeded (oops), and should be fairly upstreamable:

http://paste.ubuntu.com/7207283/

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autofs - 5.0.7-3ubuntu3

---------------
autofs (5.0.7-3ubuntu3) trusty; urgency=medium

  * fix-ssslib-search.patch: Don't skip sssd autofs search if presseded.
  * rules: set ssslibdir correctly when calling configure (LP: #1081489)
 -- Adam Conrad <email address hidden> Sat, 05 Apr 2014 05:26:53 -0600

Changed in autofs (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
rdratlos (rdratlos) wrote :

For servers still hanging on Ubuntu 12.04 (Precise), you will find a backport of the above mentioned fix in Launchpad: https://launchpad.net/~rdratlos/+archive/ubuntu/autofs.

---------------
autofs (5.0.7-3ubuntu3ppa1) precise; urgency=medium

  * Backport from Ubuntu 14.04 LTS (Trusty):
    - Integrate SSSD and autofs for looking up automounter data stored in
      centralized remote directories such as LDAP (LP: #1081489)
    - Replace sssd-common by sssd in build-depends
 -- Thomas Reim <email address hidden> Thu, 31 Jul 2014 00:26:53 +0100

Revision history for this message
Robie Basak (racb) wrote :

Did this patch get sent upstream? We're still having to maintain the Ubuntu delta here.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Did not get sent yet, but I'll commit Adam's patch to Debian and drop mine, the one that adds multiarch path to search paths is not needed if sssldir is preseeded. fix-ssslib-search.patch is the upstreamable one anyway.

no longer affects: linuxmint
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.