remove tabs from markdown
This commit is contained in:
parent
facf477fe8
commit
83473c9a53
|
@ -204,12 +204,12 @@ the filters in the `filters` array.
|
||||||
filters: [
|
filters: [
|
||||||
new EqualityFilter({
|
new EqualityFilter({
|
||||||
attribute: 'cn',
|
attribute: 'cn',
|
||||||
value: 'foo'
|
value: 'foo'
|
||||||
}),
|
}),
|
||||||
new EqualityFilter({
|
new EqualityFilter({
|
||||||
attribute: 'sn',
|
attribute: 'sn',
|
||||||
value: 'bar'
|
value: 'bar'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -234,12 +234,12 @@ of the filters in the `filters` array.
|
||||||
filters: [
|
filters: [
|
||||||
new EqualityFilter({
|
new EqualityFilter({
|
||||||
attribute: 'cn',
|
attribute: 'cn',
|
||||||
value: 'foo'
|
value: 'foo'
|
||||||
}),
|
}),
|
||||||
new EqualityFilter({
|
new EqualityFilter({
|
||||||
attribute: 'sn',
|
attribute: 'sn',
|
||||||
value: 'bar'
|
value: 'bar'
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ the filter in the `filter` property.
|
||||||
var f = new NotFilter({
|
var f = new NotFilter({
|
||||||
filter: new EqualityFilter({
|
filter: new EqualityFilter({
|
||||||
attribute: 'cn',
|
attribute: 'cn',
|
||||||
value: 'foo'
|
value: 'foo'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,10 @@ with HTTP services in node and [express](http://expressjs.com).
|
||||||
server.search('o=example', function(req, res, next) {
|
server.search('o=example', function(req, res, next) {
|
||||||
var obj = {
|
var obj = {
|
||||||
dn: req.dn.toString(),
|
dn: req.dn.toString(),
|
||||||
attributes: {
|
attributes: {
|
||||||
objectclass: ['organization', 'top'],
|
objectclass: ['organization', 'top'],
|
||||||
o: 'example'
|
o: 'example'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (req.filter.matches(obj.attributes))
|
if (req.filter.matches(obj.attributes))
|
||||||
|
|
|
@ -267,7 +267,7 @@ like:
|
||||||
attributes: {
|
attributes: {
|
||||||
cn: ['foo'],
|
cn: ['foo'],
|
||||||
sn: ['bar'],
|
sn: ['bar'],
|
||||||
objectclass: ['person', 'top']
|
objectclass: ['person', 'top']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,10 +345,10 @@ JavaScript object that matches the format used from `AddRequest.toObject()`.
|
||||||
server.search('o=example', function(req, res, next) {
|
server.search('o=example', function(req, res, next) {
|
||||||
var obj = {
|
var obj = {
|
||||||
dn: 'o=example',
|
dn: 'o=example',
|
||||||
attributes: {
|
attributes: {
|
||||||
objectclass: ['top', 'organization'],
|
objectclass: ['top', 'organization'],
|
||||||
o: ['example']
|
o: ['example']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (req.filter.matches(obj))
|
if (req.filter.matches(obj))
|
||||||
|
@ -366,7 +366,7 @@ Allows you to handle an LDAP modify operation.
|
||||||
console.log('changes:');
|
console.log('changes:');
|
||||||
req.changes.forEach(function(c) {
|
req.changes.forEach(function(c) {
|
||||||
console.log(' operation: ' + c.operation);
|
console.log(' operation: ' + c.operation);
|
||||||
console.log(' modification: ' + c.modification.toString());
|
console.log(' modification: ' + c.modification.toString());
|
||||||
});
|
});
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue