sasl/gssapi tests are disabled due to missing build-deps

Bug #1976508 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Fix Released
Undecided
Sergio Durigan Junior

Bug Description

Openldap has an extensive test suite that is run during build. The sasl/gssapi tests are being skipped because of missing build dependencies:

    >>>>> Starting test077-sasl-gssapi for mdb...
    running defines.sh
    Starting KDC for SASL/GSSAPI tests...
    Trying Heimdal KDC...
    Trying MIT KDC...
    No KDC available, skipping GSSAPI tests
    >>>>> test077-sasl-gssapi completed OK for mdb after 0 seconds.

With this diff, the test was finally run:
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,12 @@ Build-Depends: debhelper-compat (= 12),
                perl:any,
                pkg-config (>= 0.29),
                po-debconf,
- unixodbc-dev <!pkg.openldap.noslapd>
+ unixodbc-dev <!pkg.openldap.noslapd>,
+ krb5-admin-server,
+ krb5-user,
+ krb5-kdc,
+ libsasl2-modules-gssapi-mit,
+ sasl2-bin
 Build-Conflicts: libbind-dev, bind-dev, autoconf2.13
 Standards-Version: 4.6.0
 Homepage: https://www.openldap.org/

Result:
>>>>> Starting test077-sasl-gssapi for mdb...
running defines.sh
Starting KDC for SASL/GSSAPI tests...
Trying Heimdal KDC...
Trying MIT KDC...
Configuring slapd...
Starting ldap:/// slapd on TCP/IP port 9011 and ldaps:/// slapd on 9012...
Using ldapsearch to check that slapd is running...
supportedSASLMechanisms: GSSAPI
Using ldapwhoami with SASL/GSSAPI: success
Validating mapped SASL/GSSAPI ID: success
Using ldapwhoami with SASL/GSSAPI with start-tls: success
Using ldapwhoami with SASL/GSSAPI with ldaps: success
SASL has no channel-binding support in GSSAPI, test skipped
>>>>> Test succeeded
>>>>> test077-sasl-gssapi completed OK for mdb after 2 seconds.

About the missing channel binding support, I filed bug #1976507 against cyrus-sasl2.

Related branches

Changed in openldap (Ubuntu):
assignee: nobody → Sergio Durigan Junior (sergiodj)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap - 2.5.12+dfsg-2ubuntu2

---------------
openldap (2.5.12+dfsg-2ubuntu2) kinetic; urgency=medium

  * Enable SASL/GSSAPI tests. (LP: #1976508)
    - d/control: Update B-D to include required dependencies needed to run
      SASL/GSSAPI tests during build time, and mark them "!nocheck".
    Thanks: Andreas Hasenack <email address hidden>

 -- Sergio Durigan Junior <email address hidden> Thu, 25 Aug 2022 16:20:08 -0400

Changed in openldap (Ubuntu):
status: In Progress → Fix Released
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.