we need realm there
[mirror/userdir-ldap.git] / 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))