Configure Optional
Version 4 (Bryan Heath, 06/27/2012 06:16 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 | 1 | @$user_groups = array('Customer Service' => 'Service');@ |
|
| 20 | 1 | More than one: |
|
| 21 | 1 | @$user_groups = array('Customer Service' => 'Service', 'Finance' => 'Service');@ |
|
| 22 | 1 | ||
| 23 | 2 | Bryan Heath | h1. @$valid_user_groups = array();@ |
| 24 | 1 | ||
| 25 | 1 | +*This is not required for a user to login*+ |
|
| 26 | 1 | ||
| 27 | 1 | A AD groups a user +must+ be in to login |
|
| 28 | 1 | * If they are not in one of these groups they will +*not*+ be able to login |
|
| 29 | 1 | * Can do more than one |
|
| 30 | 1 | ||
| 31 | 2 | Bryan Heath | h2. Example: |
| 32 | 1 | ||
| 33 | 1 | $valid_user_groups = array('Customer Service', 'IS'); |
|
| 34 | 1 | ||
| 35 | 3 | Bryan Heath | h1. @define('KAYAKO_LDAP_VERIFY_CONTROLLER', true);@ |
| 36 | 3 | Bryan Heath | |
| 37 | 3 | Bryan Heath | This is only used if more than one domain controller is used for authentication. |
| 38 | 3 | Bryan Heath | |
| 39 | 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 |
| 40 | 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. |
| 41 | 3 | Bryan Heath | |
| 42 | 2 | Bryan Heath | h1. @define('KAYAKO_LDAP_ERROR_USERGROUP', true);@ |
| 43 | 1 | ||
| 44 | 1 | * true - User will receive an error if they are not in any of the user groups |
|
| 45 | 1 | * false - Users not in the $user_group can still login they just will not be in a User Group |
|
| 46 | 1 | ||
| 47 | 2 | Bryan Heath | h1. @define('KAYAKO_LDAP_TEST', false);@ |
| 48 | 1 | ||
| 49 | 1 | * true - Test mode enabled |
|
| 50 | 1 | * false - Test mode disabled |
|
| 51 | 1 | ** username and password is ignored |
|
| 52 | 1 | ||
| 53 | 3 | Bryan Heath | h1. @define('KAYAKO_LDAP_SHOW_ERRORS', false);@ |
| 54 | 3 | Bryan Heath | |
| 55 | 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 |
| 56 | 3 | Bryan Heath | * false - Hides them |
| 57 | 3 | Bryan Heath | |
| 58 | 2 | Bryan Heath | h1. @define('KAYAKO_LDAP_LOG', false);@ |
| 59 | 1 | ||
| 60 | 1 | * true - Logging enabled |
|
| 61 | 1 | * false - Logging disabled |
|
| 62 | 1 | * The /ldap/log directory must be writable (755 or 777) |
|
| 63 | 1 | * You should leave this disabled unless needed as it does extensive logging |
|
| 64 | 3 | Bryan Heath | |
| 65 | 3 | Bryan Heath | h1. @define('KAYAKO_LDAP_LOG_XML', false);@ |
| 66 | 3 | Bryan Heath | |
| 67 | 3 | Bryan Heath | * true - Log the XML output |
| 68 | 3 | Bryan Heath | * false - Disabled |
| 69 | 3 | Bryan Heath | |
| 70 | 3 | Bryan Heath | h1. @define('KAYAKO_LDAP_LOG_OUTPUT', false);@ |
| 71 | 3 | Bryan Heath | |
| 72 | 3 | Bryan Heath | * true - Attempts to log everything displayed to the screen |
| 73 | 3 | Bryan Heath | * false - Disabled |
| 74 | 4 | Bryan Heath | * Note the KAYAKO_LDAP_LOG_XML is redundant if this is enabled |
| 75 | 1 | ||
| 76 | 2 | Bryan Heath | h1. @define('KAYAKO_LDAP_USERNAME', 'username');@ |
| 77 | 1 | ||
| 78 | 1 | A valid AD username to test with |
|
| 79 | 1 | ||
| 80 | 2 | Bryan Heath | h1. @define('KAYAKO_LDAP_PASSWORD', 'password');@ |
| 81 | 1 | ||
| 82 | 1 | The password to go with KAYAKO_LDAP_USERNAME |
|
| 83 | 1 | ||
| 84 | 4 | Bryan Heath | h1. @define('KAYAKO_LDAP_PHONE_NUMBER', true);@ |
| 85 | 1 | ||
| 86 | 4 | Bryan Heath | * true - The AD mobile or home number will be used if the AD telephone number is empty |
| 87 | 1 | * false - Disabled |
|
| 88 | 1 | ||
| 89 | 4 | Bryan Heath | h1. @define('KAYAKO_LDAP_IMPORT_DEPARTMENT', true);@ |
| 90 | 1 | ||
| 91 | 4 | Bryan Heath | * true - Import AD Department to Organization in the user's profile |
| 92 | 4 | Bryan Heath | * false - Disabled |
| 93 | 1 | ||
| 94 | 4 | Bryan Heath | h1. @define('KAYAKO_LDAP_IMPORT_TITLE', true);@ |
| 95 | 1 | ||
| 96 | 4 | Bryan Heath | * true - Import AD Job Title to Title/Position in the user's profile |
| 97 | 1 | * false - Disabled |