-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·102 lines (87 loc) · 4.17 KB
/
config.php
File metadata and controls
executable file
·102 lines (87 loc) · 4.17 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/*
The folling are the things that you should use to configure the settings for the sync service.
Change them as you need to.
Make sure there is a semi-colon (;) at the end of each line otherwise it will break.
This is provided as is where is... make sure you understand
what is going on before doing a live sync... as I say...
I will not be held responsible if you break your AD.
*/
// Authentication as set in KAMAR Directory services
// Do not set a username - leave that blank.
// Good idea to change this to something random
$authentication = 'dlfkgo78sfdg';
// The IP or Name of the DC
// eg: 'ldaps://172.30.0.104'
// make sure you've enabled LDAPS
$ldapserver = 'ldaps://localhost';
// The full DN of the LDAP Admin you want to authenticate with
// eg: 'CN=Jake Wills,OU=Teacher,OU=Staff,OU=KAMAR,DC=kapiticollege,DC=local'
$ldapuser = 'CN=Admin,OU=Teacher,OU=Staff,OU=KAMAR,DC=kapiticollege,DC=local';
// The password for that Admin
// eg: '12345'
$ldappass = 'Password123';
// The LDAP Tree that you want the KAMAR things to be in
// This should have 3 OUs in it already: Groups, Staff and Students
// eg: 'OU=KAMAR,DC=kapiticollege,DC=local';
$ldaptree = 'OU=KAMAR,DC=kapiticollege,DC=local';
// Suffix for userprincipalname
// eg: '@kapiticollege.local'
$suffix = '@kapiticollege.local';
// Live?
// If set to 'yes' it will actually make changes.
// If set to 'no' it will just display the changes it would make.
// Note, these are case sensitive... should be all lower case.
$live = 'no';
// Storage
// This should point to a folder to put the output from KAMAR's directory services
// It should not be accessible directly from the web, otherwise everyone can see all your stuff... not ideal!
// eg: './storage/'
// note the trailing slash on the end.
$storage ='../ldapstorage/';
// Sync Staff / students
// Will only sync if set to 'yes'
$syncstaff='yes';
$syncstudents='yes';
$createnewstaff='no';
$updatestaffdetails='no';
// Changing student passwords requires this to be run on the same server as the AD.
// If this is set to 'yes' then passwords will be updated / set when changed on KAMAR.
// If this is set to 'no' then nothing will be set for the passwords and they must be
// managed directly from AD (or wherever you manage passwords from elsewhere).
$changestudentpasswords='no';
// Ignore User Agreement field
// If set to yes will assume all students have signed the Agreement
$ignoreuseragreementfield = 'yes';
// Default Staff Groups
// Put each group on a new line in quotes, with a comma at the end.
// These groups are added to any new staff that are created.
// They are not applied to existing staff.
$defaultstaffgroups = array(
'CN=All Staff Mail Group,OU=Google Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=Wireless Enabled Staff,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=All Teachers Mail Group,OU=Google Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=Staff,OU=Staff Groups,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=LocalAdmins,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=TSUsers,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
);
// Default Student Groups
// Put each group on a new line in quotes, with a comma at the end.
// These groups are added to any new students that are created.
// They are not applied to existing students.
$defaultstudentgroups = array(
'CN=GoogleCloudPrintUsers,OU=Google Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=Wireless Enabled Students,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=All Students Mail Group,OU=Google Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=CLASS,OU=Student Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
'CN=Students,OU=Security Groups,OU=Kapiti College,DC=kapiticollege,DC=local',
);
// Staff and student home drives.
// Any backslash will need to be replaced with a double blackslash
// eg: '\\\\kapiticollege.local\\users\\staff\\'
$staffhomes = '\\\\kapiticollege.local\\users\\staff\\';
$studenthomes = '\\\\kc-student01\\Student_Home\\';
// Timezone
// Can probably be left as is
date_default_timezone_set("Pacific/Auckland");
?>