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

Adding ldap variables

This commit is contained in:
realitygaps 2016-04-29 18:08:30 +02:00
parent 452fe7e6c4
commit 1f2b2e784e
2 changed files with 46 additions and 3 deletions

41
conf/rocketchat_ldap.js Normal file
View file

@ -0,0 +1,41 @@
use rocketchat
db.rocketchat_settings.update(
{ "_id" : "LDAP_Enable" },
{
$set: { "value": true }
}
)
db.rocketchat_settings.update(
{ "_id" : "LDAP_Domain_Base" },
{
$set: { "value": "dc=yunohost,dc=org" }
}
)
db.rocketchat_settings.update(
{ "_id" : "LDAP_Domain_Search_User_ID" },
{
$set: { "value": "uid" }
}
)
db.rocketchat_settings.update(
{ "_id" : "LDAP_Domain_Search_Object_Class" },
{
$set: { "value": "inetOrgPerson" }
}
)
db.rocketchat_settings.update(
{ "_id" : "LDAP_Sync_User_Data" },
{
$set: { "value": true }
}
)
db.rocketchat_settings.update(
{ "_id" : "Accounts_RegistrationForm" },
{
$set: { "value": "Disabled" }
}
)

View file

@ -39,7 +39,7 @@ else
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/rocketchat.conf
fi
pkgdir=$(pwd)
# Copy files to the right place
final_path=/var/www/rocketchat
@ -54,8 +54,6 @@ sudo npm install
cd $final_path/
sudo chmod +x /var/www/rocketchat/bin/rockit
sudo chown -R www-data: $final_path
@ -68,6 +66,10 @@ fi
sudo systemctl start Rocketchat.service
sudo systemctl enable Rocketchat.service
cd $pkgdir
sudo mongo < ../conf/rocketchat_ldap.js
sudo yunohost app ssowatconf