dynconfig: Fix deps, no talloc required
[obnox/samba/samba-obnox.git] / source3 / pam_smbpass / general.h
index 320bdd0cc8729b382239f04a8e981b6704220dd9..c3e4b8bade7cd78ce4833ca7c513944db7d91e2e 100644 (file)
@@ -1,3 +1,7 @@
+#include "../librpc/gen_ndr/samr.h"
+#include "../libcli/auth/pam_errors.h"
+#include "passdb.h"
+
 #ifndef LINUX
 /* This is only needed by modules in the Sun implementation. */
 #if defined(HAVE_SECURITY_PAM_APPL_H)
 #define PAM_AUTHTOK_RECOVER_ERR PAM_AUTHTOK_RECOVERY_ERR
 #endif
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <syslog.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
+#include "replace.h"
+#include "system/filesys.h"
+#include "system/wait.h"
+#include "system/syslog.h"
 
 /*
  * here is the string to inform the user that the new passwords they
@@ -116,7 +117,6 @@ static const SMB_Ctrls smb_args[SMB_CTRLS_] = {
  * to authenticate themself.
  */
 
-#define FAIL_PREFIX                    "-SMB-FAIL-"
 #define SMB_MAX_RETRIES                        3
 
 struct _pam_failed_auth {