Merge branch 'master' of git://github.com/morphar/node-ldapjs into morphar-master
This commit is contained in:
commit
5157e72f5d
|
@ -59,6 +59,30 @@ function SearchEntry(options) {
|
||||||
});
|
});
|
||||||
return obj;
|
return obj;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.__defineGetter__('raw', function () {
|
||||||
|
var obj = {
|
||||||
|
dn: self.dn.toString(),
|
||||||
|
controls: []
|
||||||
|
};
|
||||||
|
|
||||||
|
self.attributes.forEach(function (a) {
|
||||||
|
if (a.buffers && a.buffers.length) {
|
||||||
|
if (a.buffers.length > 1) {
|
||||||
|
obj[a.type] = a.buffers.slice();
|
||||||
|
} else {
|
||||||
|
obj[a.type] = a.buffers[0];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
obj[a.type] = [];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
self.controls.forEach(function (element, index, array) {
|
||||||
|
obj.controls.push(element.json);
|
||||||
|
});
|
||||||
|
return obj;
|
||||||
|
});
|
||||||
|
|
||||||
this.__defineGetter__('_dn', function () {
|
this.__defineGetter__('_dn', function () {
|
||||||
return self.objectName;
|
return self.objectName;
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"name": "ldapjs",
|
"name": "ldapjs",
|
||||||
"homepage": "http://ldapjs.org",
|
"homepage": "http://ldapjs.org",
|
||||||
"description": "LDAP client and server APIs",
|
"description": "LDAP client and server APIs",
|
||||||
"version": "0.5.9",
|
"version": "0.6.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/mcavage/node-ldapjs.git"
|
"url": "git://github.com/mcavage/node-ldapjs.git"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"lib": "./lib"
|
"lib": "./lib"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.6"
|
"node": ">=0.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asn1": "0.1.11",
|
"asn1": "0.1.11",
|
||||||
|
|
Loading…
Reference in New Issue