if not 'voipPassword' in a: continue
if not a.pw_active(): continue
- Pass = str(a['voipPassword'])
- realm = 'sip.debian.org'
-
- HA1 = "%s:%s%:%s" : (a['uid'], realm, Pass)
- hashlib.md5(HA1).hexdigest()
- Line = "%s:%s:%s:AUTHORIZED" % (a['uid'], realm, Pass)
+ Line = "%s@debian.org:%s:sip.debian.org:AUTHORIZED" % (a['uid'], str(a['voipPassword']))
Line = Sanitize(Line) + "\n"
F.write("%s" % (Line))