From 3273f859c42e60a5978c4d209631d89aa3e67820 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 11 Sep 2008 21:55:21 +0000 Subject: [PATCH] Monotone-Parent: 4f58ba7ba8f5347cf5b339ec697f0ded2a38f41b Monotone-Revision: 1ade254d62fcb6133186bc9896363a6fa7dc5f90 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-09-11T21:55:21 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/MainUI/SOGoRootPage.m | 6 +++++- UI/MainUI/SOGoUserHomePage.m | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b149e7b45..373b6b5e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-09-11 Wolfgang Sourdeau + * UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]): + log the username performing the logoff operation. + + * UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): log + success information about current attempt. + * SoObjects/SOGo/SOGoObject.m ([SOGoObject -lookupName:lookupNameinContext:localContextacquire:acquire]): do not use the object returned by "bindToObject:inContext:". diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index b41ad202a..2fe6504cc 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -70,6 +70,7 @@ password = [request formValueForKey: @"password"]; if ([auth checkLogin: userName password: password]) { + [self logWithFormat: @"successful login for user '%@'", userName]; response = [self responseWith204]; cookieString = [NSString stringWithFormat: @"%@:%@", userName, password]; @@ -81,7 +82,10 @@ [response addCookie: authCookie]; } else - response = [self responseWithStatus: 403]; + { + [self logWithFormat: @"failed login for user '%@'", userName]; + response = [self responseWithStatus: 403]; + } return response; } diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index e67241118..4b2ff348c 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -213,9 +213,13 @@ static NSString *defaultModule = nil; SOGoWebAuthenticator *auth; id container; NSCalendarDate *date; + NSString *userName; container = [[self clientObject] container]; + userName = [[context activeUser] login]; + [self logWithFormat: @"user '%@' logged off", userName]; + response = [context response]; [response setStatus: 302]; [response setHeader: [container baseURLInContext: context]