Comments (5)
Hey Craig,
This is possible (probably just a doc omission). Are you using the Change
object method, or just a plain JS object to client.modify
? Assuming the latter, just do this:
var changes = [
{
type: 'delete',
modification: {
roletype: ['pawn']
}
},
{
type: 'add',
modiification: {
roletype: ['owner']
}
}];
client.modify('cn=foo', changes, function(err) { ... });
Let me know if that's what you were needing.
m
from node-ldapjs.
Yup that's what I needed, the API was just a bit vague I suppose...Cool thanks!
from node-ldapjs.
n/p - the docs could definitely be better, but I'd more or less have to rewrite all sections of the RFC for them to be comprehensive and cover these sorts of uses. More than I have time for right now :.
m
from node-ldapjs.
Yea I hear ya. I had started reading client.js and change.js and realized that it would probably work right about the time you commented. In the future I'll assume the edge cases will probably work and at least test before I start making up issues lol.
from node-ldapjs.
No worries at all - like I said, a better project would have comprehensive docs ;)
from node-ldapjs.
Related Issues (20)
- Support for Filter.toString()? HOT 6
- TypeError: req.toObject is not a function HOT 2
- Update filter documentation HOT 3
- Not able to get entries with JXplorer HOT 1
- Question about accessing search result attributes in v3 HOT 1
- Inconsistent Payload of 'page' Event HOT 1
- Adding user with password attribute throws error HOT 6
- "No Such Object" when using Client Modify HOT 12
- Integration tests are broken HOT 1
- Filter with umlauts does not work HOT 1
- Inconsistencies between filters api and filter string HOT 1
- RFC6331: Moving DIGEST-MD5 to Historic HOT 6
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports HOT 4
- Password for AD user HOT 1
- Request timeout still triggered after an abandon, causing an uncaughtException HOT 1
- client.add() throws "Entry Already Exists" HOT 1
- No support for Norwegian Letters HOT 1
- Non ascii characters in filter not working in client search HOT 1
- Tyring to implement cn=Subschema HOT 2
- Add/Delete group member not working on Windows Active Directory if groupname includes non ascii HOT 3
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.