summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-14 09:41:24 +0200
committerGünther Deschner <gd@samba.org>2008-05-14 09:45:39 +0200
commitc49487805bad03be6a27fc236f60c31dc97ec6ee (patch)
treecb4ec9baf488e306aefa4018889bbc0eb605e7ba /source3
parent84ad491173a130552b19b23af293e239bbd7290b (diff)
downloadsamba-c49487805bad03be6a27fc236f60c31dc97ec6ee.tar.gz
samba-c49487805bad03be6a27fc236f60c31dc97ec6ee.tar.bz2
samba-c49487805bad03be6a27fc236f60c31dc97ec6ee.zip
mailslot: Also pick domain name and pdc name from type 15 cldap reply.
Guenther (This used to be commit 836877c4005ba081c0a4cc97726830d6dbd62d34)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clidgram.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index 367b028396..8b35a69def 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/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)) {