diff --git a/conf/rocketchat_ldap.js b/conf/rocketchat_ldap.js index 476de99..23de9a0 100644 --- a/conf/rocketchat_ldap.js +++ b/conf/rocketchat_ldap.js @@ -8,13 +8,43 @@ db.rocketchat_settings.update( } ) db.rocketchat_settings.update( - { "_id" : "LDAP_Domain_Base" }, + { "_id" : "LDAP_Login_Fallback" }, + { + $set: { "value": false } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Host" }, + { + $set: { "value": "localhost" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Port" }, + { + $set: { "value": "389" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Reconnect" }, + { + $set: { "value": true } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_BaseDN" }, { $set: { "value": "dc=yunohost,dc=org" } } ) db.rocketchat_settings.update( - { "_id" : "LDAP_Domain_Search_User_ID" }, + { "_id" : "LDAP_Username_Field" }, + { + $set: { "value": "uid" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Unique_Identifier_Field" }, { $set: { "value": "uid" } } @@ -38,22 +68,14 @@ db.rocketchat_settings.update( } ) db.rocketchat_settings.update( - { "_id" : "LDAP_Host" }, + { "_id" : "LDAP_User_Search_Filter" }, { - $set: { "value": "localhost" } + $set: { "value": "(objectclass=inetOrgPerson)" } } ) db.rocketchat_settings.update( - { "_id" : "LDAP_Domain_Search_Object_Category" }, + { "_id" : "LDAP_User_Search_Field" }, { - $set: { "value": "" } + $set: { "value": "uid" } } ) -db.rocketchat_settings.update( - { "_id" : "LDAP_Username_Field" }, - { - $set: { "value": "" } - } -) - -