GithubHelp home page GithubHelp logo

Comments (7)

jsumners avatar jsumners commented on July 21, 2024

Hey-hey! Sorry to bother you with such problems, but couldn't find a solution, so to contact you - the only way I have.

This is the appropriate place to ask questions.

  1. Used npm to instal the package, installed version of package was 2.2.5. I actually didn't find it on your updates website. Trying to update it by npm didn't change nothing.

The latest package available is 3.0.2. We no longer support v2.

❯ npm view ldapjs

[email protected] | MIT | deps: 14 | versions: 74
LDAP client and server APIs
http://ldapjs.org

dist
.tarball: https://registry.npmjs.org/ldapjs/-/ldapjs-3.0.2.tgz
.shasum: 1f21fd4ae6e77b78ef3b56d0643a656553761f13
.integrity: sha512-EBxQaBmgXk1DEaYYJWkp5i5PtSLRI2CWtm1gzxG5buOt40Q7j3zY6MbpRDkach/Cnxr3qSyLHiyXvvkLCOXw+Q==
.unpackedSize: 318.8 kB

dependencies:
@ldapjs/asn1: 2.0.0      @ldapjs/controls: 2.0.0  @ldapjs/messages: 1.0.2  assert-plus: ^1.0.0      vasync: ^2.2.1
@ldapjs/attribute: 1.0.0 @ldapjs/dn: 1.0.0        @ldapjs/protocol: ^1.2.1 backoff: ^2.5.0          verror: ^1.10.1
@ldapjs/change: 1.0.0    @ldapjs/filter: 2.0.0    abstract-logging: ^2.0.1 once: ^1.4.0

maintainers:
- melloc <[email protected]>
- jsumners <[email protected]>
- jgeurts <[email protected]>
- tonybrix <[email protected]>
- pfmooney <[email protected]>
- mcavage <[email protected]>

dist-tags:
latest: 3.0.2

3. I'm using Vite and TypeScript to code and to run my packages.

Okay.

4. The main mistake. After running the script, on my site should appear the login-window form, when I just created it and have been setting it up - I used the default object with static parameters to login, after that, I created the ldap request source code below. And everytime when I was running the project, I had the same mistake in a package:

I don't understand. ldapjs does not provide any "login-window form". ldapjs is a library usable by application written against the Node.js runtime to provide an API for accessing LDAP servers, or to provide an API for writing and LDAP server.

from node-ldapjs.

Cleo-s avatar Cleo-s commented on July 21, 2024
  1. Used npm to instal the package, installed version of package was 2.2.5. I actually didn't find it on your updates website. Trying to update it by npm didn't change nothing.

Thank you for the answer, yeah, I know that v2.0 is no longer supported. Lets leave this problem now.

The latest package available is 3.0.2. We no longer support v2.

  1. The main mistake. After running the script, on my site should appear the login-window form, when I just created it and have been setting it up - I used the default object with static parameters to login, after that, I created the ldap request source code below. And everytime when I was running the project, I had the same mistake in a package:

I don't understand. ldapjs does not provide any "login-window form". ldapjs is a library usable by application written against the Node.js runtime to provide an API for accessing LDAP servers, or to provide an API for writing and LDAP server.

About the login-window. It is default-vanila javascript, with integrated in ldap library to access Active Directory server. That's what I meant. Sorry for missunderstanding

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024

Is your application being run in the Node.js runtime environment?

from node-ldapjs.

Cleo-s avatar Cleo-s commented on July 21, 2024

Is your application being run in the Node.js runtime environment?

Ofc it is, to apply using npm packages I'm using Vite. But running this all with npm, or in node.js env.

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024

Please provide a minimal reproduction that I can run with node index.js.

from node-ldapjs.

Cleo-s avatar Cleo-s commented on July 21, 2024

Please provide a minimal reproduction that I can run with node index.js.

mostly - it's not possible. Its a huge project as site, so sent only one file from it, does not make any sense.

I could give you an acces to my private repo, so you could clone the project. But still the problem is that you need to configure your Active Directory and your mysql DataBase to run the site. It's too complicated.

Is there any how you could avoid it, and how could I help you with avoiding it?

from node-ldapjs.

jsumners avatar jsumners commented on July 21, 2024

A minimal reproduction is not a full project. See https://stackoverflow.com/help/minimal-reproducible-example.

I think that if you attempt to create one, you will find that you are not running your code within the Node.js runtime. Your screenshots show web browser consoles, and your provided code snippet is using web browser DOM APIs.

If you can provide a reproduction that solely uses Node.js, you are welcome to reopen the issue. Otherwise, all evidence provided points to an unsupported environment.

from node-ldapjs.

Related Issues (20)

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.