This commit is contained in:
XD 2022-10-19 22:35:48 +08:00
parent b75dbf3e7f
commit 5732f77b93
1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ export class LdapService {
@Bind(getRootDN())
async bind(req, res, next) {
const reqDN = parseDN(req.dn.toString().toLowerCase());
console.debug('bind req', reqDN)
console.log('bind PW: ' + req.credentials);
// console.debug('bind req', reqDN)
// console.log('bind PW: ' + req.credentials);
if (parseDN(getRootDN().toLowerCase()).equals(reqDN.parent())) {
// admins
const username = reqDN['rdns'][0].attrs.cn.value;