Merge pull request #34753 from noqqe/master
Multiple users with hashedPassword is broken in mosquitto
This commit is contained in:
commit
5be14cce39
@ -212,7 +212,7 @@ in
|
|||||||
'' + concatStringsSep "\n" (
|
'' + concatStringsSep "\n" (
|
||||||
mapAttrsToList (n: c:
|
mapAttrsToList (n: c:
|
||||||
if c.hashedPassword != null then
|
if c.hashedPassword != null then
|
||||||
"echo '${n}:${c.hashedPassword}' > ${cfg.dataDir}/passwd"
|
"echo '${n}:${c.hashedPassword}' >> ${cfg.dataDir}/passwd"
|
||||||
else optionalString (c.password != null)
|
else optionalString (c.password != null)
|
||||||
"${pkgs.mosquitto}/bin/mosquitto_passwd -b ${cfg.dataDir}/passwd ${n} ${c.password}"
|
"${pkgs.mosquitto}/bin/mosquitto_passwd -b ${cfg.dataDir}/passwd ${n} ${c.password}"
|
||||||
) cfg.users);
|
) cfg.users);
|
||||||
|
Loading…
Reference in New Issue
Block a user