Code Monkey home page Code Monkey logo

nestjs-ldap's People

Contributors

renovate-bot avatar wisekaa03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nestjs-ldap's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/node to v18.19.34
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency eslint-config-prettier to v8.10.0
  • chore(deps): update dependency eslint-plugin-jest to v26.9.0
  • chore(deps): update dependency eslint-plugin-prettier to v4.2.1
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency reflect-metadata to ^0.2.0
  • chore(deps): update dependency tsconfig-paths to v4.2.0
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update typescript-eslint monorepo to v5.62.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency bcrypt to v5.1.1 (bcrypt, @types/bcrypt)
  • fix(deps): update dependency cache-manager to v4.1.0 (cache-manager, @types/cache-manager)
  • fix(deps): update dependency rxjs to v7.8.1
  • chore(deps): update dependency @nestjs/config to v3
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-jest to v28
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency node to v20 (node, @types/node)
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency rimraf to v5
  • chore(deps): update dependency typescript to v5
  • chore(deps): update jest monorepo to v29 (major) (jest, ts-jest)
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency ldapjs to v3 (ldapjs, @types/ldapjs)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @nestjs/common ^8.4.7
  • bcrypt ^5.0.1
  • cache-manager ^4.0.1
  • cache-manager-ioredis ^2.1.0
  • ldapjs ^2.3.3
  • rxjs ^7.5.5
  • @nestjs/config ^2.1.0
  • @nestjs/core ^8.4.7
  • @nestjs/testing ^8.4.7
  • @types/asn1 ^0.2.0
  • @types/bcrypt ^5.0.0
  • @types/cache-manager ^4.0.0
  • @types/cache-manager-ioredis ^2.0.2
  • @types/ldapjs ^2.2.2
  • @types/node ^18.0.0
  • @typescript-eslint/eslint-plugin ^5.29.0
  • @typescript-eslint/parser ^5.29.0
  • eslint ^8.18.0
  • eslint-config-prettier ^8.5.0
  • eslint-plugin-jest ^26.5.3
  • eslint-plugin-prettier ^4.0.0
  • jest ^28.1.1
  • jest-transform-stub ^2.0.0
  • prettier ^2.7.1
  • reflect-metadata ^0.1.13
  • rimraf ^3.0.2
  • ts-jest ^28.0.5
  • tsconfig-paths ^4.0.0
  • typescript ^4.7.4
  • redis-commands ^1
  • rimraf ^3
nvm
.nvmrc
  • node v16.14.2

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

SyntaxError: Unexpected token '.'

Hey there! How u doing?
First of all, I'd like thanks you for that lib, great idea mate!

Unfortunately, I had this issue:

ber = this._modification?.toBer(ber);
                                 ^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1047:16)
at Module._compile (internal/modules/cjs/loader.js:1097:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (D:\Yan\Projetos\pep\dev\backend\node_modules\nestjs-ldap\dist\index.js:13:14)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)

Thanks in advance!

Doesn't work if you don't use nest-winston

This module has a hard dependency on nest-winston. It won't run unless you import nestjs winston in your app module. For those of us using different loggers that makes this module unusable without also installing nest-winston.

I suggest using the default nestjs logger instead. Anybody can replace the default logger with their own implementation.

groupSearchBase not used by synchronizationGroups

Instead of using groupSearchBase, synchronizationGroups uses only searchBase.

https://github.com/wisekaa03/nestjs-ldap/blob/master/lib/ldap.class.ts#L649

  /**
   * Synchronize groups
   *
   * @async
   * @returns {Record<string, LdapResponseGroup[]>} Group in LDAP
   * @throws {Error}
   */
  public async synchronizationGroups({
    loggerContext,
  }: {
    loggerContext?: LoggerContext;
  }): Promise<Record<string, Error | LdapResponseGroup[]>> {
    const options: Ldap.SearchOptions = {
      filter: this.options.searchFilterAllGroups,
      scope: this.options.groupSearchScope,
      attributes: ldapADattributes,
      timeLimit: this.options.timeLimit || 10,
      sizeLimit: this.options.sizeLimit || 0,
      paged: true,
    };
    if (this.options.groupSearchAttributes) {
      options.attributes = this.options.groupSearchAttributes;
    }

    return this.search({
      searchBase: this.options.searchBase,
      options,
      loggerContext,
    })

Example usage does not work

Hello,

The usage of the library produces an error in the 'example.com' => line .
I use typescript Version 4.0.5.

Also the usage is only about how to declare it. Can you show some examples of methods usage. I cannot get the logger to work for instance.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.