See ChangeLog

Monotone-Parent: ec4781f04b708ab2a5944c8097cb08a1e608213e
Monotone-Revision: b7ca5a591c7686be57e44bf98aae0c7b148afa20

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-08-03T14:49:28
This commit is contained in:
Ludovic Marcotte
2010-08-03 14:49:28 +00:00
parent 440897027e
commit fd07a9b028
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
2010-08-03 Ludovic Marcotte <lmarcotte@inverse.ca>
* Applied patch for bug #690
* Applied patch for bug #703
2010-07-28 Francis Lachapelle <flachapelle@inverse.ca>
+1 -1
View File
@@ -19,7 +19,7 @@ SOGo_LIBRARIES_DEPEND_UPON += \
-lNGCards \
-lNGMime \
-lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC \
-lXmlRpc -lDOM -lSaxObjC -lcrypt \
-lNGLdap
ADDITIONAL_TOOL_LIBS += \
+12
View File
@@ -35,6 +35,8 @@
#import <GDLAccess/EOAdaptorContext.h>
#import <GDLAccess/EOAttribute.h>
#include <unistd.h>
#include <openssl/evp.h>
#include <openssl/md5.h>
@@ -139,6 +141,16 @@
{
return [plainPassword isEqualToString: encryptedPassword];
}
else if ([_userPasswordAlgorithm caseInsensitiveCompare: @"crypt"] == NSOrderedSame)
{
NSString *s;
char *buf;
buf = (char *)crypt([plainPassword UTF8String], [encryptedPassword UTF8String]);
s = [NSString stringWithUTF8String: buf];
return [s isEqualToString: encryptedPassword];
}
else if ([_userPasswordAlgorithm caseInsensitiveCompare: @"md5"] == NSOrderedSame)
{
NSString *s;