diff --git a/conf/rocketchat_ldap.js b/conf/rocketchat_ldap.js index 75b9bb6..476de99 100644 --- a/conf/rocketchat_ldap.js +++ b/conf/rocketchat_ldap.js @@ -31,5 +31,29 @@ db.rocketchat_settings.update( $set: { "value": true } } ) +db.rocketchat_settings.update( + { "_id" : "Accounts_RegistrationForm" }, + { + $set: { "value": "Enabled" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Host" }, + { + $set: { "value": "localhost" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Domain_Search_Object_Category" }, + { + $set: { "value": "" } + } +) +db.rocketchat_settings.update( + { "_id" : "LDAP_Username_Field" }, + { + $set: { "value": "" } + } +) diff --git a/scripts/install b/scripts/install index f53a1a1..958b1a8 100644 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,8 @@ fi sudo systemctl start Rocketchat.service sudo systemctl enable Rocketchat.service +sleep 25s + cd $pkgdir sudo mongo < ../conf/rocketchat_ldap.js