Bug 29344

Summary: univention-mount-homedir verwendet getent passwd $USER - aber $USER nicht immer gefüllt
Product: UCS Reporter: Tim Petersen <petersen>
Component: PAMAssignee: UCS maintainers <ucs-maintainers>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: gohmann, hahn
Version: UCS 3.1   
Target Milestone: UCS 3.2-x   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- 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): UCS Performance
Max CVSS v3 score:
Attachments: univention-mount-homedir

Description Tim Petersen univentionstaff 2012-11-21 08:56:06 CET
In /etc/pam.d/common-session ist "pamrunasroot.so /usr/sbin/univention-mount-homedir" required.
Das Skript wertet unter anderem username=$USER aus um dann später "getent passwd $username" zu machen.
In bestimmten Situationen (sudo -s, etc.) ist $USER aber nicht gefüllt. Das führt dann dazu, dass "getent passwd" ausgeführt wird, was in größeren Umgebungen entsprechend lange dauern kann.
Comment 1 Moritz Muehlenhoff univentionstaff 2013-05-31 10:43:14 CEST
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2.

As such, this bug is moved to the new target milestone.
Comment 2 Philipp Hahn univentionstaff 2013-07-18 18:15:54 CEST
Created attachment 5330 [details]
univention-mount-homedir

Mostly a complete rewrite:
1. username="${1:-${USER:?neither \$1 nor \$USER}}"
2. Drop handling for deprecated Thin-Client since UCS-3.0
3. Use "mountpoint" to check for already mounted $HOME
4. Handle space in share name.
5. Reduce code duplication by reordering code
6. ...
Comment 3 Stefan Gohmann univentionstaff 2017-06-16 20:39:20 CEST
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4.

If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
Comment 4 Stefan Gohmann univentionstaff 2017-08-08 07:09:21 CEST
This issue has been filed against UCS 3.1.

UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.