1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/auth/credentials
Stefan Metzmacher eaf3d44641 auth/credentials: let cli_credentials_parse_string() always reset principal and realm
If we reset username we need to reset principal if it was set at the same level.

If domain is reset we also need to use it as realm if realm
was set at the same level. Otherwise we'd build a principal
that belongs to a different user, which would not work
and only increment the wrong lockout counter and result
in wrong authorization tokens to be used.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2016-12-20 01:11:24 +01:00
..
tests credentials test: Use samba.tests.subunitrun. 2014-11-22 02:23:10 +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 mit: make it possible to build with MIT kerberos and --picky-developer 2016-09-29 08:02:18 +02: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 auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
credentials_secrets.c credentials: Fix a typo 2016-02-16 10:50:10 +01:00
credentials.c auth/credentials: let cli_credentials_parse_string() always reset principal and realm 2016-12-20 01:11:24 +01:00
credentials.h auth/credentials: add cli_credentials_set_password_will_be_nt_hash() and the related logic 2016-12-20 01:11:23 +01:00
pycredentials.c auth/credentials: add python bindings for enum credentials_obtained 2016-12-20 01:11:24 +01:00
pycredentials.h pycredentials: Remove PyCredentialCacheContainerObject 2016-03-08 01:58:29 +01:00
samba-credentials.pc.in auth: move credentials layer to the top level 2011-10-11 13:41:36 +11:00
wscript_build Rename 'errors' to 'samba-errors' and make it public. 2016-01-13 07:47:04 +01:00