s3:tldap: simplify tldap_gensec_bind.h
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Jan 2024 15:45:07 +0000 (16:45 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:34 +0000 (23:50 +0000)
We don't need any includes...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/tldap_gensec_bind.c
source3/lib/tldap_gensec_bind.h
source3/winbindd/idmap_ad.c

index c4092132d898a50414898a3869683c6b278ee0aa..4472eb1c60541801b80ebd427fd9fbaecb62a14d 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "tldap_gensec_bind.h"
+#include "replace.h"
+#include "tldap.h"
 #include "tldap_util.h"
+#include "tldap_gensec_bind.h"
+#include "auth/credentials/credentials.h"
 #include "lib/util/tevent_unix.h"
 #include "lib/util/talloc_stack.h"
 #include "lib/util/samba_util.h"
index cb6b8e6f5f0165240d70f67db10487b8ca4b6edf..99085dd65ea69ad2e3d6987bff53705f2c2f65a6 100644 (file)
@@ -20,9 +20,9 @@
 #ifndef __TLDAP_GENSEC_BIND_H__
 #define __TLDAP_GENSEC_BIND_H__
 
-#include "replace.h"
-#include "tldap.h"
-#include "auth/credentials/credentials.h"
+struct tldap_context;
+struct cli_credentials;
+struct loadparm_context;
 
 TLDAPRC tldap_gensec_bind(
        struct tldap_context *ctx, struct cli_credentials *creds,
index 5c9fe07db95e36f06b86d2f500a4c3e385c82bbd..6a417853a4a740fb92234f6ea2ba68bf70d1c063 100644 (file)
@@ -21,8 +21,9 @@
 #include "winbindd.h"
 #include "libsmb/namequery.h"
 #include "idmap.h"
-#include "tldap_gensec_bind.h"
+#include "tldap.h"
 #include "tldap_util.h"
+#include "tldap_gensec_bind.h"
 #include "passdb.h"
 #include "lib/param/param.h"
 #include "auth/gensec/gensec.h"