Changeset 140 for branches/samba-3.0/source/nsswitch/winbindd_cm.c
- Timestamp:
- Jul 11, 2008, 1:13:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/nsswitch/winbindd_cm.c
r134 r140 608 608 } 609 609 610 /* this is at least correct when domain is our domain,611 * which is the only case, when this is currently used: */ 610 /* For now assume our machine account only exists in our domain */ 611 612 612 if (machine_krb5_principal != NULL) 613 613 { 614 614 if (asprintf(machine_krb5_principal, "%s$@%s", 615 account_name, domain->alt_name) == -1)615 account_name, lp_realm()) == -1) 616 616 { 617 617 return NT_STATUS_NO_MEMORY; … … 730 730 (*cli)->use_kerberos = True; 731 731 DEBUG(5, ("connecting to %s from %s with kerberos principal " 732 "[%s] \n", controller, global_myname(),733 machine_krb5_principal ));732 "[%s] and realm [%s]\n", controller, global_myname(), 733 machine_krb5_principal, domain->alt_name)); 734 734 735 735 ads_status = cli_session_setup_spnego(*cli, 736 736 machine_krb5_principal, 737 737 machine_password, 738 domain->name); 738 lp_workgroup(), 739 domain->alt_name); 739 740 740 741 if (!ADS_ERR_OK(ads_status)) { … … 756 757 DEBUG(5, ("connecting to %s from %s with username " 757 758 "[%s]\\[%s]\n", controller, global_myname(), 758 domain->name, machine_account));759 lp_workgroup(), machine_account)); 759 760 760 761 ads_status = cli_session_setup_spnego(*cli, 761 762 machine_account, 762 763 machine_password, 763 domain->name); 764 lp_workgroup(), 765 NULL); 764 766 if (!ADS_ERR_OK(ads_status)) { 765 767 DEBUG(4, ("authenticated session setup failed with %s\n", … … 1249 1251 int i, fd_index; 1250 1252 1253 *fd = -1; 1254 1251 1255 again: 1252 1256 if (!get_dcs(mem_ctx, domain, &dcs, &num_dcs) || (num_dcs == 0)) … … 1309 1313 winbind_add_failed_connection_entry(domain, dcs[fd_index].name, 1310 1314 NT_STATUS_UNSUCCESSFUL); 1315 1316 /* Throw away all arrays as we're doing this again. */ 1317 TALLOC_FREE(dcs); 1318 num_dcs = 0; 1319 1320 TALLOC_FREE(dcnames); 1321 num_dcnames = 0; 1322 1323 TALLOC_FREE(addrs); 1324 num_addrs = 0; 1325 1326 *fd = -1; 1327 1311 1328 goto again; 1312 1329 }
Note:
See TracChangeset
for help on using the changeset viewer.