primary domain goes offline */
if ( domain->primary ) {
- struct winbindd_child *idmap = idmap_child();
+ pid_t idmap_pid = idmap_child_pid();
- if ( idmap->pid != 0 ) {
+ if (idmap_pid != 0) {
messaging_send_buf(global_messaging_context(),
- pid_to_procid(idmap->pid),
+ pid_to_procid(idmap_pid),
MSG_WINBIND_OFFLINE,
(const uint8_t *)domain->name,
strlen(domain->name)+1);
primary domain comes online */
if ( domain->primary ) {
- struct winbindd_child *idmap = idmap_child();
+ pid_t idmap_pid = idmap_child_pid();
- if ( idmap->pid != 0 ) {
+ if (idmap_pid != 0) {
messaging_send_buf(global_messaging_context(),
- pid_to_procid(idmap->pid),
+ pid_to_procid(idmap_pid),
MSG_WINBIND_ONLINE,
(const uint8_t *)domain->name,
strlen(domain->name)+1);
primary domain comes back online */
if ( domain->primary ) {
- struct winbindd_child *idmap = idmap_child();
+ pid_t idmap_pid = idmap_child_pid();
- if ( idmap->pid != 0 ) {
+ if (idmap_pid != 0) {
messaging_send_buf(msg_ctx,
- pid_to_procid(idmap->pid),
+ pid_to_procid(idmap_pid),
MSG_WINBIND_ONLINE,
(const uint8_t *)domain->name,
strlen(domain->name)+1);
return &static_idmap_child;
}
+pid_t idmap_child_pid(void)
+{
+ return static_idmap_child.pid;
+}
+
struct dcerpc_binding_handle *idmap_child_handle(void)
{
return static_idmap_child.binding_handle;
void init_idmap_child(void);
struct winbindd_child *idmap_child(void);
+pid_t idmap_child_pid(void);
struct dcerpc_binding_handle *idmap_child_handle(void);
struct idmap_domain *idmap_find_domain_with_sid(const char *domname,
const struct dom_sid *sid);