1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00
mailinabox/setup
downtownallday 80decc3f71 fix python error "cannot pickle 'dict_keys' object"
a deep copy of a dictionary with values of type `dict_keys`, required by the underlying ldap3 python3 library, is no longer allowed. they must be a `list` type

actual error:

Traceback (most recent call last):
  File "/mailinabox/setup/migrate.py", line 461, in <module>
    run_miabldap_migrations()
  File "/mailinabox/setup/migrate.py", line 440, in run_miabldap_migrations
    raise e
  File "/mailinabox/setup/migrate.py", line 431, in run_miabldap_migrations
    migration_func(env)
  File "/mailinabox/setup/migrate.py", line 249, in migration_miabldap_1
    users=m13.create_users(env, conn, ldap, ldap_base, ldap_users_base, ldap_domains_base)
  File "/mailinabox/setup/migration_13.py", line 137, in create_users
    dn = add_user(env, ldapconn, ldap_base, ldap_users_base, ldap_domains_base, email, password, privs.split("\n"), totp)
  File "/mailinabox/setup/migration_13.py", line 90, in add_user
    ldapconn.add(dn, objectClasses, attrs)
  File "/usr/lib/python3/dist-packages/ldap3/core/connection.py", line 947, in add
    _attributes = deepcopy(attributes)  # dict could change when adding objectClass values
  File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 161, in deepcopy
    rv = reductor(4)
TypeError: cannot pickle 'dict_keys' object
2022-09-05 17:20:41 -04:00
..
mods.available sync should be true for a nextcloud backend 2022-09-05 15:29:39 -04:00
bootstrap.sh Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204 2022-07-28 17:20:57 -04:00
dkim.sh Merge branch 'master' of https://github.com/mail-in-a-box/mailinabox 2021-02-28 12:47:10 -05:00
dns.sh Configure nsd listening interfaces before installing nsd so that it does not interfere with bind9 2022-07-28 14:02:46 -04:00
firstuser.sh Use $(...) notation instead of legacy backtick notation for embedded shell commands 2021-05-03 19:28:23 -04:00
functions-downloads.sh Roundcube 1.6-rc 2022-06-25 12:39:52 -04:00
functions-ldap.sh Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2021-10-01 17:43:48 -04:00
functions.sh Upgrade from PHP 7.2 to 8.0 for Ubuntu 22.04 2022-07-28 14:02:46 -04:00
ldap.sh Merge branch 'master' into jammyjellyfish2204 2022-09-05 10:30:45 -04:00
mail-dovecot.sh Update dovecot, spampd settings for Ubuntu 22.04 2022-07-28 14:34:45 -04:00
mail-postfix.sh Update dovecot, spampd settings for Ubuntu 22.04 2022-07-28 14:34:45 -04:00
mail-users.sh Fix smart host alias (alias with no forward to's). Postfix recently started rejecting these mails with "Sender address rejected: domain not found". This ensures the special case is handled properly. 2021-10-19 08:15:28 -04:00
management-capture.sh use systemctl 'restart' instead of 'start' 2021-04-09 12:04:11 -04:00
management.sh Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204 2022-09-05 09:30:19 -04:00
migrate.py Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2021-10-01 17:43:48 -04:00
migration_13.py fix python error "cannot pickle 'dict_keys' object" 2022-09-05 17:20:41 -04:00
migration_14.py Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2021-10-01 17:43:48 -04:00
munin.sh Fix upgrade job failure 2020-06-14 16:48:21 -04:00
network-checks.sh prevent apt from asking the user any questions 2015-02-13 13:41:52 +00:00
nextcloud.sh Update app hashes for NC 21 and 22 upgrades 2022-09-05 14:12:29 -04:00
preflight.sh Update Ubuntu version checks from 18.04 to 22.04 2022-07-28 14:02:44 -04:00
questions.sh Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
spamassassin.sh Implement SPF/DMARC checks, add spam weight to those mails (#1836) 2020-12-25 17:22:24 -05:00
ssl.sh Explicitly create a /etc/ldap/ldap.conf in the docker image so ldap tools recognize the system's trusted root certificate list 2021-09-14 08:18:53 -04:00
start.sh Merge branch 'master' into jammyjellyfish2204 2022-09-05 10:30:45 -04:00
system.sh system.sh: Remove no longer needed haveged (#2090) 2022-07-28 14:42:51 -04:00
web.sh Upgrade from PHP 7.2 to 8.0 for Ubuntu 22.04 2022-07-28 14:02:46 -04:00
webmail.sh roundcube 1.6 2022-09-05 14:12:52 -04:00
zpush.sh z-push hack for php 8.0: change a debug print statement and make a policies.ini change 2022-09-05 15:32:24 -04:00