+2005-07-08 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * README: updated for new default 'SOGoAllowsUnrestrictedAccess'
+
2005-07-05 Marcus Mueller <znek@mulle-kybernetik.com>
+ * v0.9.29
+
+ * README: updated defaults documentation
+
* SOGo.m: added new default 'SOGoEnableDoubleReleaseCheck' for
- debugging of NSAutoreleasePool issues (v0.9.29)
+ debugging of NSAutoreleasePool issues
2005-03-28 Helge Hess <helge.hess@opengroupware.org>
SOGoEnableDoubleReleaseCheck - bool - call
+[NSAutoreleasePool enableDoubleReleaseCheck:YES] upon start
=> useful for debugging
+ SOGoAllowsUnrestrictedAccess - bool - allow or disallow unrestricted access
+ in the absence of a proxy inserting the X-mineqProvenance header field
+ => useful for testing
What it does
============
+2005-07-08 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * WOContext+Agenor.[hm]: new category for discovering if the current
+ context is via access from the intranet. (v0.9.40)
+
2005-07-07 Helge Hess <helge.hess@opengroupware.org>
* added agenor_shares4uid tool to check whether the uid=>shared mailbox
SOGoLRUCache.h \
NSString+iCal.h \
NSObject+AptComparison.h \
+ WOContext+Agenor.h \
libSOGo_OBJC_FILES = \
SOGoObject.m \
SOGoLRUCache.m \
AgenorUserManager.m \
NSObject+AptComparison.m \
+ WOContext+Agenor.m \
# tools
# version file
-SUBMINOR_VERSION:=39
+SUBMINOR_VERSION:=40
# v0.9.34 requires libGDLContentStore v4.5.26
# v0.9.26 requires libOGoContentStore v0.9.13
--- /dev/null
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#ifndef __SOGo_WOContext_Agenor_H_
+#define __SOGo_WOContext_Agenor_H_
+
+#include <NGObjWeb/WOContext.h>
+
+@interface WOContext (Agenor)
+
+- (BOOL)isAccessFromIntranet;
+
+@end
+
+#endif /* __SOGo_WOContext_Agenor_H_ */
--- /dev/null
+/*
+ Copyright (C) 2000-2005 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include "WOContext+Agenor.h"
+#include "common.h"
+
+@implementation WOContext (Agenor)
+
+- (BOOL)isAccessFromIntranet {
+ NSNumber *bv;
+
+ bv = [self valueForKey:@"_agenorUnrestricedAccess"];
+ if (!bv) {
+ NSString *mineqProvenance;
+
+ /* See Agenor technical specification, Section 2 */
+ mineqProvenance = [[self request] formValueForKey:@"X-mineqProvenance"];
+ if ([mineqProvenance hasPrefix:@"intranet"]) {
+ bv = [NSNumber numberWithBool:YES];
+ }
+ else {
+ /* fallback for testing */
+ NSUserDefaults *ud;
+ BOOL allowed;
+
+ ud = [NSUserDefaults standardUserDefaults];
+ allowed = [ud boolForKey:@"SOGoAllowsUnrestrictedAccess"];
+ bv = [NSNumber numberWithBool:allowed];
+ }
+ [self takeValue:bv forKey:@"_agenorUnrestricedAccess"];
+ }
+ return [bv boolValue];
+}
+
+@end