Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Incompatibility Error with activedirectory2 Library: [object Object] is not an Option Object #102

@shantharamshenoy

Description

@shantharamshenoy

Issue Description:
I encountered an error while attempting to use the activedirectory2 package for authentication against an Active Directory server. The error message received is [object Object] is not an Option Object. This issue seems to stem from an incompatibility or misunderstanding between the provided options and the expected format by the activedirectory2 library.

Steps to Reproduce:

Install and configure activedirectory2 package for authentication against an Active Directory server.
Attempt to authenticate a user using the provided options.
Encounter the [object Object] is not an Option Object error.
Expected Behavior:
The activedirectory2 library should accept the provided options and authenticate the user against the Active Directory server without encountering any errors.

Actual Behavior:
The library throws an error [object Object] is not an Option Object, indicating an issue with the options provided.

Additional Information:

Provided options object:
{
"url": "ldap:url",
"baseDN": "baseDN config",
"username": "admin_user",
"password": "admin_password",
"usernamePrefix": "",
"usernamePostfix": "@abc.com",
"logging": {
"name": "ActiveDirectory",
"streams": [
{
"level": "error",
"stream": {
...
}
}
]
}
}
Provided defaultOptions object:

{
"url": "",
"baseDN": "",
"bindDN": "domain\admin_user",
"bindCredentials": "admin_password",
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions