Configure Required Multiple

Version 1 (Bryan Heath, 06/27/2012 06:53 pm)

1 1
h1. Configure Required Multiple
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
These directions are +*only*+ meant for use with multiple domains on different controllers
6 1
7 1
h1. Delete
8 1
9 1
Delete from config.php
10 1
11 1
<pre>/**
12 1
 * LDAP domain info
13 1
 * AD Prefix => Base DN
14 1
 * array('@mydomain.local' => 'DC=mydomain,DC=local')
15 1
 */
16 1
$ldap_domain_info = array('@mydomain.local' => 'DC=mydomain,DC=local');
17 1
18 1
/**
19 1
 * Domain controller(s).  You can use names or IPs
20 1
 * You can have more than one domain server by using
21 1
 * array('dc01.mydomain.local', 'dc02.mydomain.local', 'dc03.mydomain.local');
22 1
 */
23 1
$ldap_domain_controllers = array('dc01.mydomain.local');</pre>
24 1
25 1
h1. Add
26 1
27 1
You now need to add $multiple_domains_contollers with an array for each domain and controllers.
28 1
29 1
h2. Example
30 1
31 1
<pre>$multiple_domains_contollers = array(
32 1
    array(
33 1
        'domain_info' => array('@domain1.com' => 'DC=domain1,DC=com'),
34 1
        'domain_controllers' => array('dc01.domain1.com'),
35 1
    ),
36 1
    array(
37 1
        'domain_info' => array('@domain2.com' => 'DC=domain2,DC=com'),
38 1
        'domain_controllers' => array('dc02.domain2.com'),
39 1
    ),
40 1
); </pre>
41 1
42 1
Notice how each domain has it's own array.  So another example lets say you have domain3.com and dc03.domain3.com is the controller that knows about it
43 1
44 1
<pre>$multiple_domains_contollers = array(
45 1
    array(
46 1
        'domain_info' => array('@domain1.com' => 'DC=domain1,DC=com'),
47 1
        'domain_controllers' => array('dc01.domain1.com'),
48 1
    ),
49 1
    array(
50 1
        'domain_info' => array('@domain2.com' => 'DC=domain2,DC=com'),
51 1
        'domain_controllers' => array('dc02.domain2.com'),
52 1
    ),
53 1
    array(
54 1
        'domain_info' => array('@domain3.com' => 'DC=domain3,DC=com'),
55 1
        'domain_controllers' => array('dc03.domain3.com'),
56 1
    ),
57 1
); </pre>
58 1
59 1
Another example let say that each domain has multiple controllers.
60 1
61 1
<pre>$multiple_domains_contollers = array(
62 1
    array(
63 1
        'domain_info' => array('@domain1.com' => 'DC=domain1,DC=com'),
64 1
        'domain_controllers' => array('dc01.domain1.com', 'dc02.domain1.com', 'dc03.domain1.com'),
65 1
    ),
66 1
    array(
67 1
        'domain_info' => array('@domain2.com' => 'DC=domain2,DC=com'),
68 1
        'domain_controllers' => array('dc02.domain2.com', 'dc02.domain2.com', 'dc03.domain2.com', 'dc04.domain2.com', 'dc05.domain2.com'),
69 1
    ),
70 1
    array(
71 1
        'domain_info' => array('@domain3.com' => 'DC=domain3,DC=com'),
72 1
        'domain_controllers' => array('dc03.domain3.com', 'dc02.domain3.com'),
73 1
    ),
74 1
); </pre>
75 1
76 1
You can also group domains and controllers together.  Lets say that domain1.com and domain3.com are all on the same controllers and only domain2 is not.
77 1
78 1
<pre>$multiple_domains_contollers = array(
79 1
    array(
80 1
        'domain_info' => array('@domain1.com' => 'DC=domain1,DC=com', '@domain3.com' => 'DC=domain3,DC=com'),
81 1
        'domain_controllers' => array('dc01.domain1.com', 'dc02.domain1.com', 'dc03.domain1.com'),
82 1
    ),
83 1
    array(
84 1
        'domain_info' => array('@domain2.com' => 'DC=domain2,DC=com'),
85 1
        'domain_controllers' => array('dc02.domain2.com', 'dc02.domain2.com', 'dc03.domain2.com', 'dc04.domain2.com', 'dc05.domain2.com'),
86 1
    ),
87 1
); </pre>
88 1
89 1
h1. @$staff_groups = array('Group' => 'Staff');@
90 1
91 1
*+This is only required if you are going to use this for staff logins+*
92 1
93 1
If you are not sure what this part is for please see the [[Setup]] page and Staff setup.
94 1
95 1
Change for AD staff groups a user +must+ be in to login
96 1
97 1
* AD_Group => Kayako_Staff_Team
98 1
* Case sensitive 
99 1
* Can have more than one
100 1
** The list goes in order of how its entered and stops when a user is found.  So if the user is in more than one AD group that have a Staff Team he will only be apart of the team of the first AD group they are found in
101 1
** So in the example below lets say you have a user in the Tech Support and Finance AD Group.  They would only be a Support team because that one is before Sales on the list.
102 1
103 1
h2. Example:
104 1
105 1
Let's say you have an AD group call Tech Support and you have a Kayako Staff Team called Support
106 1
@$staff_groups = array('Tech Support' => 'Support');@
107 1
More than one:
108 1
@$staff_groups = array('Tech Support' => 'Support', 'IS' => 'Support', 'Finance' => 'Sales', 'Customer Service' => 'Sales');@