Changeset 736 for branches/samba-3.5.x/source3/winbindd
- Timestamp:
- Nov 12, 2012, 5:38:52 PM (13 years ago)
- Location:
- branches/samba-3.5.x/source3/winbindd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/winbindd/winbindd.c
r732 r736 68 68 69 69 if (lp_loaded()) { 70 c onst char *fname = lp_configfile();70 char *fname = lp_configfile(); 71 71 72 72 if (file_exist(fname) && !strcsequal(fname,get_dyn_CONFIGFILE())) { 73 73 set_dyn_CONFIGFILE(fname); 74 74 } 75 TALLOC_FREE(fname); 75 76 } 76 77 … … 1073 1074 } 1074 1075 1076 /* We call dump_core_setup one more time because the command line can 1077 * set the log file or the log-basename and this will influence where 1078 * cores are stored. Without this call get_dyn_LOGFILEBASE will be 1079 * the default value derived from build's prefix. For EOM this value 1080 * is often not related to the path where winbindd is actually run 1081 * in production. 1082 */ 1083 dump_core_setup("winbindd"); 1084 1075 1085 if (is_daemon && interactive) { 1076 1086 d_fprintf(stderr,"\nERROR: " … … 1107 1117 exit(1); 1108 1118 } 1119 /* After parsing the configuration file we setup the core path one more time 1120 * as the log file might have been set in the configuration and cores's 1121 * path is by default basename(lp_logfile()). 1122 */ 1123 dump_core_setup("winbindd"); 1109 1124 1110 1125 /* Initialise messaging system */ -
branches/samba-3.5.x/source3/winbindd/winbindd_ads.c
r414 r736 181 181 182 182 rc = ads_search_retry(ads, &res, "(objectCategory=user)", attrs); 183 if (!ADS_ERR_OK(rc) || !res) {183 if (!ADS_ERR_OK(rc)) { 184 184 DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); 185 status = ads_ntstatus(rc); 186 } else if (!res) { 187 DEBUG(1,("query_user_list ads_search returned NULL res\n")); 188 185 189 goto done; 186 190 } … … 326 330 327 331 rc = ads_search_retry(ads, &res, filter, attrs); 328 if (!ADS_ERR_OK(rc) || !res) { 332 if (!ADS_ERR_OK(rc)) { 333 status = ads_ntstatus(rc); 329 334 DEBUG(1,("enum_dom_groups ads_search: %s\n", ads_errstr(rc))); 335 goto done; 336 } else if (!res) { 337 DEBUG(1,("enum_dom_groups ads_search returned NULL res\n")); 330 338 goto done; 331 339 } … … 533 541 } 534 542 rc = ads_search_retry(ads, &msg, ldap_exp, attrs); 535 free(ldap_exp);543 SAFE_FREE(ldap_exp); 536 544 TALLOC_FREE(sidstr); 537 if (!ADS_ERR_OK(rc) || !msg) {545 if (!ADS_ERR_OK(rc)) { 538 546 DEBUG(1,("query_user(sid=%s) ads_search: %s\n", 539 547 sid_string_dbg(sid), ads_errstr(rc))); 540 goto done; 548 return ads_ntstatus(rc); 549 } else if (!msg) { 550 DEBUG(1,("query_user(sid=%s) ads_search returned NULL res\n", 551 sid_string_dbg(sid))); 552 return NT_STATUS_INTERNAL_ERROR; 541 553 } 542 554 … … 633 645 rc = ads_search_retry(ads, &res, ldap_exp, group_attrs); 634 646 635 if (!ADS_ERR_OK(rc) || !res) {647 if (!ADS_ERR_OK(rc)) { 636 648 DEBUG(1,("lookup_usergroups ads_search member=%s: %s\n", user_dn, ads_errstr(rc))); 637 649 return ads_ntstatus(rc); 638 } 650 } else if (!res) { 651 DEBUG(1,("lookup_usergroups ads_search returned NULL res\n")); 652 return NT_STATUS_INTERNAL_ERROR; 653 } 654 639 655 640 656 count = ads_count_replies(ads, res); -
branches/samba-3.5.x/source3/winbindd/winbindd_dual.c
r732 r736 37 37 extern bool override_logfile; 38 38 extern struct winbindd_methods cache_methods; 39 40 static struct winbindd_child *children = NULL; 39 41 40 42 /* Read some data from a client connection */ … … 171 173 close(state->child->sock); 172 174 state->child->sock = -1; 175 DLIST_REMOVE(children, state->child); 173 176 tevent_req_error(req, err); 174 177 return; … … 517 520 SMB_ASSERT(child->rpccli != NULL); 518 521 } 519 520 struct winbindd_child *children = NULL;521 522 522 523 void winbind_child_died(pid_t pid) -
branches/samba-3.5.x/source3/winbindd/winbindd_pam.c
r733 r736 1366 1366 } 1367 1367 1368 logon_fn = contact_domain->can_do_samlogon_ex1368 logon_fn = (contact_domain->can_do_samlogon_ex && domain->can_do_validation6) 1369 1369 ? rpccli_netlogon_sam_network_logon_ex 1370 1370 : rpccli_netlogon_sam_network_logon; … … 1559 1559 1560 1560 if ( mapped_user != state->request->data.auth.user ) { 1561 fstr_sprintf( domain_user, "%s\\%s", name_domain, name_user ); 1561 fstr_sprintf( domain_user, "%s%c%s", name_domain, 1562 *lp_winbind_separator(), 1563 name_user ); 1562 1564 safe_strcpy( state->request->data.auth.user, domain_user, 1563 1565 sizeof(state->request->data.auth.user)-1 ); … … 1990 1992 } 1991 1993 1992 logon_fn = contact_domain->can_do_samlogon_ex1994 logon_fn = (contact_domain->can_do_samlogon_ex && domain->can_do_validation6) 1993 1995 ? rpccli_netlogon_sam_network_logon_ex 1994 1996 : rpccli_netlogon_sam_network_logon;
Note:
See TracChangeset
for help on using the changeset viewer.