diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-01-04 11:46:47 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-04 13:37:42 +0100 |
commit | bf0da0b4f7fcdc655def21f84619850c0d699c3e (patch) | |
tree | 228b9bfac3918b61594d47093a597322b6e8710e /source4/torture | |
parent | f9b1fb02df8e9192ec4adb81b47a25942f4308a9 (diff) | |
download | samba-bf0da0b4f7fcdc655def21f84619850c0d699c3e.tar.gz samba-bf0da0b4f7fcdc655def21f84619850c0d699c3e.tar.bz2 samba-bf0da0b4f7fcdc655def21f84619850c0d699c3e.zip |
LDAP-CLDAP: demonstrate that pdc name is an unc path
For LOGON_SAM_LOGON_RESPONSE and LOGON_SAM_LOGON_USER_UNKNOWN,
I assume all levels without _EX in the name, pdc name is
in unc path form.
[MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form,
while NetbiosComputerName is not in unc form.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 4 13:37:42 CET 2012 on sn-devel-104
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/ldap/cldap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/ldap/cldap.c b/source4/torture/ldap/cldap.c index 6de33b8597..b3f62762cf 100644 --- a/source4/torture/ldap/cldap.c +++ b/source4/torture/ldap/cldap.c @@ -123,6 +123,9 @@ static bool test_cldap_netlogon(struct torture_context *tctx, const char *dest) CHECK_STATUS(status, NT_STATUS_OK); CHECK_VAL(search.out.netlogon.data.nt5_ex.command, LOGON_SAM_LOGON_RESPONSE); CHECK_STRING(search.out.netlogon.data.nt5_ex.user_name, ""); + torture_assert(tctx, + strstr(search.out.netlogon.data.nt5_ex.pdc_name, "\\\\") != NULL, + "PDC name should be in UNC form"); printf("Trying with User=Administrator\n"); search.in.user = "Administrator"; @@ -130,6 +133,9 @@ static bool test_cldap_netlogon(struct torture_context *tctx, const char *dest) CHECK_STATUS(status, NT_STATUS_OK); CHECK_VAL(search.out.netlogon.data.nt5_ex.command, LOGON_SAM_LOGON_USER_UNKNOWN); CHECK_STRING(search.out.netlogon.data.nt5_ex.user_name, search.in.user); + torture_assert(tctx, + strstr(search.out.netlogon.data.nt5_ex.pdc_name, "\\\\") != NULL, + "PDC name should be in UNC form"); search.in.version = NETLOGON_NT_VERSION_5 | NETLOGON_NT_VERSION_5EX; |