The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/startup/ldap.ts

20 lines
388 B

import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';
(Meteor as any).loginWithLDAP = function (
username: string,
password: string,
callback?: (err?: any) => void,
): void {
Accounts.callLoginMethod({
methodArguments: [
{
ldap: true,
username,
ldapPass: password,
ldapOptions: {},
},
],
userCallback: callback,
});
};