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 dab9456cfc auth/credentials: handle situations without a configured (default) realm
We should not have cli_credentials_get_realm() return "" without a
configured (default) realm in smb.conf.
Note that the existing tests with creds.get_realm() == lp.get("realm")
also work with "" as string.

At the same time we should never let cli_credentials_get_principal()
return "@REALM.EXAMPLE.COM" nor "username@".

If cli_credentials_parse_string() gets "OTHERDOMAIN\username"
we must not use cli_credentials_get_realm() to generate
a principal unless cli_credentials_get_domain() returns
also "OTHERDOMAIN". What we need to do is using
username@OTHERDOMAIN as principal, whild we still
use cli_credentials_get_realm to get a default kdc,
(which may route us to the correct kdc with WRONG_REALM
messages).

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: handle situations without a configured (default) 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