mirror of
https://github.com/YunoHost-Apps/humhub_ynh.git
synced 2024-09-03 19:26:11 +02:00
e9d1b11b31
- Auto-install - Auto-setup LDAP - Install and upgrade from URL (no source in repo) - Improvement upgrade - PHP5-FPM - Package_check attempt
19 lines
811 B
SQL
19 lines
811 B
SQL
REPLACE INTO setting (`name`, `value`, `module_id`) VALUES
|
|
('auth.ldap.enabled', '1', 'user'),
|
|
('auth.ldap.hostname', 'localhost', 'user'),
|
|
('auth.ldap.port', '389', 'user'),
|
|
('auth.ldap.encryption', '', 'user'),
|
|
('auth.ldap.username', '', 'user'),
|
|
('auth.ldap.password', '', 'user'),
|
|
('auth.ldap.baseDn', 'ou=users,dc=yunohost,dc=org', 'user'),
|
|
('auth.ldap.loginFilter', '(uid=%s)', 'user'),
|
|
('auth.ldap.userFilter', 'objectClass=mailAccount', 'user'),
|
|
('auth.ldap.emailAttribute', 'mail', 'user'),
|
|
('auth.ldap.usernameAttribute', 'uid', 'user'),
|
|
('auth.ldap.refreshUsers', '1', 'user'),
|
|
('auth.anonymousRegistration', '0', 'user'),
|
|
('auth.allowGuestAccess', '0', 'user'),
|
|
('auth.internalUsersCanInvite', '0', 'user');
|
|
|
|
UPDATE `user` SET `auth_mode` = 'ldap' WHERE `user`.`username` = 'YNH_ADMIN_USER';
|
|
|