summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump version number to 0.8.18HEADpykolab-0.8.18masterJeroen van Meeuwen (Kolab Systems)2020-03-021-1/+1
|
* compare namingtext with basedn always in lowercaseDaniel Hoffend2020-02-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: When the hosted_domain_rootdn contains uppercase letters (only happens when crafting our own ldap naming context, or connecting with an existing ldap directory) kolabd doesn't match the namespace and therefore doesn't track changes and kolabd doesn't create or delete the mailboxes. Test Plan: Initial Situation mgmt_root_dn = dc=mgmt,dc=dotlan,dc=info hosted_root_dn = o=Hosting Starting kolabd via cli with debug enabled /usr/sbin/kolabd -l DEBUG -d 9 --user kolab --pid-file /run/kolabd/kolabd.pid Log messages about which domains / naming contexts to watch: 2020-01-17 23:29:35,260 pykolab.daemon DEBUG [8525] Domain 'mgmt.dotlan.info' naming context: 'dc=mgmt,dc=dotlan,dc=info', root dn: 'dc=mgmt,dc=dotlan,dc=info' 2020-01-17 23:29:35,268 pykolab.daemon DEBUG [8525] Domain 'hosting.com' naming context: None, root dn: 'o=Hosting' 2020-01-17 23:29:35,268 pykolab.daemon DEBUG [8525] Naming contexts to synchronize: [None, 'dc=mgmt,dc=dotlan,dc=info'] 2020-01-17 23:29:35,268 pykolab.daemon DEBUG [8525] Result set of domains: ['mgmt.dotlan.info'] Adding a Child domain (testdomain.com): 2020-01-17 23:36:16,505 pykolab.daemon DEBUG [9149] Domain 'mgmt.dotlan.info' naming context: 'dc=mgmt,dc=dotlan,dc=info', root dn: 'dc=mgmt,dc=dotlan,dc=info' 2020-01-17 23:36:16,513 pykolab.daemon DEBUG [9149] Domain 'hosting.com' naming context: None, root dn: 'o=Hosting' 2020-01-17 23:36:16,522 pykolab.daemon DEBUG [9149] Domain 'testdomain.com' naming context: None, root dn: 'ou=testdomain.com,o=Hosting' 2020-01-17 23:36:16,522 pykolab.daemon DEBUG [9149] Naming contexts to synchronize: [None, 'dc=mgmt,dc=dotlan,dc=info'] 2020-01-17 23:36:16,523 pykolab.daemon DEBUG [9149] Result set of domains: ['mgmt.dotlan.info'] Adding a user doesn't create the mailbox because kolabd isn't watching the naming context of o=Hosting After applying the patch: 2020-01-17 23:38:36,633 pykolab.daemon DEBUG [9499] Domain 'mgmt.dotlan.info' naming context: 'dc=mgmt,dc=dotlan,dc=info', root dn: 'dc=mgmt,dc=dotlan,dc=info' 2020-01-17 23:38:36,646 pykolab.daemon DEBUG [9499] Domain 'hosting.com' naming context: 'o=hosting', root dn: 'o=Hosting' 2020-01-17 23:38:36,655 pykolab.daemon DEBUG [9499] Domain 'testdomain.com' naming context: 'o=hosting', root dn: 'ou=testdomain.com,o=Hosting' 2020-01-17 23:38:36,656 pykolab.daemon DEBUG [9499] Naming contexts to synchronize: ['o=hosting', 'dc=mgmt,dc=dotlan,dc=info'] 2020-01-17 23:38:36,656 pykolab.daemon DEBUG [9499] Result set of domains: ['mgmt.dotlan.info', 'hosting.com'] Creating a user (to prove the patch works) 2020-01-17 23:41:13,756 pykolab.auth DEBUG [9502] LDAP Search Result Data Entry: 2020-01-17 23:41:13,756 pykolab.auth DEBUG [9502] DN: 'uid=jdoe,ou=People,ou=testdomain.com,o=Hosting' 2020-01-17 23:41:13,756 pykolab.auth DEBUG [9502] Entry: {'displayName': ['Doe, John'], 'cn': ['John Doe'], 'mailQuota': ['1048576'], 'preferredLanguage': ['de_DE'], 'userPassword': ['{PBKDF2_SHA256}AAAIABAeq5TwN6vcCAtBi+jspdlAXeGX5v5FV76uVIWxC5cQ4+23wbfR40aYr+SPzT2AP+Pg17N2hFxXDh3OI9qe/j5bE3A4Nz5utCJahvmorowGTIUA0DJrT6kz8Hy2X7PA8wjeZzedKvjdsqODIYDMdDm4DMNMbwU0pVFKgqWYBf7pNCAa/ZZ7lPPIxVXBC3z7Xhmi0mhxzVbY3TjNptxT9lGJ1Z4JCjID8B+BEqpPSKPJzW5sozgqTUYC8EH37bIn+JsmyMbukepz/0DU3oAKcda0j3VOdnfNE3lQ4tBS9e1CrjRVhzx+7H2ehAdu3olq7xHBRW9Po59hP3+X7nvU9C1lwt5stfv7hnEJ15jyy1JXDzoABUUIYxTxGz+uhP1oyuMHAxqxPDrJikdbCBx4ucGLnTnfFXwtAeuMefRsctMl'], 'nsuniqueid': ['6f0ae601-397a11ea-9892ad7b-e428d0cf'], 'objectClass': ['inetorgperson', 'inetuser', 'kolabinetorgperson', 'mailrecipient', 'organizationalperson', 'person', 'top'], 'sn': ['Doe'], 'mail': ['john.doe@testdomain.com'], 'givenName': ['John'], 'modifytimestamp': ['20200117224113Z'], 'uid': ['jdoe']} 2020-01-17 23:41:13,756 pykolab.auth DEBUG [9502] Entry Change Notification attributes: 2020-01-17 23:41:13,757 pykolab.auth DEBUG [9502] Change Type: 1 ('add') 2020-01-17 23:41:13,757 pykolab.auth DEBUG [9502] Previous DN: None Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D913
* Added comments about search/index with cyrus 3Daniel Hoffend2020-02-232-1/+3
| | | | | | | | | | | | | | | | Summary: On debian10 systems with cyrus 3 the squatter command doesn't accept the `-s` argument anymore and squatter will not run if specified. Also the new parameter search_engine is introduced. Without search_engine set the squat files will not be used. This diff just adds some comments to features not enabled by default. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D919
* chmod: set correct umask as octalDaniel Hoffend2020-02-232-2/+2
| | | | | | | | | | | | | | Summary: Fixes T5686 Reviewers: sicherha Reviewed By: sicherha Subscribers: sicherha Maniphest Tasks: T5686 Differential Revision: https://git.kolab.org/D877
* Add --server to list-deleted-mailboxesJeroen van Meeuwen (Kolab Systems)2020-02-231-22/+56
|
* Fix lint issuesJeroen van Meeuwen (Kolab Systems)2020-02-231-13/+22
|
* Fix moddn on shared folder entries (Bifrost TT324146)Jeroen van Meeuwen (Kolab Systems)2020-02-232-7/+50
|
* Turns out os.chmod creates files with weird permissions '--w--w-r-T 1 kolab ↵Liutauras Adomaitis2020-02-061-1/+1
| | | | kolab-n 0 6. Feb 12:20 pykolab.log', this fixes the problem
* Fix AttributeError: Cyrus instance has no attribute 'has_folder' in ↵Aleksander Machniak2020-01-131-17/+9
| | | | | | | | | | | | | | cleanup_acls() Summary: Also improve performance by removing has_folder() check, and removed redundant debug code Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D823
* move ptloader socket file into the shared socket directoryDaniel Hoffend2020-01-132-1/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: In a Debian 10 default installation the folder for the ptloader socket is missing `/var/lib/imap/ptclient/ptsock`. The folder gets created after the first start by ptclient, but it's too late for the socket. After the 2nd restart everything works fine as expected. IMO it makes more sense to move the ptloader socket file into the shared socket folder where all the other cyrus daemons have theirs: `/var/lib/imap/socket/ptsock`. This change only affects new installations. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen, balabadrasridhar212 Differential Revision: https://git.kolab.org/D889
* encode_page_control() must have a 2nd argument T5734Daniel Hoffend2020-01-131-2/+2
| | | | | | | | | | | | | Summary: As reported in T5734 kolab sync and kolabd are crashing with a trackback that encode_page_control must have 2 arguments. Adding the empty cookie attribute to the server_page_controls removed the error. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D895
* Bump version to 0.8.17pykolab-0.8.17Jeroen van Meeuwen (Kolab Systems)2019-12-041-1/+1
|
* removed owncloud.inc.php from setup want_filesDaniel Hoffend2019-11-261-1/+0
| | | | | | | | | | | | Summary: removed owncloud.inc.php from setup want_files[] Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D859
* setup: add support my unix_socket authenticated mysql serverDaniel Hoffend2019-11-263-9/+85
| | | | | | | | | | | | | | | | | Summary: This patch adds support support for unix_socket based authentication against mariadb servers. Unix_socket support was also edit to the setup dial when calling `setup-kolab (roundcube|syncrotron|mysql)` Test Plan: Use `--mysqlserver=unix_socket` or `--mysqlserver=existing --mysqlrootpw=unix_socket`. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D865
* ldap/timeout: always convert to float, fix argumentsDaniel Hoffend2019-11-261-3/+3
| | | | | | | | | | | | | | Summary: Fixes issue T5692 Reviewers: #pykolab_developers, sicherha Reviewed By: sicherha Subscribers: sicherha Maniphest Tasks: T5692 Differential Revision: https://git.kolab.org/D871
* Fix error when running signature module without any config (Bifrost#T243288)Aleksander Machniak2019-11-251-1/+1
|
* roundcubemail plugin owncload is no longer part of roundcubemail-plugins-kolabDaniel Hoffend2019-11-181-9/+0
| | | | | | | | Summary: there's no plugin ownload anymore, therefore the template for setup-kolab can safely get removed. Reviewers: #pykolab_developers, #roundcube_kolab_plugins_developers Differential Revision: https://git.kolab.org/D841
* Fixes T5665: kolabd should now terminate its child processes on exitDaniel Hoffend2019-11-181-4/+9
| | | | | | | | | | | | Summary: This patch ensures that kolabd will terminate his forked childs Test Plan: Tested on Debian 9 and Debian 10 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D853
* restore system umask after fork (fix T5659)Daniel Hoffend2019-11-183-3/+9
| | | | | | | | | | | | Summary: start-stop-daemon behaviour has changed. We must make sure the created pidfile is "secure" and not world-wide-writeable. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Differential Revision: https://git.kolab.org/D847
* Set version to 0.8.16pykolab-0.8.16Jeroen van Meeuwen (Kolab Systems)2019-11-181-1/+1
|
* Ignore changes to objects with an nstombstone objectclass (Bifrost #T252995)Jeroen van Meeuwen (Kolab Systems)2019-11-181-0/+11
|
* T5641: Support CUTYPE=ROOM and CUTYPE=UNKNOWNAleksander Machniak2019-11-083-9/+19
|
* Fix unit tests after fix in utils.parse_ldap_uri()Aleksander Machniak2019-11-081-2/+2
|
* More linting and compatibilityJeroen van Meeuwen (Kolab Systems)2019-10-258-330/+305
|
* More linting and syntax issues resolvedJeroen van Meeuwen (Kolab Systems)2019-10-2511-590/+650
|
* Suppress some linting issuesJeroen van Meeuwen (Kolab Systems)2019-10-251-1/+3
|
* Make sure that config functions do take and honor the default value passed alongJeroen van Meeuwen (Kolab Systems)2019-10-253-17/+18
|
* Introduce a configurable timeout for simple search and authentication requests.Jeroen van Meeuwen (Kolab Systems)2019-10-256-1199/+1557
| | | | | Fix linting issues Increase Python3 compatibility
* /var/spool/cyrus/ -> /var/spool/cyrus/mail/Jeroen van Meeuwen (Kolab Systems)2019-10-081-2/+2
|
* Do not use the update log fileJeroen van Meeuwen (Kolab Systems)2019-10-081-1/+1
|
* Fix configuration compability with stock Debian cyrus imapdJeroen van Meeuwen (Kolab Systems)2019-10-082-3/+17
|
* Add --mysqlhostJeroen van Meeuwen (Kolab Systems)2019-09-253-49/+72
|
* Bump version number to 0.8.15pykolab-0.8.15Jeroen van Meeuwen (Kolab Systems)2019-09-241-1/+1
|
* Allow specifying the root password in addition to using an existing mysql serverJeroen van Meeuwen (Kolab Systems)2019-09-241-13/+24
|
* Ensure a missing setting isn't treated as a stringJeroen van Meeuwen (Kolab Systems)2019-08-263-18/+31
|
* Set default value of --max-tasks to None, which effectively makes pool ↵Liutauras Adomaitis2019-08-211-1/+1
| | | | | | | | | | | | | | workers work forever. Summary: That should be a workaround for issue when multiprocessing spawns a process which never gets a task and that ends up with all pool processes not getting into a state to accept new task and emails start congest. Most probably that is a deadlock situation described in https://codewithoutrules.com/2018/09/04/python-multiprocessing/ . The solution is in Python3. Reviewers: vanmeeuwen Reviewed By: vanmeeuwen Subscribers: petersen, machniak Differential Revision: https://git.kolab.org/D803
* Bump number to 0.8.14pykolab-0.8.14Jeroen van Meeuwen (Kolab Systems)2019-08-161-1/+1
|
* Avoid cancelling the status of an event that has not been foundJeroen van Meeuwen (Kolab Systems)2019-08-161-111/+248
| | | | | | | | | | | | | | Summary: Reference T123747 Test Plan: None Reviewers: #pykolab_developers, machniak Reviewed By: machniak Subscribers: #pykolab_developers Differential Revision: https://git.kolab.org/D629
* More logging in Wallace and --max-tasks per process option for wallacedLiutauras Adomaitis2019-08-1610-34/+130
| | | | | | | | | | | | Summary: Given that part of https://git.kolab.org/D761 changes are obsolete after commit baeee0049f06430801a2d9940f875747e51be7f5 I still want to have some changes find their way in master. Test Plan: None Reviewers: vanmeeuwen Subscribers: petersen, machniak, vanmeeuwen Differential Revision: https://git.kolab.org/D791
* Prevent event conflict check jumping into infinite loopJeroen van Meeuwen (Kolab Systems)2019-08-161-46/+111
| | | | | | | | | | | | | | Summary: Assuming that if current and next event occurence start time is the same then it is the same occurence. It is better to ensure that get_next_occurence() returns None in such cases, but there must be a backstop from jumping into infinite loop too. Test Plan: None Reviewers: vanmeeuwen Subscribers: petersen, machniak, vanmeeuwen Differential Revision: https://git.kolab.org/D785
* Work around out-dated augeas on XenialJeroen van Meeuwen (Kolab Systems)2019-07-291-41/+62
|
* Fix settting up new MySQL servers with root passwords rather than auth sockets.Jeroen van Meeuwen (Kolab Systems)2019-07-291-60/+137
|
* Bump version numberpykolab-0.8.13Jeroen van Meeuwen (Kolab Systems)2019-06-201-1/+1
|
* Kill harderJeroen van Meeuwen (Kolab Systems)2019-06-201-1/+1
|
* Enable dirsrv.targetJeroen van Meeuwen (Kolab Systems)2019-06-181-0/+2
|
* Append signatures from files, or templates using LDAP information and ↵Jeroen van Meeuwen (Kolab Systems)2019-06-184-3/+315
| | | | | | | | | | | | | | | conditionals. Summary: Resolves T1279 Test Plan: None Reviewers: #pykolab_developers, machniak Maniphest Tasks: T1279 Differential Revision: https://git.kolab.org/D167
* Add flake and pylint configurationJeroen van Meeuwen (Kolab Systems)2019-06-182-0/+29
|
* Implement multiprocessing part of D761, letting wallace restart cleanly and ↵Jeroen van Meeuwen (Kolab Systems)2019-06-182-169/+265
| | | | fast.
* Set default skin to 'kolab'Jeroen van Meeuwen (Kolab Systems)2019-06-141-1/+3
|
* Fix resolving referralsJeroen van Meeuwen (Kolab Systems)2019-06-131-1/+1
|