Changeset 738 for branches/samba-3.5.x/source3/winbindd
- Timestamp:
- Nov 12, 2012, 7:10:02 PM (13 years ago)
- Location:
- branches/samba-3.5.x/source3/winbindd
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/winbindd/idmap.c
r596 r738 28 28 29 29 static_decl_idmap; 30 31 static void idmap_init(void) 32 { 33 static bool initialized; 34 35 if (initialized) { 36 return; 37 } 38 39 DEBUG(10, ("idmap_init(): calling static_init_idmap\n")); 40 41 static_init_idmap; 42 43 initialized = true; 44 } 30 45 31 46 /** … … 347 362 char *params; 348 363 349 DEBUG(10, ("idmap_init_default_domain: calling static_init_idmap\n")); 350 351 static_init_idmap; 364 idmap_init(); 352 365 353 366 if (!parse_idmap_module(talloc_tos(), lp_idmap_backend(), &modulename, … … 547 560 NTSTATUS ret = NT_STATUS_NO_MEMORY;; 548 561 549 static_init_idmap;562 idmap_init(); 550 563 551 564 if (idmap_alloc_ctx != NULL) { -
branches/samba-3.5.x/source3/winbindd/winbindd.c
r736 r738 567 567 state->cmd_name = "unknown request"; 568 568 state->recv_fn = NULL; 569 state->last_access = time(NULL); 569 570 570 571 /* Process command */ … … 872 873 873 874 for (state = winbindd_client_list(); state; state = state->next) { 874 if (state->response == NULL && 875 if (state->request == NULL && 876 state->response == NULL && 875 877 !state->pwent_state && !state->grent_state) { 876 878 nidle++; -
branches/samba-3.5.x/source3/winbindd/winbindd_cred_cache.c
r414 r738 485 485 const char *service, 486 486 const char *username, 487 const char *pass, 487 488 const char *realm, 488 489 uid_t uid, … … 587 588 DEBUG(10,("add_ccache_to_list: added krb5_ticket handler\n")); 588 589 } 589 590 591 /* 592 * If we're set up to renew our krb5 tickets, we must 593 * cache the credentials in memory for the ticket 594 * renew function (or increase the reference count 595 * if we're logging in more than once). Fix inspired 596 * by patch from Ian Gordon <ian.gordon@strath.ac.uk> 597 * for bugid #9098. 598 */ 599 600 ntret = winbindd_add_memory_creds(username, uid, pass); 601 DEBUG(10, ("winbindd_add_memory_creds returned: %s\n", 602 nt_errstr(ntret))); 603 590 604 return NT_STATUS_OK; 591 605 } … … 669 683 "added ccache [%s] for user [%s] to the list\n", 670 684 ccname, username)); 685 686 if (entry->event) { 687 /* 688 * If we're set up to renew our krb5 tickets, we must 689 * cache the credentials in memory for the ticket 690 * renew function. Fix inspired by patch from 691 * Ian Gordon <ian.gordon@strath.ac.uk> for 692 * bugid #9098. 693 */ 694 695 ntret = winbindd_add_memory_creds(username, uid, pass); 696 DEBUG(10, ("winbindd_add_memory_creds returned: %s\n", 697 nt_errstr(ntret))); 698 } 671 699 672 700 return NT_STATUS_OK; -
branches/samba-3.5.x/source3/winbindd/winbindd_pam.c
r736 r738 299 299 &token->user_sids, 300 300 &token->num_sids, 301 true , false);301 true); 302 302 if (!NT_STATUS_IS_OK(status)) { 303 303 TALLOC_FREE(frame); … … 657 657 service, 658 658 state->request->data.auth.user, 659 state->request->data.auth.pass, 659 660 realm, 660 661 uid, … … 1035 1036 service, 1036 1037 state->request->data.auth.user, 1038 state->request->data.auth.pass, 1037 1039 domain->alt_name, 1038 1040 uid, … … 2457 2459 } 2458 2460 2461 /* 2462 * Remove any mlock'ed memory creds in the child 2463 * we might be using for krb5 ticket renewal. 2464 */ 2465 2466 winbindd_delete_memory_creds(state->request->data.logoff.user); 2467 2459 2468 #else 2460 2469 result = NT_STATUS_NOT_SUPPORTED; -
branches/samba-3.5.x/source3/winbindd/winbindd_proto.h
r414 r738 217 217 const char *service, 218 218 const char *username, 219 const char *password, 219 220 const char *realm, 220 221 uid_t uid, -
branches/samba-3.5.x/source3/winbindd/winbindd_util.c
r480 r738 1167 1167 } 1168 1168 1169 /* Skip Domain local groups outside our domain. 1170 We'll get these from the getsidaliases() RPC call. */ 1169 /* 1170 * Before bug #7843 the "Domain Local" groups were added with a 1171 * lookupuseraliases call, but this isn't done anymore for our domain 1172 * so we need to resolve resource groups here. 1173 * 1174 * When to use Resource Groups: 1175 * http://technet.microsoft.com/en-us/library/cc753670%28v=WS.10%29.aspx 1176 */ 1171 1177 status = sid_array_from_info3(mem_ctx, info3, 1172 1178 user_sids, 1173 1179 &num_groups, 1174 false , true);1180 false); 1175 1181 1176 1182 if (!NT_STATUS_IS_OK(status)) {
Note:
See TracChangeset
for help on using the changeset viewer.