1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

r18063: When we get a successful connection using ADS,

cache the SAF name under both the domain name
and the realm name, as we could be looking up
under both. Jerry please check.
Jeremy.
(This used to be commit 9d954d2deb46698b3834c7caf5ee0cfe628086b5)
This commit is contained in:
Jeremy Allison 2006-09-05 06:32:46 +00:00 committed by Gerald (Jerry) Carter
parent d2465b1730
commit 8d812f8eed
2 changed files with 5 additions and 1 deletions

View File

@ -393,8 +393,9 @@ got_connection:
return ADS_ERROR(LDAP_OPERATIONS_ERROR);
}
/* cache the successful connection */
/* cache the successful connection for workgroup and realm */
saf_store( ads->server.workgroup, inet_ntoa(ads->ldap_ip));
saf_store( ads->server.realm, inet_ntoa(ads->ldap_ip));
ldap_set_option(ads->ld, LDAP_OPT_PROTOCOL_VERSION, &version);

View File

@ -363,6 +363,9 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
/* cache the server name for later connections */
saf_store( domain->name, (*cli)->desthost );
if (domain->alt_name) {
saf_store( domain->alt_name, (*cli)->desthost );
}
if (!cli_send_tconX(*cli, "IPC$", "IPC", "", 0)) {