Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 5598fed

Browse files
committed
use getter
1 parent fae3523 commit 5598fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ function Server (options) {
408408

409409
if (req.protocolOp === Protocol.LDAP_REQ_BIND && res.status === 0) {
410410
// 0 length == anonymous bind
411-
if (req.dn.rdns.length === 0 && req.credentials === '') {
411+
if (req.dn.length === 0 && req.credentials === '') {
412412
conn.ldap.bindDN = new DN([new dn.RDN({ cn: 'anonymous' })])
413413
} else {
414414
conn.ldap.bindDN = req.dn

0 commit comments

Comments
 (0)