ocserv: prevent ocpasswd from using sha2crypt
That doesn't cope well with uclibc. https://bugs.busybox.net/show_bug.cgi?id=7808 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
392316bfc8
commit
0d68740100
1 changed files with 12 additions and 0 deletions
12
net/ocserv/patches/001-ocpasswd-sha2crypt.patch
Normal file
12
net/ocserv/patches/001-ocpasswd-sha2crypt.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -ur ocserv-0.8.9/src/ocpasswd.c ocserv-0.8.9.new/src/ocpasswd.c
|
||||
--- ocserv-0.8.9/src/ocpasswd.c 2014-11-29 19:49:38.000000000 +0100
|
||||
+++ ocserv-0.8.9.new/src/ocpasswd.c 2015-01-19 23:21:14.959144113 +0100
|
||||
@@ -69,7 +69,7 @@
|
||||
exit(1);
|
||||
}
|
||||
|
||||
- strcpy(salt, "$5$");
|
||||
+ strcpy(salt, "$1$");
|
||||
p = salt + 3;
|
||||
|
||||
for (i = 0; i < sizeof(_salt); i++) {
|
Loading…
Reference in a new issue