Skip to content

SudoSOS Back-end API / helpers / bindUser

Function: bindUser() ​

ts
function bindUser(
   manager, 
   ADUser, 
user): Promise<LDAPAuthenticator>;

Function that takes a valid ADUser response and binds it to a existing User such that the AD user can authenticate as the existing user.

Parameters ​

ParameterTypeDescription
managerEntityManagerTransaction manager.
ADUser{ objectGUID: Buffer; }The AD user to bind.
ADUser.objectGUIDBuffer-
userUserThe User to bind to.

Returns ​

Promise<LDAPAuthenticator>