we need realm there
authorMartin Zobel-Helas <zobel@debian.org>
Sun, 12 Jan 2014 11:14:56 +0000 (12:14 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 12 Jan 2014 11:14:56 +0000 (12:14 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
ud-generate

index cec8f4e..64c462e 100755 (executable)
@@ -427,7 +427,7 @@ def GenVoipPassword(accounts, File):
 
          A1 = "%s:%s:%s" % (a['uid'], realm, Pass)
          HA1 = hashlib.md5(A1).hexdigest()
-         Line = "%s:%s:%s:AUTHORIZED" % (a['uid'], HA1, Pass)
+         Line = "%s:%s:%s:AUTHORIZED" % (a['uid'], HA1, realm)
          Line = Sanitize(Line) + "\n"
          F.write("%s" % (Line))