winbindd: Do not use group_list->out.resume_index after free
[samba.git] / source4 / winbind / idmap.h
index 6eae92cc68c4ed0f7221ace5ecce031c0e7bc1f9..676955c2b24ec871cdae5d8f1a7ea47a23ab9610 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef _IDMAP_H_
-#define _IDMAP_H_
+#ifndef _WINBIND_IDMAP_H_
+#define _WINBIND_IDMAP_H_
 
-#include "librpc/gen_ndr/winbind.h"
+#include "librpc/gen_ndr/idmap.h"
 
 struct idmap_context {
        struct loadparm_context *lp_ctx;
        struct ldb_context *ldb_ctx;
        struct dom_sid *unix_groups_sid;
        struct dom_sid *unix_users_sid;
+       struct ldb_context *samdb;
 };
 
+struct tevent_context;
+
 #include "winbind/idmap_proto.h"
 
 #endif