-
Notifications
You must be signed in to change notification settings - Fork 13
/
local_settings.py.template
69 lines (54 loc) · 1.48 KB
/
local_settings.py.template
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
DEBUG = True
TEMPLATE_DEBUG = DEBUG
LDAP_CONNECTION = {
'uri': "",
'bind_dn': "",
'bind_pwd': "",
'base_dn': "",
}
LDAP_MOCK = True
CHANGES_SOCKET_ENABLED = True
URLS_BASE = '' # fum.futurice.com/fum/
API_URL = 'http://localhost:8000'
MIGRATION = {
'LDAP': {
'uri': LDAP_CONNECTION['uri'],
'bind_dn': LDAP_CONNECTION['bind_dn'],
'bind_pwd': LDAP_CONNECTION['bind_pwd'],
},
}
DATABASES = {
# PostgreSQL
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'fum',
'HOST': 'localhost',
}
}
# LDAP Settings
COMPANY_DN = 'dc=company,dc=com'
GROUP_DN = 'ou=Groups,dc=company,dc=com'
USER_DN = 'ou=people,dc=company,dc=com'
SERVER_DN = 'ou=Hosts,ou=Groups,dc=company,dc=com'
PROJECT_DN = 'ou=Projects,ou=Groups,dc=company,dc=com'
SUDO_DN = 'ou=SUDOers,dc=company,dc=com'
TEAM_DN = 'ou=Teams,ou=Groups,dc=company,dc=com'
# The name of the FUM admin team that has elevated permissions.
IT_TEAM = "TeamIT"
# Email settings
EMAIL_DOMAIN = "@example.com"
EMAIL_HOST = "smtp.example.com" if not DEBUG else ""
# General settings
COMPANY_NAME = "Company"
SECRET_KEY = ''
# SMS Settings
SMS_URL = ''
SMS_USER = ''
SMS_PASSWORD = ''
# Samba settings
SAMBASID_BASE = "S-1-5-21-1049098856-3271850987-3507249052"
# FUM Groups
PROTECTED_GROUPS = ['Company','External','TeamIT','TeamHR','TeamAdmin','Disabled','Deleted',]
EMPLOYEE_GROUPS = ['Company','External']
DISABLED_GROUP = 'Disabled'
DELETED_GROUP = 'Deleted'