|
Lines 559-564
Link Here
|
| 559 |
static void child_msg_online(int msg_type, struct process_id src, void *buf, size_t len) |
621 |
static void child_msg_online(int msg_type, struct process_id src, void *buf, size_t len) |
| 560 |
{ |
622 |
{ |
| 561 |
struct winbindd_domain *domain; |
623 |
struct winbindd_domain *domain; |
|
|
624 |
int ret; |
| 562 |
|
625 |
|
| 563 |
DEBUG(5,("child_msg_online received.\n")); |
626 |
DEBUG(5,("child_msg_online received.\n")); |
| 564 |
|
627 |
|
|
Lines 570-575
Link Here
|
| 570 |
/* Set our global state as online. */ |
633 |
/* Set our global state as online. */ |
| 571 |
set_global_winbindd_state_online(); |
634 |
set_global_winbindd_state_online(); |
| 572 |
|
635 |
|
|
|
636 |
#ifdef HAVE_LIBNSCD |
| 637 |
/* Flush nscd caches to get accurate new information */ |
| 638 |
ret = nscd_flush_cache("passwd"); |
| 639 |
if (ret) { |
| 640 |
DEBUG(5,("failed to flush nscd cache for 'passwd' service: %s\n", |
| 641 |
error_message(ret))); |
| 642 |
} |
| 643 |
|
| 644 |
ret = nscd_flush_cache("group"); |
| 645 |
if (ret) { |
| 646 |
DEBUG(5,("failed to flush nscd cache for 'group' service: %s\n", |
| 647 |
error_message(ret))); |
| 648 |
} |
| 649 |
#endif |
| 650 |
|
| 573 |
/* Mark everything online - delete any negative cache entries |
651 |
/* Mark everything online - delete any negative cache entries |
| 574 |
to force an immediate reconnect. */ |
652 |
to force an immediate reconnect. */ |
| 575 |
|
653 |
|