Skip to content

Commit

Permalink
Create rlm_mschap.h (split out from rlm_mschap.c)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnewton authored and arr2036 committed Mar 21, 2015
1 parent c1c924d commit 0ef3dfa
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 28 deletions.
Empty file modified src/modules/rlm_mschap/configure
100755 → 100644
Empty file.
29 changes: 1 addition & 28 deletions src/modules/rlm_mschap/rlm_mschap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RCSID("$Id$")

#include <ctype.h>

#include "rlm_mschap.h"
#include "mschap.h"
#include "smbdes.h"

Expand All @@ -45,12 +46,6 @@ USES_APPLE_DEPRECATED_API /* OpenSSL API has been deprecated by Apple */
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.
Expand Down Expand Up @@ -144,28 +139,6 @@ static int pdb_decode_acct_ctrl(char const *p)
}


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.
*
Expand Down
36 changes: 36 additions & 0 deletions src/modules/rlm_mschap/rlm_mschap.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* 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

0 comments on commit 0ef3dfa

Please sign in to comment.