Configure Optional

Version 6 (Bryan Heath, 12/11/2012 12:29 pm)

1 1
h1. Configure Optional
2 1
3 1
Everything is pretty well documented in the /ldap/config.php file however here is a more inclusive documentation
4 1
5 1
For all the examples below we will be using mysite.com as the AD prefix and DC=mysite,DC=com as the base DN
6 1
7 2 Bryan Heath
h1. @$user_groups = array();@
8 1
9 1
+*This is not required for a user to login*+
10 1
11 1
A valid AD user groups (see KAYAKO_LDAP_ERROR_USERGROUP as well) to user group
12 1
* AD_Group => Kayako_User_Group
13 1
* Can do more than one
14 1
15 2 Bryan Heath
h2. Example:
16 1
17 1
Lets say you have a AD group called Customer Service and a Kayako user group called Service:
18 1
19 5 Bryan Heath
20 5 Bryan Heath
h1. @$user_group_bypass = array();@
21 5 Bryan Heath
22 5 Bryan Heath
+*This is not required for a user to login*+
23 5 Bryan Heath
24 5 Bryan Heath
This allows the ability to bypass the default Kayako user groups, which is Registered. 
25 5 Bryan Heath
* AD_Username => User_Group
26 5 Bryan Heath
* Can do more than one
27 5 Bryan Heath
* AD Username *+must+* be lowercase (this ensures the validation)
28 5 Bryan Heath
* This bypasses the user_group completely
29 5 Bryan Heath
30 5 Bryan Heath
h2. Example:
31 5 Bryan Heath
32 6 Bryan Heath
@$user_group_bypass = array('jdoe' => 'Service');@
33 1
More than one:
34 6 Bryan Heath
@$user_group_bypass = array('jdoe' => 'Service', 'janedoe' => 'Service', 'fdoe' => 'Technical');@
35 1
36 2 Bryan Heath
h1. @$valid_user_groups = array();@
37 1
38 1
+*This is not required for a user to login*+
39 1
40 1
A AD groups a user +must+ be in to login
41 1
* If they are not in one of these groups they will +*not*+ be able to login
42 1
* Can do more than one
43 1
44 2 Bryan Heath
h2. Example:
45 1
46 1
$valid_user_groups = array('Customer Service', 'IS');
47 1
48 3 Bryan Heath
h1. @define('KAYAKO_LDAP_VERIFY_CONTROLLER', true);@
49 3 Bryan Heath
50 3 Bryan Heath
This is only used if more than one domain controller is used for authentication.
51 3 Bryan Heath
52 3 Bryan Heath
* true -  adLDAP will attempt to verify it can connect to one of the controllers.  If failed it will try another until one is found or all have been tried
53 3 Bryan Heath
* false - The default behavior is used where adLDAP will to try to connect to one random controller in the list.  If failed it will NOT try another server.
54 3 Bryan Heath
55 2 Bryan Heath
h1. @define('KAYAKO_LDAP_ERROR_USERGROUP', true);@
56 1
57 1
* true - User will receive an error if they are not in any of the user groups
58 1
* false - Users not in the $user_group can still login they just will not be in a User Group
59 1
60 2 Bryan Heath
h1. @define('KAYAKO_LDAP_TEST', false);@
61 1
62 1
* true - Test mode enabled
63 1
* false - Test mode disabled
64 1
** username and password is ignored
65 1
66 3 Bryan Heath
h1. @define('KAYAKO_LDAP_SHOW_ERRORS', false);@
67 3 Bryan Heath
68 3 Bryan Heath
* true - Show errors and/or warnings on the screen.  Please note that this will cause login to fail if there is even one displayed.  Thus this should +*only*+ be used for testing
69 3 Bryan Heath
* false - Hides them
70 3 Bryan Heath
71 2 Bryan Heath
h1. @define('KAYAKO_LDAP_LOG', false);@
72 1
73 1
* true - Logging enabled
74 1
* false - Logging disabled
75 1
* The /ldap/log directory must be writable (755 or 777)
76 1
* You should leave this disabled unless needed as it does extensive logging
77 3 Bryan Heath
78 3 Bryan Heath
h1. @define('KAYAKO_LDAP_LOG_XML', false);@
79 3 Bryan Heath
80 3 Bryan Heath
* true - Log the XML output
81 3 Bryan Heath
* false - Disabled
82 3 Bryan Heath
83 3 Bryan Heath
h1. @define('KAYAKO_LDAP_LOG_OUTPUT', false);@
84 3 Bryan Heath
85 3 Bryan Heath
* true - Attempts to log everything displayed to the screen
86 3 Bryan Heath
* false - Disabled
87 4 Bryan Heath
* Note the KAYAKO_LDAP_LOG_XML is redundant if this is enabled
88 1
89 2 Bryan Heath
h1. @define('KAYAKO_LDAP_USERNAME', 'username');@
90 1
91 1
A valid AD username to test with
92 1
93 2 Bryan Heath
h1. @define('KAYAKO_LDAP_PASSWORD', 'password');@
94 1
95 1
The password to go with KAYAKO_LDAP_USERNAME
96 1
97 4 Bryan Heath
h1. @define('KAYAKO_LDAP_PHONE_NUMBER', true);@
98 1
99 4 Bryan Heath
* true - The AD mobile or home number will be used if the AD telephone number is empty
100 1
* false - Disabled
101 1
102 4 Bryan Heath
h1. @define('KAYAKO_LDAP_IMPORT_DEPARTMENT', true);@
103 1
104 4 Bryan Heath
* true -  Import AD Department to Organization in the user's profile
105 4 Bryan Heath
* false - Disabled
106 1
107 4 Bryan Heath
h1. @define('KAYAKO_LDAP_IMPORT_TITLE', true);@
108 1
109 4 Bryan Heath
* true -  Import AD Job Title to Title/Position in the user's profile
110 1
* false - Disabled