Merge pull request #646 from spookiej/645-search-response-spaces-dn
Remove spaces in searchResEntry objectName
This commit is contained in:
commit
49d5724c80
|
@ -171,7 +171,8 @@ SearchEntry.prototype._parse = function (ber) {
|
||||||
SearchEntry.prototype._toBer = function (ber) {
|
SearchEntry.prototype._toBer = function (ber) {
|
||||||
assert.ok(ber)
|
assert.ok(ber)
|
||||||
|
|
||||||
ber.writeString(this.objectName.toString())
|
var formattedObjectName = this.objectName.format({ skipSpace: true })
|
||||||
|
ber.writeString(formattedObjectName)
|
||||||
ber.startSequence()
|
ber.startSequence()
|
||||||
this.attributes.forEach(function (a) {
|
this.attributes.forEach(function (a) {
|
||||||
// This may or may not be an attribute
|
// This may or may not be an attribute
|
||||||
|
|
Loading…
Reference in New Issue