Bug 57298 - Generate pam configuration file /etc/pam.d/common-session-noninteractive from UCR template
Summary: Generate pam configuration file /etc/pam.d/common-session-noninteractive from...
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: PAM
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2
Assignee: Christian Castens
QA Contact: Dirk Wiesenthal
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-17 13:53 CEST by Christian Castens
Modified: 2025-01-28 12:34 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2024-05-17 13:53:48 CEST
After upgrading UCS 5.0-7 to UCS 5.2-0 the pam configuration file `/etc/pam.d/common-session-noninteractive` still contains the pam module `pam_ldap.so`.
The pam module `pam_ldap.so` is provided by the package `libpam-ldap` which is not available on UCS 5.2-0.

During the upgrade from UCS 5.0-7 to UCS 5.2-0, the `libpam-runtime` detects that some of its configuration files (/etc/pam.d/common-*) were adjusted (they were created from UCR templates). Because of that, it decides not to overwrite the config files in `/etc/pam.d/` during the update.

`/etc/pam.d/common-session-noninteractive` is the only /etc/pam.d/common-* file that is not generated from a UCR template. All other /etc/pam.d/common-* files get updated by their UCR template during the UCS upgrade. This is the reason why this file is the only one that still contains the `pam_ldap.so` entry.


This issue was detected by test `01_base.04check_pam_modules` during the "UCS 5.2 upgrade tests" (jenkins)


Generating `/etc/pam.d/common-session-noninteractive` from a UCR template solves this issue.
Comment 2 Christian Castens univentionstaff 2024-05-21 14:38:46 CEST
UCS 5.2:

univention-pam (15.0.11)
9817a6e9a064 | Bug #57298: add UCR template for pam config file `/etc/pam.d/common-session-noninteractive`