mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
5cc9b9c96f
YunoHost users are now instantly logged in with HTTP auth For this feature to work, the app now needs to be private, all YNH users must be added in the database, and the admin user must be a YNH user. As a result, the manifest has changed: - Admin password is replaced by admin user - Public/Private is removed - Adding YNH users as Dolibarr users is removed: this is default now Unfortunately, upgrading the app will not change the previous behavior (ie no automatic login). For automatic login to work, you **must** reinstall the app The sync script does not delete users. Therefore the post_user_delete hook is not needed (and does not work anyway)
14 lines
700 B
SQL
14 lines
700 B
SQL
REPLACE INTO ynh_const (`name`, `value`, `type`) VALUES
|
|
('LDAP_MEMBER_DN', 'ou=users,dc=yunohost,dc=org', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_FULLNAME', 'cn', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_FIRSTNAME', 'givenName', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_NAME', 'sn', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_LOGIN', 'uid', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_MAIL', 'mail', 'chaine'),
|
|
('LDAP_MEMBER_FILTER', '&(objectClass=posixAccount)', 'chaine'),
|
|
('LDAP_MEMBER_OBJECT_CLASS', 'organizationalUnit,top', 'chaine'),
|
|
('LDAP_MEMBER_FIELD_MAIL', 'mail', 'chaine'),
|
|
('LDAP_MEMBER_ACTIVE', 'ldap2dolibarr', 'chaine');
|
|
|
|
REPLACE INTO ynh_adherent_type (`rowid`, `libelle`, `subscription`, `vote`) VALUES
|
|
('1', 'yunohost', '0', '0');
|