Explorar el Código

Note Python 3.3 or higher required for generating dovecot and znc hashes

Also makes code slightly terser.
Allen Riddell hace 10 años
padre
commit
88c0d1660f
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      README.textile

+ 4
- 4
README.textile Ver fichero

@@ -140,9 +140,9 @@ Retype new password: foo
140 140
 
141 141
 Remove @{SHA512-CRYPT}@ and insert the rest as the @password_hash@ value.
142 142
 
143
-Alternatively, if you don't already have @doveadm@ installed, Python will generate the appropriate string for you (assuming your password is @password@):
143
+Alternatively, if you don't already have @doveadm@ installed, Python 3.3 or higher will generate the appropriate string for you on Unix-based platforms (assuming your password is @password@):
144 144
 
145
-bc. python3 -c 'import crypt; print(crypt.crypt("password"))'
145
+bc. python3 -c 'import crypt; print(crypt.crypt("password", salt=crypt.METHOD_SHA512))'
146 146
 
147 147
 Same for the IRC password hash...
148 148
 
@@ -154,9 +154,9 @@ bc. # znc --makepass
154 154
 
155 155
 Take the string beginning with @sha256#@ and insert it as the value for @irc_password_hash@.
156 156
 
157
-Alternatively, if you don't already have @znc@ installed, Python will generate the appropriate string for you:
157
+Alternatively, if you don't already have @znc@ installed, Python 3.3 or higher will generate the appropriate string for you on Unix-based platforms (assuming your password is @password@):
158 158
 
159
-bc. python3 -c 'import crypt; salt, hash = crypt.crypt("password", crypt.mksalt(crypt.METHOD_SHA256)).split("$")[2:]; print("sha256#{}#{}".format(hash, salt))'
159
+bc. python3 -c 'import crypt; print("sha256#{}#{}".format(*crypt.crypt("password", salt=crypt.METHOD_SHA256).split("$")[2:]))'
160 160
 
161 161
 For git hosting, copy your public key into place. @cp ~/.ssh/id_rsa.pub roles/git/files/gitolite.pub@ or similar.
162 162
 

Loading…
Cancelar
Guardar