update
This commit is contained in:
parent
b75dbf3e7f
commit
5732f77b93
|
|
@ -102,8 +102,8 @@ export class LdapService {
|
||||||
@Bind(getRootDN())
|
@Bind(getRootDN())
|
||||||
async bind(req, res, next) {
|
async bind(req, res, next) {
|
||||||
const reqDN = parseDN(req.dn.toString().toLowerCase());
|
const reqDN = parseDN(req.dn.toString().toLowerCase());
|
||||||
console.debug('bind req', reqDN)
|
// console.debug('bind req', reqDN)
|
||||||
console.log('bind PW: ' + req.credentials);
|
// console.log('bind PW: ' + req.credentials);
|
||||||
if (parseDN(getRootDN().toLowerCase()).equals(reqDN.parent())) {
|
if (parseDN(getRootDN().toLowerCase()).equals(reqDN.parent())) {
|
||||||
// admins
|
// admins
|
||||||
const username = reqDN['rdns'][0].attrs.cn.value;
|
const username = reqDN['rdns'][0].attrs.cn.value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue