summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-08 05:10:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:21 -0500
commit06a4e5688e05f1989a661815bd75e23d1f54e443 (patch)
tree16e9b1a95f4febc0f4c6470dcaa67b8609d975b7 /source4/cldap_server
parenta1a3b967315eee71da4d5d09d4fa9dd948502772 (diff)
downloadsamba-06a4e5688e05f1989a661815bd75e23d1f54e443.tar.gz
samba-06a4e5688e05f1989a661815bd75e23d1f54e443.tar.bz2
samba-06a4e5688e05f1989a661815bd75e23d1f54e443.zip
r8223: fix the values of nt_version and type we reply in the server code,
also name the struct like the nt_version number metze (This used to be commit 1e3af5cc1f68b7fa54b8ba77ed9836a619a69436)
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c77
1 files changed, 37 insertions, 40 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index f2530c46be..33f8734278 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -117,54 +117,51 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
break;
case 2:
case 3:
- netlogon->logon2.pdc_name = pdc_name;
- netlogon->logon2.user_name = user;
- netlogon->logon2.domain_name = flatname;
- netlogon->logon2.domain_uuid = domain_uuid;
- netlogon->logon2.forest = realm;
- netlogon->logon2.dns_domain = dns_domain;
- netlogon->logon2.pdc_dns_name = pdc_dns_name;
- netlogon->logon2.pdc_ip = pdc_ip;
- netlogon->logon2.server_type = server_type;
- netlogon->logon2.nt_version = 3;
- netlogon->logon2.lmnt_token = 0xFFFF;
- netlogon->logon2.lm20_token = 0xFFFF;
- break;
- case 4:
- case 5:
- case 6:
- case 7:
- netlogon->logon3.server_type = server_type;
+ netlogon->logon3.pdc_name = pdc_name;
+ netlogon->logon3.user_name = user;
+ netlogon->logon3.domain_name = flatname;
netlogon->logon3.domain_uuid = domain_uuid;
netlogon->logon3.forest = realm;
netlogon->logon3.dns_domain = dns_domain;
netlogon->logon3.pdc_dns_name = pdc_dns_name;
- netlogon->logon3.domain = flatname;
- netlogon->logon3.pdc_name = lp_netbios_name();
- netlogon->logon3.user_name = user;
- netlogon->logon3.site_name = site_name;
- netlogon->logon3.site_name2 = site_name2;
- netlogon->logon3.nt_version = 3;
+ netlogon->logon3.pdc_ip = pdc_ip;
+ netlogon->logon3.server_type = server_type;
netlogon->logon3.lmnt_token = 0xFFFF;
netlogon->logon3.lm20_token = 0xFFFF;
break;
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ netlogon->logon5.server_type = server_type;
+ netlogon->logon5.domain_uuid = domain_uuid;
+ netlogon->logon5.forest = realm;
+ netlogon->logon5.dns_domain = dns_domain;
+ netlogon->logon5.pdc_dns_name = pdc_dns_name;
+ netlogon->logon5.domain = flatname;
+ netlogon->logon5.pdc_name = lp_netbios_name();
+ netlogon->logon5.user_name = user;
+ netlogon->logon5.site_name = site_name;
+ netlogon->logon5.site_name2 = site_name2;
+ netlogon->logon5.lmnt_token = 0xFFFF;
+ netlogon->logon5.lm20_token = 0xFFFF;
+ break;
default:
- netlogon->logon4.server_type = server_type;
- netlogon->logon4.domain_uuid = domain_uuid;
- netlogon->logon4.forest = realm;
- netlogon->logon4.dns_domain = dns_domain;
- netlogon->logon4.pdc_dns_name = pdc_dns_name;
- netlogon->logon4.domain = flatname;
- netlogon->logon4.pdc_name = lp_netbios_name();
- netlogon->logon4.user_name = user;
- netlogon->logon4.site_name = site_name;
- netlogon->logon4.site_name2 = site_name2;
- netlogon->logon4.unknown = 10;
- netlogon->logon4.unknown2 = 2;
- netlogon->logon4.pdc_ip = pdc_ip;
- netlogon->logon4.nt_version = 5;
- netlogon->logon4.lmnt_token = 0xFFFF;
- netlogon->logon4.lm20_token = 0xFFFF;
+ netlogon->logon13.server_type = server_type;
+ netlogon->logon13.domain_uuid = domain_uuid;
+ netlogon->logon13.forest = realm;
+ netlogon->logon13.dns_domain = dns_domain;
+ netlogon->logon13.pdc_dns_name = pdc_dns_name;
+ netlogon->logon13.domain = flatname;
+ netlogon->logon13.pdc_name = lp_netbios_name();
+ netlogon->logon13.user_name = user;
+ netlogon->logon13.site_name = site_name;
+ netlogon->logon13.site_name2 = site_name2;
+ netlogon->logon13.unknown = 10;
+ netlogon->logon13.unknown2 = 2;
+ netlogon->logon13.pdc_ip = pdc_ip;
+ netlogon->logon13.lmnt_token = 0xFFFF;
+ netlogon->logon13.lm20_token = 0xFFFF;
break;
}