[go: up one dir, main page]

Menu

[r3]: / config.java  Maximize  Restore  History

Download this file

70 lines (56 with data), 3.3 kB

 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
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%
//Welcome to logitester
//This is the main configuration file for the application.
//There are three sections to the configuration - Base Variables, Sources and Debug
//-------
//Base Variables
//Base Variables are the variables that allow logitester to authenticate a user
//They must resolve to a working ldap host, base dn and nameing attribute using
//the Address, SearchRoot and nameattr variables respectively.
//-------
String Address = "parrtd01.rta.nsw.gov.au";
String SearchRoot = ",o=admin";
String nameattr = "cn";
//-------
//Sources
//Sources are LDAP trees you would like to search against to test against for
//authentication and also attribute contiguecy. Each line should be in the
//sample format provided beginning with a '{' and ending with '},'
//The order of the source lines are important and is in the following format:
//"Treename" - A common name of your ldap source to aid in identification
//"IP or DNS address of the source" - Self Explanatory
//"BaseDN" - The root container of the source to search for users
//"name attribute" - The pretifying DN attribute for your tree most commonly 'dn'
//"Compare Attributes" - The specific attributes within each LDAP source to compare
//"service account dn" - The DN of a service account who has read access to the attributes searched
//"service account password" - The password of the service account who has read access to the attributes searched
//-------
String[][] trees = {
{ "Auth Tree", "auth.nsw.gov.au", "o=admin", "Novell" , "cn=admin,o=admin", "novell" },
{ "Corporate Directory", "meta.nsw.gov.au", "o=admin", "Novell", "cn=admin,o=admin", "novell" },
{ "Active Directory", "ad.nsw.gov.au", "DC=corp,DC=dns,DC=nsw,DC=gov,DC=au", "Microsoft" , "cn=administrator,cn=users,DC=corp,DC=dns,DC=nsw,DC=gov,DC=au", "microsoft" },
};
//-------
//Compare Attribute Descriptions
//This array is used in order to give a single common description for each of
//the compare attributes used in the source lines above
//NOTE!!! --- The ORDER of both the following line and the Compare attributes field above must be consistent
// Should you change orders of the descriptions or the compare fields the table in the application won't make any sense
//-------
String[] searchnames = { "Login Disabled", "Account Expires", "Maximum Simultaneous", "Intruder Attempts", "Locked By Intruder", "Password Minimum", "Grace Remaining", "Require Password", "Grace Limit", "Expiration Count", "Expiration Date" };
//-------
//Debug
//Set this to 'true' to obtain a printout of session variables while using the application
//-------
Boolean debug = true;
//-------
//System Vars
//This area should generally be left alone it contains mappings for vendors
//-------
String[][] Vendors = {
{ "Novell", "cn", "loginDisabled,loginExpirationTime,loginMaximumSimultaneous,loginIntruderAttempts,lockedByIntruder,passwordMinimumLength,loginGraceRemaining,passwordRequired,loginGraceLimit,passwordExpirationInterval,passwordExpirationTime" },
{ "Microsoft", "cn", "userAccountControl,accountExpires,none,badPwdCount,lockoutTime,none,none,passwordRequired,gracelimit,expireint,userAccountControl" },
};
%>