Project

General

Profile

Actions

User story #20675

closed

allow a user to pass a password to server create-user command

Added by Benoît PECCATTE almost 3 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
Checked
Regression:

Description

This would allow automating user creation


Subtasks 1 (0 open1 closed)

User story #21163: correct documentation of parent ticketReleasedBenoît PECCATTEActions
Actions #1

Updated by Benoît PECCATTE almost 3 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #2

Updated by Benoît PECCATTE almost 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/359
Actions #3

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 7.0.1 to 7.0.2
Actions #4

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 7.0.2 to 7.0.3
Actions #5

Updated by Benoît PECCATTE over 2 years ago

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

Updated by Nicolas CHARLES over 2 years ago

  • Fix check changed from To do to Error - Blocking

this does not work with an environement variable. Tested also with empty -p, or no quotes with same failure

# ADMIN_PASSWORD="truc" rudder server create-user -u machin 
Usage:
    htpasswd [-cimBdpsDv] [-C cost] passwordfile username
    htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password

    htpasswd -n[imBdps] [-C cost] username
    htpasswd -nb[mBdps] [-C cost] username password
 -c  Create a new file.
 -n  Don't update file; display results on stdout.
 -b  Use the password from the command line rather than prompting for it.
 -i  Read password from stdin without verification (for script usage).
 -m  Force MD5 encryption of the password (default).
 -B  Force bcrypt encryption of the password (very secure).
 -C  Set the computing time used for the bcrypt algorithm
     (higher is more secure but slower, default: 5, valid: 4 to 31).
 -d  Force CRYPT encryption of the password (8 chars max, insecure).
 -s  Force SHA encryption of the password (insecure).
 -p  Do not encrypt the password (plaintext, insecure).
 -D  Delete the specified user.
 -v  Verify password for the specified user.
On other systems than Windows and NetWare the '-p' flag will probably not work.
The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.

Actions #7

Updated by Vincent MEMBRÉ over 2 years ago

  • Fix check changed from Error - Blocking to Checked
Actions #8

Updated by Vincent MEMBRÉ over 2 years ago

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

Actions #9

Updated by Alexis Mousset over 2 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF