1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/auth/credentials
Noel Power cc11f71820 auth/credentials/tests: Python 3.6 avoid deepcopy error
In PY3 both deepcopy & (shallow)copy fail with

  Traceback (most recent call last):
    File "auth/credentials/tests/bind.py", line 42, in <module>
      creds_machine = copy.copy(creds)
    File "/usr/lib64/python3.6/copy.py", line 96, in copy
      rv = reductor(4)
  TypeError: can't pickle credentials.Credentials objects

This patch avoids the nasty copies but creating and populating the
Credential objects instead of copying

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-10 10:38:24 +01:00
..
tests auth/credentials/tests: Python 3.6 avoid deepcopy error 2018-12-10 10:38:24 +01:00
credentials_internal.h auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
credentials_krb5.c krb5_wrap: Add a talloc_ctx to smb_krb5_principal_get_realm() 2018-11-28 17:44:15 +01:00
credentials_krb5.h auth/credentials: also do a shallow copy of the krb5_ccache. 2016-07-22 23:34:20 +02:00
credentials_ntlm.c define DBGC_AUTH class 2018-01-08 03:34:17 +01:00
credentials_secrets.c dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
credentials.c auth:credentials: Avoid an 'else' branch 2018-03-01 14:49:45 +01:00
credentials.h cli_credentials: Apply some const 2017-09-16 12:28:17 +02:00
pycredentials.c auth/credentials: PY3 set_password should decode from unicode 'utf8' 2018-12-10 10:38:21 +01:00
pycredentials.h pycredentials: Remove PyCredentialCacheContainerObject 2016-03-08 01:58:29 +01:00
samba-credentials.pc.in build: correct package dependencies 2017-04-18 18:54:13 +02:00
wscript_build PY3: fix "TabError: inconsistent use of tabs and spaces" 2018-09-27 01:54:27 +02:00