winbindd: Do not use group_list->out.resume_index after free
[samba.git] / source4 / winbind / idmap.h
index 13dbe0b921455a3e8448e66443d4ac32b37c7632..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 event_context;
+struct tevent_context;
 
 #include "winbind/idmap_proto.h"