Project

General

Profile

Actions

Bug #26351

closed

ssh key distribution reports The user <username> does not have a defined home dir when username has a dash in it

Added by Nicolas CHARLES about 2 months ago. Updated about 1 month ago.

Status:
Released
Priority:
To review
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When managing keys for user with a dash in the login, we get the reports

E| error         sshKeyDistribution        Flush SSH file            ztc-bob            The user ztc-bob does not have a defined home dir
E| compliant     sshKeyDistribution        Flush SSH file            ztc-bob            The keys for user ztc-bob were all correctly set

reported home dire looks correct

  runhook_sshKeyDistribution_pre_hook.homedir[ztc_bob] has the value /home/ztc-bob 

so i think it's really a reporting issue and not something else

Actions #1

Updated by Nicolas CHARLES about 2 months ago

ok, it seems it works by mistake, as

home_directory_${${bundles}.sshkey_distribution_name[${array[${bundles}]}]}_defined
contains the dash

Actions #2

Updated by Nicolas CHARLES about 2 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #3

Updated by Nicolas CHARLES about 2 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1863
Actions #4

Updated by Nicolas CHARLES about 2 months ago

  • Status changed from Pending technical review to Pending release
Actions #5

Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.2.5 which was released today.

Actions

Also available in: Atom PDF