summaryrefslogtreecommitdiffstats
path: root/pykolab
Commit message (Collapse)AuthorAgeFilesLines
* compare namingtext with basedn always in lowercaseDaniel Hoffend2020-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* 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
* 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
* 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-081-0/+2
|
* More linting and compatibilityJeroen van Meeuwen (Kolab Systems)2019-10-256-323/+293
|
* More linting and syntax issues resolvedJeroen van Meeuwen (Kolab Systems)2019-10-257-400/+455
|
* 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-253-1060/+1243
| | | | | Fix linting issues Increase Python3 compatibility
* /var/spool/cyrus/ -> /var/spool/cyrus/mail/Jeroen van Meeuwen (Kolab Systems)2019-10-081-2/+2
|
* Fix configuration compability with stock Debian cyrus imapdJeroen van Meeuwen (Kolab Systems)2019-10-081-0/+14
|
* Add --mysqlhostJeroen van Meeuwen (Kolab Systems)2019-09-253-49/+72
|
* 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
|
* More logging in Wallace and --max-tasks per process option for wallacedLiutauras Adomaitis2019-08-161-3/+22
| | | | | | | | | | | | 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
|
* Enable dirsrv.targetJeroen van Meeuwen (Kolab Systems)2019-06-181-0/+2
|
* 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
|
* Merge branch 'master' of ssh://git.kolab.org/diffusion/P/pykolabAleksander Machniak2019-05-292-5/+8
|\
| * Let auth cache expire by not updating existing entriesJeroen van Meeuwen (Kolab Systems)2019-05-291-2/+0
| |
| * Let kolab sync also use the configured result_attributeJeroen van Meeuwen (Kolab Systems)2019-05-291-3/+8
| |
* | Fix restarting apache2 service on Debian 9 (Bifrost#T163148)Aleksander Machniak2019-05-291-0/+3
|/ | | | ... also in setup_roundcube
* Make sure main.cf exists before executing postmapAleksander Machniak2019-05-281-7/+7
|
* Fix Postfix TLS setup on Debian 9 (Bifrost#T163064)Aleksander Machniak2019-05-281-0/+3
|
* Fix restarting apache2 service on Debian 9 (Bifrost#T163148)Aleksander Machniak2019-05-281-0/+3
|
* Fix unicode in roundcube config templatesJeroen van Meeuwen (Kolab Systems)2019-05-212-118/+159
|
* Fix enabling dirsrv service on Ubuntu (Bifrost#T200782)Aleksander Machniak2019-05-071-2/+2
| | | | Use the same `systemctl command dirsrv@host` syntax on all platforms with systemctl.
* Be more forgiving on dummy entries in DTSTAMP,LAST-MODIFIED and CREATED ↵Aleksander Machniak2019-04-122-21/+9
| | | | | | | | (Bifrost#T123747) Instead of throwing an error when parsing iTip data that contains e.g. 00000000T000000, which will converted to datetime.time object by icalendar lib, convert them to datetime.date (1970-01-01 or "utc now").
* Changes required for pykolab to work with ADLiutauras Adomaitis2019-04-034-27/+61
| | | | | | | | | | | | | | Summary: These changes basically are to remove referrals from the ldapsearch results. The change is cache sqlite DB schema is required to allow objectGUID AD attribute to work as unique attribute to track LDAP objects. Reviewers: vanmeeuwen, machniak, mollekopf Reviewed By: machniak Subscribers: #pykolab_developers Tags: #pykolab Differential Revision: https://git.kolab.org/D720
* Allow setup-ds-admin in /usr/sbinJeroen van Meeuwen (Kolab Systems)2019-03-221-2/+2
| | | | Resolves T4548
* Add aliases for add-user-subscription ('aus', 'subscribe')Jeroen van Meeuwen (Kolab Systems)2018-12-313-3/+13
| | | | | Add alias for list-user-subscriptions ('lus') Add aliases for remove-user-subscription ('rus', 'unsubscribe')
* Add alias lmm for command list-mailbox-metadataJeroen van Meeuwen (Kolab Systems)2018-12-311-1/+1
|
* Add --server option for mailbox-cleanupJeroen van Meeuwen (Kolab Systems)2018-12-311-6/+21
|
* Add php 7.0 and 7.2 support for timezone setupJeroen van Meeuwen (Kolab Systems)2018-12-301-0/+7
|
* For some reason, Ubuntu 18.04 installs the amavis service as a sysvinit serviceJeroen van Meeuwen (Kolab Systems)2018-12-301-0/+3
|
* Fix 'undelete-mailbox' issue for undeleting all user's mailboxesLiutauras Adomaitis2018-06-261-1/+1
| | | | | | | | | | | | | | Summary: if 'hextimestamp' key does not exists in _mailfolder dictionary, pykolab throughs traceback. Test Plan: None Reviewers: vanmeeuwen, machniak Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D605
* There's no status here, just classificationJeroen van Meeuwen (Kolab Systems)2018-06-221-1/+1
|
* Fix event|todo_from_ical() exception: AttributeError("'NoneType' object has ↵Aleksander Machniak2018-06-211-1/+3
| | | | | | no attribute 'tzinfo'",) (Bifrost#T75978) We make sure we read DTSTART property before RECURRENCE-ID.
* Fix invitationpolicy error on an itip reply with no ORGANIZER prop ↵Aleksander Machniak2018-06-211-2/+3
| | | | (Bifrost#T114576)