And strip the key/password
[mirror/userdir-ldap.git] / ud-mailgate
index 36f1cc3..4f8fee3 100755 (executable)
@@ -100,7 +100,7 @@ DelItems = {"c": None,
 
 def make_hmac(str):
    F = open(PassDir+"/key-hmac","r");
-   key = F.readline()
+   key = F.readline().strip()
    F.close();
 
    return hmac.new(key, str, sha1_module).hexdigest