mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
(fix) make sure to use crypt as the scheme for md5/sha256/sha512 (fixes #4137)
This commit is contained in:
1 parent
c3ef225a02
commit
63cb80142b
2 files changed
+14
No files matched your search
@@ -599,6 +599,13 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
||||
return nil;
|
||||
}
|
||||
|
||||
if ([_userPasswordAlgorithm caseInsensitiveCompare: @"md5-crypt"] == NSOrderedSame ||
|
||||
[_userPasswordAlgorithm caseInsensitiveCompare: @"sha256-crypt"] == NSOrderedSame ||
|
||||
[_userPasswordAlgorithm caseInsensitiveCompare: @"sha512-crypt"] == NSOrderedSame)
|
||||
{
|
||||
_userPasswordAlgorithm = @"crypt";
|
||||
}
|
||||
|
||||
return [NSString stringWithFormat: @"{%@}%@", _userPasswordAlgorithm, pass];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user