#1051841 debian-edu-testsuite reports errors

#1051841#5
Date:
2023-09-13 11:03:45 UTC
From:
To:
$ grep ^error /var/log/installer/debian-edu-install-testsuite
error: ./doc: The manual for the Bookworm release has 1 FIXMEs.  Please fix at https://wiki.debian.org/DebianEdu/Documentation/Bookworm.
error: ./filesystems: Using ext2 on /boot
error: ./ldap-client: Missing /skole mount point in ldap
error: ./ldap-client: Missing tjener mount point in ldap
error: ./ldap-client: Missing / mount point in ldap
error: ./ldap-client: TLS search for cn=admins failed.
error: ./ldap-client: Not only one PAM module of krb5, ldap and sss is enabled
error: ./ldap-server: search fail before flodding the LDAP server with 1200 connections
error: ./ldap-server: search fail after flodding the LDAP server with 1200 connections
error: ./rdp-server: xrdp service is not listening on 3389/tcp.

#1051841#10
Date:
2023-09-14 07:07:50 UTC
From:
To:
This seems bogus, there should be an exception for boot.

All of the above are due to incorrect ldapsearch invocation.

/etc/pam.d/common-auth contains:

    …
    auth    [success=3 default=ignore]      pam_krb5.so minimum_uid=1000
    auth    [success=2 default=ignore]      pam_unix.so nullok try_first_pass
    auth    [success=1 default=ignore]      pam_ldap.so minimum_uid=1000 use_first_pass
    …

So PAM tries them in the given order until one succeeds, I'm not sure
what is wrong with that. The git history of testsuite/ldap-client is
not helpful either why this was added.

All of the above are due to incorrect ldapsearch invocation.

This can be probably be ignored as I have set up FAI on top of my LTSP
setup.

#1051841#15
Date:
2023-09-14 08:57:32 UTC
From:
To:
[Guido Berhoerster]

The pam_ldap.so line should be removed.  The LDAP authentication send
the password over to the LDAP server for verification, hopefully via an
TLS channel, allowing a rouge server to collect user passwords, while
Kerberos only send an encrypted timestamp to the server.  Because of
this Debian Edu do not want LDAP authentication enabled, and uses
Kerberos exclusively over the network.

I do not understand what you mean here.  How is this relevant?

#1051841#20
Date:
2023-09-14 12:17:31 UTC
From:
To:
OK, digging into history shows that this has been a problem before
(#591773) which had a workaround via cfengine. However, that was removed
in
https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/3a2cb02332e0dea3bb1dae1847de1a7fe542b1c6
well before bullseye and in bullseye libpam-ldapd does not get pulled in
on non-roaming installs.

The dependency chain in bookworm is education-networked-common -> nslcd
-> libpam-ldapd and nslcd still has "libpam-ldapd | libpam-ldap |
libpam-krb5 | libpam-heimdal | libpam-sss" but
education-networked-common also directly recommends libpam-ldapd which
seems to be the culprit.

The following commit introduced the dependency:

https://salsa.debian.org/debian-edu/debian-edu/-/commit/16307694c2a24b13a5a910c7cbcacafc8bf6abec

It's a quirk on my local system, I shouldn't have included it in the
report.

#1051841#25
Date:
2026-08-19 19:47:14 UTC
From:
To:
Control: reassign -1 src:debian-edu-config

All of the above issues probably need to get resolved in
debian-edu-config. So, reassigning...

Mike