diff options
author | Günther Deschner <gd@samba.org> | 2008-05-14 09:41:24 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-05-14 09:45:39 +0200 |
commit | 836877c4005ba081c0a4cc97726830d6dbd62d34 (patch) | |
tree | 78ab87bb872bd1148d917d616661b1c24dc6ed48 /source/libsmb | |
parent | c84d49429191423a81d558042fe949c26f5de5fe (diff) | |
download | samba-836877c4005ba081c0a4cc97726830d6dbd62d34.tar.gz samba-836877c4005ba081c0a4cc97726830d6dbd62d34.tar.xz samba-836877c4005ba081c0a4cc97726830d6dbd62d34.zip |
mailslot: Also pick domain name and pdc name from type 15 cldap reply.
Guenther
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/clidgram.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/source/libsmb/clidgram.c b/source/libsmb/clidgram.c index 367b0283963..8b35a69defe 100644 --- a/source/libsmb/clidgram.c +++ b/source/libsmb/clidgram.c @@ -274,11 +274,16 @@ bool receive_getdc_response(TALLOC_CTX *mem_ctx, switch (*nt_version) { case 1: + case 16: + case 17: + returned_domain = r.logon1.domain_name; returned_dc = r.logon1.pdc_name; break; case 2: case 3: + case 18: + case 19: returned_domain = r.logon3.domain_name; returned_dc = r.logon3.pdc_name; break; @@ -300,10 +305,26 @@ bool receive_getdc_response(TALLOC_CTX *mem_ctx, returned_domain = r.logon13.domain; returned_dc = r.logon13.pdc_name; break; - default: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + returned_domain = r.logon15.domain; + returned_dc = r.logon15.pdc_name; + break; + case 29: + case 30: + case 31: returned_domain = r.logon29.domain; returned_dc = r.logon29.pdc_name; break; + default: + return false; } if (!strequal(returned_domain, domain_name)) { |