node-LDAP icon indicating copy to clipboard operation
node-LDAP copied to clipboard

Build fails on Node 12

Open BryanHunt opened this issue 5 years ago • 6 comments

This code fails to build when using Node 12. I tried forking the code and doing a simple update on the nan version, but the build still fails.

BryanHunt avatar May 29 '19 13:05 BryanHunt

I haven't updated to 12 yet myself, so any work/research is appreciated...

jeremycx avatar May 29 '19 13:05 jeremycx

You can try this if you like https://github.com/jjhoughton/napi-ldap it hasn't seen a great deal of widespread use yet.

jjhoughton avatar Oct 17 '19 05:10 jjhoughton

Would you consider taking my changes @jeremycx if i open a pr? It's kind a rewrite though using n-api and c instead of c++.

jjhoughton avatar Oct 21 '19 12:10 jjhoughton

fixed here https://github.com/jeremycx/node-LDAP/pull/120

jjhoughton avatar Aug 17 '20 06:08 jjhoughton

it also fails on v18 ;-) tried jjhoughton's respository but same error. i can't find an other ldap client library for node.js any chances to get this to work again?

celevra avatar Aug 28 '24 12:08 celevra

For my repo https://github.com/jjhoughton/napi-ldap you can try install these two system packages openldap-devel cyrus-sasl-devel and then set this environment variable when running npm install USE_SYSTEM_LDAP=1 npm i, that'll make it link to the system libraries. If you're using arm you'll have problems getting it to build if you don't do that. it's hard to know why it didn't compile without a stack trace. I'm currently using my repo on node 20 so it should work on node 18 given i know it also works on node 12 and node 16.

I did also make this change to get this repo working on node12 although I suspect you'd have to do further work to get it working with node18.

https://github.com/jeremycx/node-LDAP/pull/120

i can't find an other ldap client library for node.js

There was this one which looked pretty good but it looks like it's been decommissioned which is a shame https://www.npmjs.com/package/ldapjs

jjhoughton avatar Aug 28 '24 12:08 jjhoughton