-
Notifications
You must be signed in to change notification settings - Fork 1
/
ldapauth_global.h
69 lines (51 loc) · 1.23 KB
/
ldapauth_global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*++
IIS LDAP Authentication Module
Copyright 2006 Inflection Technology, LLC
For more information, visit http://www.inflectiontech.com.
Released under LGPL terms.
Some portions Copyright Salvador Salanova Fortmann.
Some portions Copyright Microsoft Corporation.
File Name: ldapauth_global.h
Abstract:
Global compile time options.
Modification History:
--*/
#ifndef _IISLDAPAUTH_GLOBAL_H_
#define _IISLDAPAUTH_GLOBAL_H_
/*
Constants
*/
#define MAXSTRLEN 1024
/*
Compile Options
*/
#ifdef _DEBUG
#define IISLDAPAUTH_DEBUG 1
#endif
#define IISLDAPAUTH_DENYBLANKPASSWORDS 1
#define IISLDAPAUTH_CACHE 1
#define IISLDAPAUTH_FILE_LOG 1
/*
#define IISLDAPAUTH_BSTENTERPRISEHACK 1
*/
/*
Visual Studio 2005 includes support for strlcpy() and strlcat().
Enable the #define to turn off our versions of these routines.
#define VS2005 1
*/
/*
Debug Strings
*/
#ifdef IISLDAPAUTH_FILE_LOG
#define DebugWrite( x ) Log_Write( x, LDAPLOG_DEBUG )
#else
#define DebugWrite( x ) /* nothing */
#endif /* IISLDAPAUTH_FILE_LOG */
#include "string_safe.h"
/*
Logging routines are used globally
*/
#ifdef IISLDAPAUTH_FILE_LOG
#include "ldapauthlog.h"
#endif /* IISLDAPAUTH_FILE_LOG */
#endif /* _IISLDAPAUTH_GLOBAL_H_ */