summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a configurable timeout for simple search and authentication requests.Jeroen van Meeuwen (Kolab Systems)2019-10-251-139/+309
| | | | | Fix linting issues Increase Python3 compatibility
* 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-161-6/+13
| | | | | | | | | | | | 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
* Better detect resource collections who already delegated the event.Jeroen van Meeuwen (Kolab Systems)2019-05-171-1/+5
| | | | Rebase D611 by @fjl
* Fix exception when handling iTip CANCEL for a reasource event (Bifrost#T123747)Aleksander Machniak2018-08-201-2/+4
|
* Avoid the use of duplicate names for functions and in-function scope ↵Jeroen van Meeuwen (Kolab Systems)2018-07-311-3/+3
| | | | | | variables where both are used in the same scope Reference T123747
* Manage the pool processes such that they die after a limited quantity of ↵Jeroen van Meeuwen (Kolab Systems)2018-07-271-0/+7
| | | | | | | | | | | | | | | | | | | | | time, and pick up messages from the spool asynchronously. Summary: Reference T75735 Let a single worker process timeout itself Set the signal as late as possible Abstract the method to pickup messages from the spool, so that a new recurring Timer may pick up messages out of the spool Test Plan: * Run messages through it Reviewers: #pykolab_developers Subscribers: #pykolab_developers Differential Revision: https://git.kolab.org/D617
* nother attempt to add more logging and fix wallace messages not being ↵Liutauras Adomaitis2018-06-151-1/+2
| | | | | | | | | | | | | | | | delivered and staying in spool directory Summary: Adding more logs that should show why _sendmail function does not start a "while" delivery loop and unliking file does not happen. Also some code polishing. Test Plan: none Reviewers: machniak, vanmeeuwen Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D599
* Fix D577 patch bug - modules._sendmail result assign to variable, which is ↵Liutauras Adomaitis2018-06-041-12/+1
| | | | | | | | | | | | | | | | used to log the result of email sending. Summary: Define success variable to hold the _sendmail result. Test Plan: none Reviewers: vanmeeuwen, machniak Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D581
* With this patch I'm trying to introduce a file-type object in logger, which ↵Liutauras Adomaitis2018-05-171-23/+23
| | | | | | | | | | | | | | | | | | could swallow everything thrown to stderr (and possibly stdout) and redirect to python logger. Python smtplib debug mode prints everything to stderr, but when wallace runs... Summary: ...in fork mode stderr is not available (Bad file descriptor error) and thus wallace traceback when it tries to send emails Test Plan: none Reviewers: vanmeeuwen, machniak, petersen Reviewed By: vanmeeuwen Subscribers: petersen, machniak, vanmeeuwen Maniphest Tasks: T2498, T2163, T3751 Differential Revision: https://git.kolab.org/D577
* LDAP remove referrals for correct handling in Samba 4Jeroen van Meeuwen (Kolab Systems)2017-07-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: LDAP user authentication does not work when using Samba 4 as LDAP backend. Samba 4 (as well as MS AD) returns referrals (search continuations) for some objects. LDAPv3 does not specify which credentials should be used for the search continuations. **libldap** tries to anonymous bind and do the search continuations, which fails with Samba 4 (as well as MS AD). Kolab 16 will fail while authenticating with **ldap.OPERATIONS_ERROR** and the error message //00002020: Operation unavailable without authentication// The submitted patch is supposed to be used with ``` REFERRALS off ``` in /etc/ldap.conf and should not affect any other situations. Eventually setting LDAP option via ``` ldap.OPT_REFERRALS, 0 ``` would be an option too, but i can't test at the moment, if there is any impact on non Samba 4 setups. The change in wallace addresses the same problem, as i got ``` 2017-07-05 12:27:28,566 pykolab.wallace ERROR Module resources.heartbeat() failed with error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/wallace/__init__.py", line 89, in modules_heartbeat modules.heartbeat(module, lastrun) File "/usr/lib/python2.7/dist-packages/wallace/modules.py", line 128, in heartbeat return modules[name]['heartbeat'](*args, **kw) File "/usr/lib/python2.7/dist-packages/wallace/module_resources.py", line 438, in heartbeat resource_dns = [dn for dn in resource_dns if resource_base_dn in dn] TypeError: argument of type 'NoneType' is not iterable ``` Test Plan: Use Kolab 16 with Samba 4. Try to authenticate user. Should fail. Disable Referrals in /etc/ldap.conf with ``` REFERRALS off ``` and try again. Now you should no longer see the **ldap.OPERATIONS_ERROR** but an auth fail because of 4 (or at least more than one) results returned. The referrals no longer will be automatically queried, but returned as part of the results containing //None// on the position 0 (result-type) of the result tuple. Apply the patch now, which will remove those //None// result-type results. The Authentication should succeed. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: #pykolab_developers Tags: #kolab_16 Differential Revision: https://git.kolab.org/D467
* Convert potential date to datetimeJeroen van Meeuwen (Kolab Systems)2016-12-021-1/+1
| | | | Resolves T1847
* T1399: Implemented ACT_REJECT policy for resourcesAleksander Machniak2016-10-061-12/+29
| | | | | | | | | | | | Summary: Fixes T1399 Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Maniphest Tasks: T1399 Differential Revision: https://git.kolab.org/D217
* Fix some typos found by the spelling linterJeroen van Meeuwen (Kolab Systems)2015-04-141-2/+2
|
* Store reservations for single occurrences with the same UID in one object ↵Thomas Bruederli2015-03-021-6/+14
| | | | (#4766)
* Support bookings for recurring events and single occurrences (#4632)Thomas Bruederli2015-02-211-50/+142
|
* Build iTip response and notification messages with unicode strings (#3926) + ↵Thomas Bruederli2014-11-191-2/+8
| | | | adjust tests
* Add wallace.resource_calendar_expire_days to config defaultsThomas Bruederli2014-11-061-1/+1
|
* Make resource calendar expiry days configurable (#3843)Thomas Bruederli2014-10-241-4/+5
|
* Run archival jobs in another Wallace child process (#3843)Thomas Bruederli2014-10-231-2/+102
|
* Don't disconnect LDAP after lookupThomas Bruederli2014-10-231-2/+0
|
* Skip recipient lookup if no iTip parts are found in the messageThomas Bruederli2014-10-211-7/+5
|
* Basic sanity check for input messageThomas Bruederli2014-08-221-0/+4
|
* Set read ACLs for admin user before accessing resource calendars (#3428)Thomas Bruederli2014-08-191-2/+5
|
* Catch failures on base64 decoding event UIDs from owner confirmation replies ↵Thomas Bruederli2014-08-151-4/+7
| | | | (#3423)
* Fix traceback errors in resource booking module (#3312)Thomas Bruederli2014-08-141-1/+4
|
* Resource invitation policies require owner to be definedThomas Bruederli2014-08-071-1/+1
|
* Send delegation reply BEFORE the delegatee's accept reply; improve error ↵Thomas Bruederli2014-08-061-13/+12
| | | | logging; fixed a typo
* Add test for owner confirmation on (delegated) resource collection bookingsThomas Bruederli2014-08-061-1/+1
|
* Make sure 'uniquemember' is a listThomas Bruederli2014-08-061-0/+2
|
* Set From: header in IMAP messages written by Wallace to 'Kolab Server'Thomas Bruederli2014-08-061-1/+1
|
* Improve resource confirmation workflow:Thomas Bruederli2014-08-051-13/+29
| | | | | | - Use base64 encoding for original event UIDs - Compare sequence number on resource owner replies - Added confirmation test scenario with reservation update and outdated replies
* Inherit kolabinvitationpolicy attributes from resource collection; forward ↵Thomas Bruederli2014-08-041-11/+57
| | | | comments from owner confirmation replies
* First attempt for resource owner confirmation workflow as described in #3168Thomas Bruederli2014-08-041-7/+162
|
* Test localized notifications from iTip messagesThomas Bruederli2014-07-221-0/+9
|
* Use localized participant status texts in resource repliesThomas Bruederli2014-07-101-3/+4
|
* Don't send iTip replies if resource booking failed (event not saved in ↵Thomas Bruederli2014-07-091-1/+3
| | | | resource calendar)
* Send owner notifications for resource bookings (#3167)Thomas Bruederli2014-07-091-6/+116
|
* Use new pykolab.xml.event_from_message() function in wallace modules and ↵Thomas Bruederli2014-07-071-19/+20
| | | | verify that attachments survive event updates
* Correctly return list of tuples from patched ↵Thomas Bruederli2014-07-071-1/+1
| | | | auth.search_entry_by_attribute() method
* Move unit tests for pykolab.itip to a separate file; fix failing wallace ↵Thomas Bruederli2014-07-071-1/+1
| | | | module test
* Refactored some iTip functions into a dedicated module for shared useThomas Bruederli2014-07-061-181/+9
|
* Updated the licensing information according to FSF recommendations.Paul Boddie2014-06-261-7/+7
| | | | Note that cyruslib.py is still "GPLv2 or a later version" unlike the other files.
* Quote resource folder names for IMAP operationsThomas Bruederli2014-03-251-5/+7
|
* Adjust debug logging levels for better trackingThomas Bruederli2014-03-251-2/+2
|
* Delegate to another resource collection member if the booked resource is ↵Thomas Bruederli2014-03-251-71/+146
| | | | unavailable for the re-scheduled date
* Get resource owner information from parent collection if not set directlyThomas Bruederli2014-03-191-8/+22
|
* Test owner assignment for resources and mentions in reservation request ↵Thomas Bruederli2014-03-051-12/+66
| | | | responses
* Test handling of (some) invalid iTip messages to resourcesThomas Bruederli2014-03-051-0/+7
|
* Optimization: only connect to LDAP and IMAP when actually necessaryThomas Bruederli2014-03-061-3/+3
|