Commit Graph

46 Commits (eb18249d2b66d69356c8d59b99fac2cc74c27d27)

Author SHA1 Message Date
Ludovic Marcotte f0980a9cbd feat(core): Added AES-128-CBC password scheme for SQL authentication.
This allows SOGo to use Plesk's database as an authentication source.
2020-01-06 15:47:47 -05:00
Francis Lachapelle c1ccbae316 style(obj-c): replace tabs by spaces 2019-12-17 11:15:50 -05:00
Francis Lachapelle c4c1de771c Minor code improvement in SQLSource.m 2018-07-06 12:40:43 -04:00
Ludovic Marcotte b0e59f9ac9 Revert "(fix) make sure to use crypt as the scheme for md5/sha256/sha512 (fixes #4137)"
This reverts commit 63cb80142b.
2018-04-27 08:55:13 -04:00
Francis Lachapelle eb90760b39 Use address books search fields in Contacts module
Searches can now be scoped to one or multiple fields. Those fields are
now dynamic and can be defined using SearchFieldNames in external
contacts sources (SQL and LDAP).
2017-11-21 15:56:16 -05:00
Francis Lachapelle a2129f3e4a ModulesConstraints and listRequiresDot for SQL
SQL sources used for authentication can now have module constraints.
Entries of SQL sources used as address books can now be displayed
automatically.
2017-11-16 21:46:44 -05:00
Francis Lachapelle 38d4a26827 Avoid calls on null objects
Fixes #4329
2017-11-08 16:24:26 -05:00
Ludovic Marcotte 63cb80142b (fix) make sure to use crypt as the scheme for md5/sha256/sha512 (fixes #4137) 2017-05-08 10:44:12 -04:00
Ludovic Marcotte 8b9ceb3273 (fix) allow multiple space-delimited addresses in the MailFieldNames column 2016-08-19 11:45:15 -04:00
Patrice Levesque 7c25b53fdf Remove pointless #imports from .m and .h files
This was done with a brute-force approach, ensuring no additional
warnings from GCC 4.9 under x86_64.
2016-02-13 16:11:52 -05:00
Ludovic Marcotte ae6ed0c055 (feat) applied all changes as a patch coming from PR #180 2015-12-30 09:22:08 -05:00
Euan Thoms 212ff64828 Stage 2 of clang compiler warning patches. 2015-11-04 03:36:34 +08:00
Ludovic Marcotte 731264d9dc (fix) make sure ActiveSync is always usable with SQL-based auth sources 2015-07-22 10:14:03 -04:00
Jean Raby e07734fa5f Filter sql source entries based on the user domain
When using dynamic domains with SQL sources (DomainFieldName),
let WebUI and dav lookups return entries from current domain
and other domains visible from the originating domain.

Fixes #2269

SQLSource.m: _visibleDomainsQualifierFromDomain:
  returns a EOQualifier OR'ing all visible domains from specified domain
  (including specified domain)

SQLSource.m: allEntryIDsVisibleFromDomain
  Replacement for allEntryIDs.
  Instead of returning all entries from the sql source,
  only return the entries visible from the specified domain.

SoObjects/SOGo/SQLSource.m: allEntryIDs
  Changed to call allEntryIDsVisibleFromDomain with an empty domain.

SQLSource.m fetchContactsMatching:inDomain:
  Use _visibleDomainsQualifierFromDomain to filter entries

LDAPSource.m: allEntryIDsVisibleFromDomain
  Simply call allEntryIDs, discarding the domain.
  LDAP does need to do the extra domain filtering

SOGoContactSourceFolder.m: toOneRelationshipKeys
   Call new method: allEntryIDsVisibleFromDomain
2013-03-29 10:38:52 -04:00
Ludovic Marcotte 7c250fad8f Fix for bug #1061. 2012-11-26 13:13:06 -05:00
Ludovic Marcotte 6ad59a8481 Apply patches for bug #2060 2012-11-06 09:04:18 -05:00
Ludovic Marcotte 08230b33bb See ChangeLog
Monotone-Parent: 747fe8c2134a990c1cdf3b494c2b7776021cb736
Monotone-Revision: 3c4baa92c5634d4da061da739a9b544d04c44586

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-05-31T13:24:32
2012-05-31 13:24:32 +00:00
Francis Lachapelle 7815b3403c See ChangeLog.
Monotone-Parent: d4394b4b92fdfda720d67698c9fbadc75787ad18
Monotone-Revision: e8c7d8a4465a1b9357c1d9f201dec2b93c5f3507

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-02-11T07:08:02
Monotone-Branch: ca.inverse.sogo
2012-02-11 07:08:02 +00:00
Wolfgang Sourdeau 68e8a28846 Monotone-Parent: 3d26091bec393e3abf8d2b6033e0737e09c207b9
Monotone-Revision: c110b42afb9f73f9a8ea6c766ec8e46b798c7316

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-22T18:37:58
Monotone-Branch: ca.inverse.sogo
2012-02-22 18:37:58 +00:00
Wolfgang Sourdeau 3274bd1f4c Monotone-Parent: 64241052c164949118642194441e9a30cbdc3d58
Monotone-Revision: 53ba3739a8b7ce64040a91695b40bad1a7d7e1aa

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-22T14:44:22
Monotone-Branch: ca.inverse.sogo
2012-02-22 14:44:22 +00:00
Wolfgang Sourdeau 1746d307f3 Monotone-Parent: 10bc75b22aa9828644f846e67ae3509d61793864
Monotone-Revision: 181c204ddec5a60db59ce4a63428f75cb20a7a81

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-16T20:18:39
Monotone-Branch: ca.inverse.sogo
2012-01-16 20:18:39 +00:00
Wolfgang Sourdeau 15e606341e Monotone-Parent: 16b846dd0fb3a63bdd80cb7ed360972da407527b
Monotone-Revision: bb276eea8dc76b5c71f49df1d23424ab19015233

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-04T15:26:30
Monotone-Branch: ca.inverse.sogo
2012-01-04 15:26:30 +00:00
Wolfgang Sourdeau 4ba4c622bc Monotone-Parent: 995b68ade85d0d884cdf8f6fc87e55f0c376a80c
Monotone-Revision: 61fe02b6c3bc4f0aa3797d661d014d8c256b0de9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-30T20:39:07
Monotone-Branch: ca.inverse.sogo
2011-12-30 20:39:07 +00:00
Ludovic Marcotte 481de5d654 Fix for bug #1502
Monotone-Parent: 0b1c93d1d141650c6567513a3f7a175ca4d27623
Monotone-Revision: 5e690b49423932996ff78f8ea2c1881306f09fa3

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-12-30T13:38:17
2011-12-30 13:38:17 +00:00
Francis Lachapelle fafcd1aaab See ChangeLog.
Monotone-Parent: 9622fc005299a8ed3c143c177667be6f33df9523
Monotone-Revision: d03d3ac4770756bf4494d9e20e9768b28e5ff0cb

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-10-26T15:25:49
2011-10-26 15:25:49 +00:00
Francis Lachapelle f44212f0e6 See ChangeLog
Monotone-Parent: c0fdc871e5cf2faadbed16ce1c4275647d0928b4
Monotone-Revision: 178cf4e5311729ac333305676b5ad2aa35a7ca71

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-06-24T19:19:50
Monotone-Branch: ca.inverse.sogo
2011-06-24 19:19:50 +00:00
Ludovic Marcotte 8f81f2b0db See ChangeLog
Monotone-Parent: 9b0e70cef01c0afdbc1684211507c86871122671
Monotone-Revision: 62fdfc357dc0083e5a5dfdb61396923e593cac82

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-04-28T13:36:29
Monotone-Branch: ca.inverse.sogo
2011-04-28 13:36:29 +00:00
Francis Lachapelle a87bba64b2 Added support for the parameter "IMAPLoginMailField" for SQL/LDAP sources, and the parameter "authenticationFilter" for SQL sources. See ChangeLog.
Monotone-Parent: 1cdaff22cdbdb961e1937dc8f1ac1936bd06dc99
Monotone-Revision: 36439821e42cfcb830bfff9081d7e1318f1e92ab

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-04-14T18:41:10
Monotone-Branch: ca.inverse.sogo
2011-04-14 18:41:10 +00:00
Ludovic Marcotte cb76677762 Sanity check if the encrypted password isn't found in one source, to avoid a crash when invoking crypt() on it
Monotone-Parent: cbeb8ed4edd6c44d422f9251785ee9bfad432e71
Monotone-Revision: 4a37382e84f4a00ccbbc0542ef0ae4a99a954cdd

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-03-29T14:34:14
Monotone-Branch: ca.inverse.sogo
2011-03-29 14:34:14 +00:00
Francis Lachapelle 110c26578f See ChangeLog
Monotone-Parent: 01007adc666a7e8c89a42c0f76d28007c766519c
Monotone-Revision: 380b86e5c0d4f7e3c452e904f2a11e814e95ee59

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-03-24T14:11:48
Monotone-Branch: ca.inverse.sogo
2011-03-24 14:11:48 +00:00
Ludovic Marcotte 5d240197ce See ChangeLog
Monotone-Parent: 58318ff8b98f933c6f6fffe3d652a2954b890c7c
Monotone-Revision: 11ff37ba45941fd41e25ca5ecc695c49c15bf651

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-03-04T20:30:28
Monotone-Branch: ca.inverse.sogo
2011-03-04 20:30:28 +00:00
Ludovic Marcotte f3e23ff651 See ChangeLog
Monotone-Parent: baa6f9af328e12270813b11beac4250ab90005b0
Monotone-Revision: 659def76b8868bdc540986987d61b39410737054

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-02-02T01:58:56
Monotone-Branch: ca.inverse.sogo
2011-02-02 01:58:56 +00:00
Ludovic Marcotte be67998283 See ChangeLog
Monotone-Parent: d7aebce05726f8e7de4e1e755b2143939a487c9e
Monotone-Revision: f661875c0ea83ef886f78e3b498bc05b1d105e9a

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-01-05T20:59:47
Monotone-Branch: ca.inverse.sogo
2011-01-05 20:59:47 +00:00
Ludovic Marcotte 13798939bf See ChangeLog
Monotone-Parent: 6bd02ef1f10a4cfb8e4199f21aebc3e20539ebca
Monotone-Revision: 4bf1d5199159aabb88dec15bd4be9362748e3ba1

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-12-29T13:01:16
Monotone-Branch: ca.inverse.sogo
2010-12-29 13:01:16 +00:00
Ludovic Marcotte 4cdb010230 See ChangeLog
Monotone-Parent: e1db6c4ec1e7a829a4976be2bd87d40d1d0a5d5f
Monotone-Revision: ada8e59dc2acdffd7634acc70f3387a0f8e4e671

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-12-09T18:56:03
Monotone-Branch: ca.inverse.sogo
2010-12-09 18:56:03 +00:00
Ludovic Marcotte fa522147e6 See ChangeLog
Monotone-Parent: a21045504db4729f0a32f67e4bba1f563ea16625
Monotone-Revision: e1912bf4962632854ed7898edea3ca2ba3a70406

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-09-24T15:24:24
Monotone-Branch: ca.inverse.sogo
2010-09-24 15:24:24 +00:00
Wolfgang Sourdeau 9e711ab842 Monotone-Parent: 0176ffcc344892f0535563789b246aea9810ee5e
Monotone-Revision: d321de191aecbd58e4ac523caa80a4c05f3a9558

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-12T18:29:13
Monotone-Branch: ca.inverse.sogo
2010-08-12 18:29:13 +00:00
Ludovic Marcotte fd07a9b028 See ChangeLog
Monotone-Parent: ec4781f04b708ab2a5944c8097cb08a1e608213e
Monotone-Revision: b7ca5a591c7686be57e44bf98aae0c7b148afa20

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-08-03T14:49:28
2010-08-03 14:49:28 +00:00
Wolfgang Sourdeau b7067eec65 Monotone-Parent: 7b6ad79fde0791f201e8b98eb957ded1410de5c1
Monotone-Revision: 7576485920bab942eaccc45f2ab5b1914255643d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-20T21:30:17
Monotone-Branch: ca.inverse.sogo
2010-04-20 21:30:17 +00:00
Ludovic Marcotte 7c72b96b1e See ChangeLog
Monotone-Parent: 5cd36f9e514c2019e708362661b3ede2e8598fb8
Monotone-Revision: ae25610b2149f561f23ae34e0889a7197d4324c3

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-03-25T01:20:06
Monotone-Branch: ca.inverse.sogo
2010-03-25 01:20:06 +00:00
Ludovic Marcotte 40c3cb74d0 See ChangeLog
Monotone-Parent: 024380d579a482e49866c36ef54561cf8b39ab02
Monotone-Revision: 2cbc46c16f9b3d45d868b15a968f614dbbaf9749

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-03-08T15:18:05
Monotone-Branch: ca.inverse.sogo
2010-03-08 15:18:05 +00:00
Wolfgang Sourdeau 43dfb25589 Monotone-Parent: 4649d6842fe70a3e582c138faf9776802809704a
Monotone-Revision: 7df1edc5e4fb86c8fe01354ff89b73239e5a4e37

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-29T21:44:04
Monotone-Branch: ca.inverse.sogo
2009-11-29 21:44:04 +00:00
Wolfgang Sourdeau b79a7e5a00 Monotone-Parent: 2fdf0ead0781ef2362dd389811d5db44ca4cc84a
Monotone-Revision: c91eef7edcfd08d414664c25a590b6268a7e58e2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-29T04:19:32
Monotone-Branch: ca.inverse.sogo
2009-11-29 04:19:32 +00:00
Ludovic Marcotte c8358a9f4f See ChangeLog
#MTN: ----------------------------------------------------------------------

Monotone-Parent: 8bf27e6a6e311b43dd1eefbb9eab21ed89a80f6d
Monotone-Revision: c55d7e01ad80c68ff71c3684827782f73ac196ef

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-11-24T20:19:21
Monotone-Branch: ca.inverse.sogo
2009-11-24 20:19:21 +00:00
Wolfgang Sourdeau 547958b916 Monotone-Parent: b7751a69b5bfafc16aaf3506b97e9c0d3aeeab69
Monotone-Revision: cf528c32a864b21894f3e0902af7a6f58b27594a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-11-19T20:02:45
Monotone-Branch: ca.inverse.sogo
2009-11-19 20:02:45 +00:00
Ludovic Marcotte 502279186e See ChangeLog
Monotone-Parent: 4eb36e8b2021cf9b64520bb8434bff43f5716ee9
Monotone-Revision: 2a908e25e6cc0e1dd4272685f53fe6594d1c949c

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-09-25T14:42:33
Monotone-Branch: ca.inverse.sogo
2009-09-25 14:42:33 +00:00