fix stuff that can be fixed
This commit is contained in:
parent
82b1769fc9
commit
990a1021b8
@ -3,9 +3,18 @@
|
||||
var fs = require('fs');
|
||||
var ldapjs = require('ldapjs');
|
||||
|
||||
// Stub unimplemented functionality.
|
||||
ldapjs.ExtensibleFilter.prototype.matches = ldapjs.EqualityFilter.prototype.matches;
|
||||
ldapjs.ApproximateFilter.prototype.matches = ldapjs.EqualityFilter.prototype.matches;
|
||||
|
||||
// Remove superfluous spaces from DNs.
|
||||
var wrappee = ldapjs.DN.prototype.format;
|
||||
ldapjs.DN.prototype.format = function(options) {
|
||||
options = options || this._format;
|
||||
options['skipSpace'] = true;
|
||||
return (wrappee.bind(this))(options);
|
||||
};
|
||||
|
||||
var port = process.env.PORT;
|
||||
var certificate = fs.readFileSync(process.env.SSL_CERT, "utf-8");
|
||||
var key = fs.readFileSync(process.env.SSL_KEY, "utf-8");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user