Skip to content

Instantly share code, notes, and snippets.

@traxanos
traxanos / sync_new_fix.patch
Created October 27, 2017 14:34
Fix sync button in rocket.chat
--- a/programs/server/packages/rocketchat_ldap.js 2017-10-25 18:47:09.000000000 +0200
+++ b/programs/server/packages/rocketchat_ldap.js 2017-10-27 16:28:44.088377231 +0200
@@ -1057,6 +1057,9 @@
}, // 1
importNewUsers: function () { // 1
return importNewUsers; // 1
+ }, // 1
+ sync: function () { // 1
+ return sync; // 1
} // 1
@traxanos
traxanos / ldap.patch
Created October 19, 2017 10:33
Fix LDAP Support for Rocket.Chat - 0.59.0
--- a/programs/server/packages/rocketchat_ldap.js 2017-10-19 03:11:23.000000000 +0200
+++ b/programs/server/packages/rocketchat_ldap.js 2017-10-19 12:27:24.233291935 +0200
@@ -1065,11 +1065,11 @@
//
if (usernameField.indexOf('#{') > -1) { // 19
return usernameField.replace(/#{(.+?)}/g, function (match, field) { // 20
- return ldapUser[field]; // 21
+ return ldapUser.object[field]; // 21
}); // 22
}
### Keybase proof
I hereby claim:
* I am traxanos on github.
* I am traxanos (https://keybase.io/traxanos) on keybase.
* I have a public key whose fingerprint is 4E81 DDAC 04C7 2B91 182E 5D2F B27A 309D 410A 5C01
To claim this, I am signing this object: