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/server/services/ldap/service.ts

20 lines
690 B

import { LDAPManager } from '../../lib/ldap/Manager';
import { ILDAPService } from '../../sdk/types/ILDAPService';
import { ServiceClassInternal } from '../../sdk/types/ServiceClass';
import { LDAPLoginResult } from '../../../definition/ldap/ILDAPLoginResult';
export class LDAPService extends ServiceClassInternal implements ILDAPService {
protected name = 'ldap';
async loginRequest(username: string, password: string): Promise<LDAPLoginResult> {
return LDAPManager.login(username, password);
}
async testConnection(): Promise<void> {
return LDAPManager.testConnection();
}
async testSearch(username: string): Promise<void> {
return LDAPManager.testSearch(username);
}
}