You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to specify your own parser you can override the default parser as follows:
const ad = new ActiveDirectory({ url: 'ldap://dc.domain.com',
baseDN: 'dc=domain,dc=com',
username: '[email protected]',
password: 'password',
attributes: {
user: ['dn']
}
});
I get the error:
Type '["dn"]' is not assignable to type '["dn", "distinguishedName", "userPrincipalName", "sAMAccountName", "mail", "lockoutTime", "whenCreated", "pwdLastSet", "userAccountControl", "employeeID", "sn", "givenName", ... 4 more ..., "description"]'.
Is it a bug ? Thanks
The text was updated successfully, but these errors were encountered:
I think you might be using the Types from @types/activedirectory2.
It has loaded some types by default and prevents such overriding.
Two options:
If you can, just remove the @types/activedirectoy2 package from your project and try again.
You won't get the typings but such overriding will work.
Just add the attribute you are looking for in the index file (where the attributes are defined) of the @types/activedirectory2 package in your node_modules folder.
From DOC:
I get the error:
Is it a bug ? Thanks
The text was updated successfully, but these errors were encountered: