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 ​
| Parameter | Type | Description |
|---|---|---|
manager | EntityManager | Transaction manager. |
ADUser | { objectGUID: Buffer; } | The AD user to bind. |
ADUser.objectGUID | Buffer | - |
user | User | The User to bind to. |
Returns ​
Promise<LDAPAuthenticator>