Comments (6)
Please use formatting to make your question legible -- https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
Also, please explain how this question related to the ldapjs
library.
from node-ldapjs.
Please use formatting to make your question legible -- https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
Also, please explain how this question related to the
ldapjs
library.
Updated the issue description
from node-ldapjs.
That error maps to the standard LDAP error code 53
. See https://github.com/ldapjs/protocol/blob/58ae926cbe694c83b3d000674245b3c0115cfc77/index.js#L75
It is the server that is returning the error code. The library is translating it to a human readable representation. I imagine that if you posted the full stack trace of the error, we would see that being shown.
from node-ldapjs.
That error maps to the standard LDAP error code
53
. See https://github.com/ldapjs/protocol/blob/58ae926cbe694c83b3d000674245b3c0115cfc77/index.js#L75It is the server that is returning the error code. The library is translating it to a human readable representation. I imagine that if you posted the full stack trace of the error, we would see that being shown.
Failed to add user: LDAPError [UnwillingToPerformError]: Unwilling To Perform
at messageCallback (C:\Users\M_Bhansali\Desktop\prep\node_modules\ldapjs\lib\client\client.js:1261:45)
at Parser.onMessage (C:\Users\M_Bhansali\Desktop\prep\node_modules\ldapjs\lib\client\client.js:919:14)
at Parser.emit (node:events:512:28)
at Parser.write (C:\Users\M_Bhansali\Desktop\prep\node_modules\ldapjs\lib\messages\parser.js:135:8)
at Socket.onData (C:\Users\M_Bhansali\Desktop\prep\node_modules\ldapjs\lib\client\client.js:875:22)
at Socket.emit (node:events:512:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
lde_message: 'Unwilling To Perform',
lde_dn: null
}
from node-ldapjs.
{"name":"ldap","component":"client","hostname":"Z2-IZZI","pid":14744,"clazz":"Client","ldap_id":"3__ldap://patton:389","level":10,"msg":"sending request {\"messageId\":3,\"protocprotocolOp\":104,\"type\":\"AddRequest\",\"entry\":\"CN=9999-awsd,OU=XYZ,DC=Xyz,DC=abc\",\"attributes\":[{\"type\":\"cn\",\"values\":[\"9999-awsd\"]},{\"type\\"ccou":\"sAMAccountName\",\"values\":[\"9999-awsd\"]},{\"type\":\"userPrincipalName\",\"values\":[\"[email protected]\"]},{\"type\":\"unicodePwd\",\"values\":[\"IgBAAHkAACYAIgQABSACUAOQAzAHYAIgA=\"]},{\"type\":\"description\",\"values\":[\"Checking the account options\"]},{\"type\":\"objectClass\",\"values\":[\"top\",\"person\",\"organizationalP",\"coerson\",\"user\"]}],\"controls\":[]}","time":"2023-07-31T15:08:54.122Z","v":0}
from node-ldapjs.
You can see that the error originates in the onMessage
handler. That shows the error came from the server. You will need to send an LDAP message the server is willing to handle.
from node-ldapjs.
Related Issues (20)
- Whitespace in (old) parseFilter causes `Uncaught Error: missing paren`
- Module build failed: UnhandledSchemeError: Reading from "node:util" is not handled by plugins (Unhandled scheme). HOT 4
- SASL / GSSAPI support HOT 3
- Open ssl issue with node 18 HOT 1
- Compatibility Issue Between ldapjs Library and FreeRADIUS HOT 1
- Edited: Ldapjs doesn't work after next.js build HOT 5
- Sharing unescape DN code for helper method
- (node:536) [LDAP_MESSAGE_DEP_001] LdapjsMessageWarning: messageID is deprecated. Use messageId instead. HOT 1
- Missing LDAP Result Codes in errors.js HOT 1
- AttributeFilter not implemented on Server? HOT 3
- What is Naming Violation Error HOT 1
- LDAPJS Server: when searching, I need to request in lowercase attributes in order to get mixed-case attributes HOT 1
- Assistance Needed with LDAPS Connection to Windows Server 2012 R2 AD HOT 2
- TLS 1.3 not supported
- Why does the bind method call fail without throwing exception information? HOT 1
- Parse Error
- Get IP of a request
- problems changing passwords HOT 2
- Problem binding to active directory special characters HOT 1
- res.on("searchEntry") in next.js after build does not return data. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ldapjs.