s3: Fork multiple children per domain
[obnox/samba-ctdb.git] / source / winbindd / winbindd.h
index 42a1100f02b643c935cf69d51d0a113aa8af8462..07033379bfac240972129b86296c6ee6072b5ba0 100644 (file)
@@ -195,6 +195,13 @@ struct winbindd_domain {
 
        void *private_data;
 
+       /*
+        * idmap config settings, used to tell the idmap child which
+        * special domain config to use for a mapping
+        */
+       bool have_idmap_config;
+       uint32_t id_range_low, id_range_high;
+
        /* A working DC */
        fstring dcname;
        struct sockaddr_storage dcaddr;
@@ -211,7 +218,7 @@ struct winbindd_domain {
 
        /* The child pid we're talking to */
 
-       struct winbindd_child child;
+       struct winbindd_child *children;
 
        /* Callback we use to try put us back online. */
 
@@ -378,4 +385,6 @@ enum ent_type {
 #define IS_DOMAIN_OFFLINE(x) ( lp_winbind_offline_logon() && \
                               ( get_global_winbindd_state_offline() \
                                 || !(x)->online ) )
+#define IS_DOMAIN_ONLINE(x) (!IS_DOMAIN_OFFLINE(x))
+
 #endif /* _WINBINDD_H */