User story #20675closed
allow a user to pass a password to server create-user command
This would allow automating user creation
Updated by Benoît PECCATTE 10 months 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
Updated by Benoît PECCATTE 7 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-agent|dec2673c885c5cd9215618dce3b2d042661dd538.
Updated by Nicolas CHARLES 6 months ago
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.