Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | compare namingtext with basedn always in lowercase | Daniel Hoffend | 2020-02-25 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Fixes T5665: kolabd should now terminate its child processes on exit | Daniel Hoffend | 2019-11-18 | 1 | -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 Hoffend | 2019-11-18 | 1 | -1/+3 |
| | | | | | | | | | | | | 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 | ||||
* | More linting and compatibility | Jeroen van Meeuwen (Kolab Systems) | 2019-10-25 | 1 | -1/+1 |
| | |||||
* | More linting and syntax issues resolved | Jeroen van Meeuwen (Kolab Systems) | 2019-10-25 | 1 | -121/+111 |
| | |||||
* | Fix SIGPIPE errors in wallace due to closing stderr and reusing FD2 by @fjl | Jeroen van Meeuwen (Kolab Systems) | 2019-05-17 | 1 | -0/+4 |
| | |||||
* | Call the correct functions | Jeroen van Meeuwen (Kolab Systems) | 2016-07-08 | 1 | -2/+1 |
| | |||||
* | Clear out synchronizing domains vs. naming contexts by matching domain root ↵ | Jeroen van Meeuwen (Kolab Systems) | 2016-07-07 | 1 | -16/+42 |
| | | | | dns with naming contexts | ||||
* | CS fixes according to PEP8 (ignored mostly line-length errors only) | Aleksander Machniak | 2016-05-04 | 1 | -9/+9 |
| | | | | | | | | Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134 | ||||
* | Update bugzilla url to https://issues.kolab.org. | Jeroen van Meeuwen (Kolab Systems) | 2016-02-29 | 1 | -2/+2 |
| | | | | Resolves T1044 | ||||
* | Correct the use of the format returned by auth.list_domains() | Jeroen van Meeuwen (Kolab Systems) | 2015-10-13 | 1 | -1/+1 |
| | |||||
* | Translate naming contexts back to domain name spaces or the list of ↵ | Jeroen van Meeuwen (Kolab Systems) | 2015-08-14 | 1 | -0/+1 |
| | | | | processes becomes volatile | ||||
* | Correct detecting naming contexts for databases to synchronize against, and ↵ | Jeroen van Meeuwen (Kolab Systems) | 2015-08-14 | 1 | -4/+18 |
| | | | | using parent domain name spaces for synchronization | ||||
* | fix typo, remove bracket | Timotheus Pokorra | 2015-08-13 | 1 | -1/+1 |
| | |||||
* | Don't use domains.values(), we need only the first value of the tuple(s) of ↵ | Jeroen van Meeuwen (Kolab Systems) | 2015-08-12 | 1 | -5/+11 |
| | | | | primary and secondary domain name spaces. | ||||
* | Close stdin, stdout and stderr, when the process is told to fork(). Also, ↵ | Jeroen van Meeuwen (Kolab Systems) | 2015-08-12 | 1 | -5/+28 |
| | | | | fork twice to eliminate session control. | ||||
* | Use the new domain naming context comparison function to reduce the number ↵ | Jeroen van Meeuwen (Kolab Systems) | 2015-03-18 | 1 | -1/+3 |
| | | | | | | of processes against hosted (#4260) Domain name spaces are translated back to the domain that owns the naming context, and skipped a separate process for should the naming context already be synchronized by another process. | ||||
* | Bug #2491: sleep time until new domains are created should be optionally set ↵ | Timotheus Pokorra (TBits.net) | 2014-08-19 | 1 | -1/+5 |
| | | | | in configuration file | ||||
* | Updated the licensing information according to FSF recommendations. | Paul Boddie | 2014-06-26 | 1 | -7/+7 |
| | | | | Note that cyruslib.py is still "GPLv2 or a later version" unlike the other files. | ||||
* | Fix inifinite loop for initially connecting | Jeroen van Meeuwen (Kolab Systems) | 2014-02-16 | 1 | -1/+2 |
| | |||||
* | Avoid connection errors being fatal. | Jeroen van Meeuwen (Kolab Systems) | 2014-02-11 | 1 | -0/+14 |
| | | | | Sleep and continue should we have an empty list of domains | ||||
* | Pause between starting domain synchronizations if the number of domains ↵ | Jeroen van Meeuwen (Kolab Systems) | 2014-01-26 | 1 | -0/+3 |
| | | | | added is greater or equal to 5, for otherwise you will hammer your LDAP server to death | ||||
* | terminate() processes for domains that have been removed | Jeroen van Meeuwen (Kolab Systems) | 2013-10-15 | 1 | -0/+4 |
| | |||||
* | Correct unpack error (#2246) | Jeroen van Meeuwen (Kolab Systems) | 2013-09-23 | 1 | -1/+1 |
| | |||||
* | Update copyright | Jeroen van Meeuwen (Kolab Systems) | 2013-04-17 | 1 | -1/+1 |
| | |||||
* | Check if a domain name space synchronization process is still alive | Jeroen van Meeuwen (Kolab Systems) | 2012-11-30 | 1 | -2/+17 |
| | | | | try/except removing our PID file | ||||
* | Import the required utils | Jeroen van Meeuwen (Kolab Systems) | 2012-06-13 | 1 | -0/+1 |
| | |||||
* | Make use of the new ensure_directory() function (#840) | Jeroen van Meeuwen (Kolab Systems) | 2012-06-13 | 1 | -0/+6 |
| | |||||
* | Make sure we use no functions that have been introduced in Python > 2.6 (#803) | Jeroen van Meeuwen (Kolab Systems) | 2012-05-29 | 1 | -6/+10 |
| | |||||
* | Resolve pylint long lines issue | Jeroen van Meeuwen (Kolab Systems) | 2012-05-17 | 1 | -1/+7 |
| | |||||
* | Make as sure as possible, kolabd does not run with any non-kolab privileges | Jeroen van Meeuwen (Kolab Systems) | 2012-05-17 | 1 | -11/+107 |
| | |||||
* | Add kolabd systemd file | Jeroen van Meeuwen (Kolab Systems) | 2012-04-19 | 1 | -64/+35 |
| | | | | Refactor process management in kolabd | ||||
* | Bump pre-release | Jeroen van Meeuwen (Kolab Systems) | 2012-04-17 | 1 | -1/+6 |
| | |||||
* | Insert TODO | Jeroen van Meeuwen (Kolab Systems) | 2012-04-08 | 1 | -0/+2 |
| | |||||
* | Correct some pylint conventions/warnings/errors | Jeroen van Meeuwen (Kolab Systems) | 2012-03-09 | 1 | -21/+52 |
| | |||||
* | Update copyrightdev/entitlements | Jeroen van Meeuwen (Kolab Systems) | 2012-01-04 | 1 | -1/+1 |
| | |||||
* | We don't actually care about the parameters sent by signal handlers, but we ↵ | Jeroen van Meeuwen (Kolab Systems) | 2011-11-21 | 1 | -2/+2 |
| | | | | | | must accept the correct number of parameters. Fixes #516 | ||||
* | Add signal handlers to kolabd and saslauthd | Jeroen van Meeuwen (Kolab Systems) | 2011-11-09 | 1 | -4/+30 |
| | | | | Add -p / --pid-file option to these daemons | ||||
* | Use one fork per domain name space found | Jeroen van Meeuwen (Kolab Systems) | 2011-10-28 | 1 | -16/+24 |
| | |||||
* | Update kolabd synchronizing routine | Jeroen van Meeuwen (Kolab Systems) | 2011-09-23 | 1 | -14/+4 |
| | |||||
* | Fix the URL to the bugtracker | Jeroen van Meeuwen (Kolab Systems) | 2011-06-17 | 1 | -2/+2 |
| | |||||
* | Increase documentation but primarily write out TODOs | Jeroen van Meeuwen (Kolab Systems) | 2011-03-26 | 1 | -0/+7 |
| | |||||
* | Remove the saslauthd component from kolabd | Jeroen van Meeuwen (Kolab Systems) | 2011-03-23 | 1 | -45/+0 |
| | |||||
* | Enhance logging and config system in kolabd | Jeroen van Meeuwen (Kolab Systems) | 2011-03-23 | 1 | -16/+27 |
| | | | | Reuse the existing Auth() instance (avoid duplicate log entries) | ||||
* | Remove saslauthd options and code from the main daemon | Jeroen van Meeuwen (Kolab Systems) | 2011-03-13 | 1 | -17/+4 |
| | |||||
* | Expunging folders is part of the loop | Jeroen van Meeuwen (Kolab Systems) | 2011-03-08 | 1 | -1/+1 |
| | |||||
* | Relicense from GPLv2 only to GPLv3+ | Jeroen van Meeuwen (Kolab Systems) | 2011-03-07 | 1 | -1/+1 |
| | |||||
* | Add an enhanced SASL authentication daemon to the Kolab daemon | Jeroen van Meeuwen (Kolab Systems) | 2011-03-07 | 1 | -2/+79 |
| | |||||
* | Fix typo | Jeroen van Meeuwen (Kolab Systems) | 2011-03-02 | 1 | -1/+1 |
| | |||||
* | Increment thread_count | Jeroen van Meeuwen (Kolab Systems) | 2011-02-21 | 1 | -0/+1 |
| |