CoreID/config/ldap/server.config.js

34 lines
1000 B
JavaScript
Raw Normal View History

2020-04-17 00:59:48 +00:00
// LDAP Server Configuration
const ldap_server = {
2020-04-18 00:25:33 +00:00
2020-04-17 00:59:48 +00:00
port: env('LDAP_SERVER_PORT', 389),
max_connections: env('LDAP_MAX_CONNECTIONS'),
interface: env('LDAP_LISTEN_INTERFACE', '0.0.0.0'),
2020-04-18 00:25:33 +00:00
ssl: {
enable: env('LDAP_SSL_ENABLE', false),
certificate: env('LDAP_CERT_PATH'),
key: env('LDAP_CERT_KEY_PATH'),
},
2020-04-18 00:25:33 +00:00
schema: {
base_dc: env('LDAP_BASE_DC', 'dc=example,dc=com'),
authentication_base: env('LDAP_AUTH_BASE', 'ou=people'),
2020-05-04 01:16:54 +00:00
group_base: env('LDAP_GROUP_BASE', 'ou=groups'),
machine_base: env('LDAP_MACHINE_BASE', 'ou=computers'),
machine_group_base: env('LDAP_MACHINE_BASE', 'ou=computer groups'),
2021-03-11 05:43:16 +00:00
sudo_base: env('LDAP_SUDO_BASE', 'ou=sudo'),
2020-04-18 00:25:33 +00:00
auth: {
user_id: 'uid',
},
start_uid: env('LDAP_START_UID', 80000),
2021-03-11 00:31:43 +00:00
default_shell: env('LDAP_DEFAULT_SHELL', '/bin/bash'),
2020-05-04 01:16:54 +00:00
},
format: {
skipSpace: true,
},
2020-04-17 00:59:48 +00:00
}
module.exports = exports = ldap_server