From 7a792ee564eed46d2ea634459f8419b9916c3da8 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 20 Jan 2015 22:19:08 +0100 Subject: [PATCH] luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt Signed-off-by: Nikos Mavrogiannopoulos --- applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua index e2a08acf36..2e530c0841 100644 --- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua +++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua @@ -30,7 +30,7 @@ function pwd.write(self, section, value) pass = value else local t = tonumber(nixio.getpid()*os.time()) - local salt = "$5$" .. t .. "$" + local salt = "$1$" .. t .. "$" pass = nixio.crypt(value, salt) end Value.write(self, section, pass) -- 2.30.2