-
Notifications
You must be signed in to change notification settings - Fork 0
/
ActiveDirectory.config.php
32 lines (27 loc) · 2.18 KB
/
ActiveDirectory.config.php
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
<?php
/**
Copyright 2011-2013 Nick Korbel
This file is part of phpScheduleIt.
phpScheduleIt is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
phpScheduleIt is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with phpScheduleIt. If not, see <http://www.gnu.org/licenses/>.
*/
// See http://adldap.sourceforge.net/wiki/doku.php?id=documentation_configuration for a full list
$conf['settings']['domain.controllers'] = getenv('AD_DOMAIN_CONTROLLERS'); // comma separated list of ldap servers such as DC=mydomain1,DC=local.
$conf['settings']['port'] = getenv('AD_PORT'); // default ldap port 389 or 636 for ssl.
$conf['settings']['username'] = getenv('AD_USERNAME'); // admin user - bind to ldap service with an authorized account user/password
$conf['settings']['password'] = getenv('AD_PASSWORD'); // admin password - corresponding password
$conf['settings']['basedn'] = getenv('AD_BASEDN'); // 'ou=uidauthent,o=domain.com'; // The base dn for your domain. This is generally the same as your account suffix, but broken up and prefixed with DC=. Your base dn can be located in the extended attributes in Active Directory Users and Computers MMC.
$conf['settings']['version'] = getenv('AD_VERSION'); // LDAP protocol version
$conf['settings']['use.ssl'] = getenv('AD_USE_SSL'); // 'true' if 636 was used.
$conf['settings']['account.suffix'] = getenv('AD_ACCOUNT_SUFFIX'); // The full account suffix for your domain. Example: @mydomain.local
$conf['settings']['database.auth.when.ldap.user.not.found'] = getenv('AD-DATABASE-AUTH-WHEN-LDAP-USER-NOT-FOUND'); // if ldap auth fails, authenticate against phpScheudleIt database
$conf['settings']['attribute.mapping'] = getenv('AD_ATTRIBUTE_MAPPING'); // mapping of required attributes to attribute names in your directory
?>