1 /* SOGoConstants.h - this file is part of SOGo
2  *
3  * Copyright (C) 2010 Inverse inc.
4  *
5  * Author: Ludovic Marcotte <lmarcotte@inverse.ca>
6  *
7  * This file is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * This file is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; see the file COPYING.  If not, write to
19  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef _SOGOCONSTANTS_H_
24 #define _SOGOCONSTANTS_H_
25 
26 // This is a perfect copy of the OpenLDAP's
27 // LDAPPasswordPolicyError enum. We redeclare it
28 // so that we always include the ppolicy code
29 // within SOGo.
30 typedef enum
31 {
32   PolicyPasswordExpired = 0,
33   PolicyAccountLocked = 1,
34   PolicyChangeAfterReset = 2,
35   PolicyPasswordModNotAllowed = 3,
36   PolicyMustSupplyOldPassword = 4,
37   PolicyInsufficientPasswordQuality = 5,
38   PolicyPasswordTooShort = 6,
39   PolicyPasswordTooYoung = 7,
40   PolicyPasswordInHistory = 8,
41   PolicyNoError = 65535,
42 } SOGoPasswordPolicyError;
43 
44 // Domain defaults
45 extern NSString *SOGoPasswordChangeEnabled;
46 
47 typedef enum
48 {
49   EventCreated = 0,
50   EventDeleted = 1,
51   EventUpdated = 2,
52 } SOGoEventOperation;
53 
54 typedef enum
55 {
56   SOGoPersonalFolder = 0,
57   SOGoCollectedFolder = 1,
58 } SOGoFolderType;
59 
60 #endif /* _SOGOCONSTANTS_H_ */
61