| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Summary:
ACI subject should be "identifier" not "quota"
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3569
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
some more functions, modules are renamed
and some internal functions were moved into other modules
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3481
|
|
|
|
|
|
|
|
|
|
| |
Summary: some more dynamic imports of relative path's found and dotted
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3484
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Implementation of accepted twistedmatrix Python3 patch #6289 to pykolab/imap_utf7.py
https://twistedmatrix.com/trac/attachment/ticket/6289/imap4.patch
#6289 enhancement closed fixed (fixed)
Port imap4-utf-7 codec implementation to Python 3
Tested with Debian 10 Python versions 2.7, 3.7
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: sicherha
Differential Revision: https://git.kolab.org/D3508
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
fixes error in Python3 running saslauthd.py in fork mode
Code harmonized with code in def run of kolabd/__init__.py and wallace/__init__.py
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: sicherha
Differential Revision: https://git.kolab.org/D3442
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
python 2.7 -3 ./kolab-cli.py -d 9 lm
DeprecationWarning: in 3.x, rfc822 has been removed in favor of the email package
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: sicherha
Differential Revision: https://git.kolab.org/D3457
|
|
|
|
|
|
|
|
|
|
| |
Summary: saslsocket uses binary coded strings (literal byte strings)
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3451
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
"ConfigParser.get(section, option[, raw[, vars]])" in 2.7
"parser.get(section, option, **kwargs)" in 3.x
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3436
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
like D3355,
Note: The anydbm module has been renamed to dbm in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.
https://docs.python.org/2.7/library/anydbm.html
dbm linked to
https://docs.python.org/2.7/library/dbm.html#module-dbm
Note: The dbm module has been renamed to dbm.ndbm in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.
so I tested db file, created with 2.7 and used with dbm.ndbm in 3.7
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3430
|
|
|
|
|
|
|
|
|
|
| |
Summary: similar to D3391, but with variables
Reviewers: #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Differential Revision: https://git.kolab.org/D3427
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: #pykolab, #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: sicherha
Differential Revision: https://git.kolab.org/D3391
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Using for compatibility
from six import string_types
and
"string_types" for "basestring"
as it is still used in pykolab/utils.py
Reviewers: #pykolab, #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: sicherha
Differential Revision: https://git.kolab.org/D3403
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
ConfigParser -> configparser
urlparse -> urllib.parse
Test Plan:
todo: test with python2
Reviewers: #pykolab, #pykolab_developers, sicherha
Reviewed By: #pykolab_developers, sicherha
Subscribers: ghane, sicherha
Differential Revision: https://git.kolab.org/D3355
|
| |
|
| |
|
| |
|
|
|
|
| |
This reverts commit 00085039f31f965b539a62f37b36106394ce6fe2.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Avoid stale cache entries from making the cut, as well as allow an explicit auth_cache_uri=null
Test Plan: None
Reviewers: #pykolab_developers
Subscribers: #pykolab_developers
Differential Revision: https://git.kolab.org/D1690
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
These two hunks were supposed to be part of
991255eaa314b51e2dd586460311d4633a56eb86 but got dropped in an
auto-merge.
Reviewers: mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3250
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
.iteritems() was dropped in Python 3.0.
This commit may have a negative performance impact on Python 2 since
.items() returns a copy of the dictionary's item list. In Python 3,
.items() returns a view object, so no performance drop should be
noticeable there.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Subscribers: mollekopf
Differential Revision: https://git.kolab.org/D3244
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
`dict.has_key(key)` was dropped in Python 3.0. Use `key in dict`
instead.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3241
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The following cases are covered:
* for key in dict
* if key in dict
* len(dict)
This will make life easier for futurize.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3235
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The new syntax was introduced in Python 2.6; the old syntax was
deprecated in Python 3.0.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3232
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
print() has been a function since Python 2.6; the old behaviour was
dropped in Python 3.0.
To use the named file argument in Python 2, we need to import
print_function from the __future__ module.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3229
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The new 0o prefix was introduced in Python 2.6; the old 0 prefix was
deprecated in Python 3.0.
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Subscribers: mollekopf
Differential Revision: https://git.kolab.org/D3226
|
|
|
|
|
|
|
|
| |
Reviewers: machniak, mollekopf
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D3223
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
notification body
Summary:
Set the status to NEEDS_ACTION and don't send out an immediate reply to
the organizer.
Differential Revision: https://git.kolab.org/D3077
|
|
|
|
|
|
| |
Summary: Use multipart/alternative and loose the Content-Disposition header
Differential Revision: https://git.kolab.org/D3056
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
on top
Reviewers: #pykolab_developers, vanmeeuwen
Reviewed By: #pykolab_developers, vanmeeuwen
Subscribers: #pykolab_developers
Differential Revision: https://git.kolab.org/D2996
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: #pykolab_developers, vanmeeuwen
Reviewed By: #pykolab_developers, vanmeeuwen
Subscribers: #pykolab_developers
Differential Revision: https://git.kolab.org/D2900
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Summary:
It implements just enough to get the kolab_smpt_access_policy going on
plesk.
Differential Revision: https://git.kolab.org/D1672
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Fixes T5686
Reviewers: sicherha
Reviewed By: sicherha
Subscribers: sicherha
Maniphest Tasks: T5686
Differential Revision: https://git.kolab.org/D877
|
| |
|
| |
|
| |
|