#include <ctype.h>
+#include "rlm_mschap.h"
#include "mschap.h"
#include "smbdes.h"
int od_mschap_auth(REQUEST *request, VALUE_PAIR *challenge, VALUE_PAIR * usernamepair);
#endif
-/* Method of authentication we are going to use */
-typedef enum {
- AUTH_INTERNAL = 0,
- AUTH_NTLMAUTH_EXEC = 1
-} MSCHAP_AUTH_METHOD;
-
/* Allowable account control bits */
#define ACB_DISABLED 0x00010000 //!< User account disabled.
#define ACB_HOMDIRREQ 0x00020000 //!< Home directory required.
}
-typedef struct rlm_mschap_t {
- bool use_mppe;
- bool require_encryption;
- bool require_strong;
- bool with_ntdomain_hack; /* this should be in another module */
- char const *xlat_name;
- char const *ntlm_auth;
- uint32_t ntlm_auth_timeout;
- char const *ntlm_cpw;
- char const *ntlm_cpw_username;
- char const *ntlm_cpw_domain;
- char const *local_cpw;
- char const *auth_type;
- bool allow_retry;
- char const *retry_msg;
- MSCHAP_AUTH_METHOD method;
-#ifdef WITH_OPEN_DIRECTORY
- bool open_directory;
-#endif
-} rlm_mschap_t;
-
-
/*
* Does dynamic translation of strings.
*
--- /dev/null
+/* Copyright 2006-2015 The FreeRADIUS server project */
+
+#ifndef _RLM_MSCHAP_H
+#define _RLM_MSCHAP_H
+
+RCSIDH(rlm_mschap_h, "$Id$")
+
+/* Method of authentication we are going to use */
+typedef enum {
+ AUTH_INTERNAL = 0,
+ AUTH_NTLMAUTH_EXEC = 1
+} MSCHAP_AUTH_METHOD;
+
+typedef struct rlm_mschap_t {
+ bool use_mppe;
+ bool require_encryption;
+ bool require_strong;
+ bool with_ntdomain_hack; /* this should be in another module */
+ char const *xlat_name;
+ char const *ntlm_auth;
+ uint32_t ntlm_auth_timeout;
+ char const *ntlm_cpw;
+ char const *ntlm_cpw_username;
+ char const *ntlm_cpw_domain;
+ char const *local_cpw;
+ char const *auth_type;
+ bool allow_retry;
+ char const *retry_msg;
+ MSCHAP_AUTH_METHOD method;
+#ifdef WITH_OPEN_DIRECTORY
+ bool open_directory;
+#endif
+} rlm_mschap_t;
+
+#endif
+