1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

fix ldap settings

This commit is contained in:
Clément 2018-04-30 12:58:57 +02:00
parent 755ab0ba0a
commit 53285e1c61

View file

@ -8,13 +8,43 @@ db.rocketchat_settings.update(
} }
) )
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" } $set: { "value": "dc=yunohost,dc=org" }
} }
) )
db.rocketchat_settings.update( 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" } $set: { "value": "uid" }
} }
@ -38,22 +68,14 @@ db.rocketchat_settings.update(
} }
) )
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( 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": "" }
}
)