Skip to content

Releases: adalinesimonian/node-adauth

v1.0.0 - Promise API, Typescript rewrite

22 Jun 00:52
0fcce2a
Compare
Choose a tag to compare

BREAKING CHANGES

  • API now uses promises instead of callbacks.
  • Initialisation code has been removed from the ADAuth constructor.
    If using the constructor, .initialise(), which returns a promise, must be called afterwards. Alternatively, you can use await ADAuth.create(options).

Added

  • Automated testing, both unit and integration tests.

Changed

  • Project migrated to typescript.
  • Package manager switched to yarn.

Removed

  • Admin client removed, as it is not used in the AD authentication flow. All operations against the server are performed using the user client.

Fixed

  • Errors from the server are now properly passed to the client.

Fixed objectGUIDs

29 Jun 03:44
Compare
Choose a tag to compare

Fixed

  • objectGUID attributes are now serialized correctly. Prior, they would be
    serialized into unusable strings, such as {----------------}.

Load CA certificates

23 Jun 23:58
Compare
Choose a tag to compare

Added

  • Support for loading CA certificates for AD off of the file system or a web
    server.

Parsing objectGUIDs

23 Jun 22:13
Compare
Choose a tag to compare

Added

  • objectGUID attributes on objects are now converted to a human-readable
    string format

Bug fix

22 Jun 12:29
Compare
Choose a tag to compare

Fixed

  • Unhandled case where user.memberOf may be a string object instead of an
    array, leading to an error when memberOf.unshift is attempted

Initial release

22 Jun 08:06
Compare
Choose a tag to compare

First working version after being forked from node-ldapauth-fork

Added

  • New, required, configuration property domainDn, which points to the
    distinguished name of the domain root (e.g. dc=corp,dc=example,dc=com)
  • searchFilterByDN configuration property, which defaults to
    (&(objectCategory=user)(objectClass=user)(distinguishedName={{dn}}))
  • searchFilterByUPN configuration property, which defaults to
    (&(objectCategory=user)(objectClass=user)(userPrincipalName={{upn}}))
  • searchFilterBySAN configuration property, which defaults to
    (&(objectCategory=user)(objectClass=user)(samAccountName={{username}}))
  • Users can now be authenticated both by their user principal name, or UPN,
    (user@example.com) and down-level logon name (EXAMPLE\user)
  • A user's primaryGroupID is now used to resolve the primary group object and
    prepend it to memberOf and _groups
  • Group membership is now fetched recursively and represents all the groups a
    user is an effective member of

Removed

  • searchFilter configuration property, which has has been split into
    searchFilterByDN, searchFilterByUPN, and searchFilterBySAN
  • cutarelease.py build step, in favour of a manual release workflow. This may
    be reconsidered at a later time.

Changed

  • The authentication process now attempts to bind the user's credentials first.
    Subsequent LDAP queries use the client bound to the user's credentials
  • Groups are now fetched by default instead of on-demand
  • searchBase now defaults to the value of domainDn and isn't required to be
    explicitly set
  • groupSearchFilter now defaults to
    (&(objectCategory=group)(objectClass=group)(member={{dn}}))
  • Dependency versions now use caret (^), except for ldapjs, which refers to
    master, pending a future release