Project

General

Profile

Actions

Bug #26351

open

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 10 days ago. Updated 10 days ago.

Status:
Pending release
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 10 days 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 10 days ago

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

Updated by Nicolas CHARLES 10 days 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 10 days ago

  • Status changed from Pending technical review to Pending release
Actions

Also available in: Atom PDF