8000 Can't connect, this.bind issue · Issue #106 · jeremycx/node-LDAP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't connect, this.bind issue #106
Open
@guillaumefe

Description

@guillaumefe

I surely miss something.

I use slapd on debian 8.

When I put this.bind into connect, it never finishes (even if I put connecttimeout to 1 or 10 or whatever).

On the other hands ldap.bind works well in the new LDAP callback.

const LDAP = require('ldap-client');

var connect = function(ctx) {
    ctx.bind({
        binddn: 'cn=admin,dc=my,dc=io',
        password: 'pass'
    }, function(err) {
        if(err) console.log(err);
    }); 
}

var ldap = new LDAP({
    uri:             'ldap://localhost',
        validatecert:    false,
        connecttimeout:  -1,
        base:            'dc=my,dc=io',
        attrs:           '*',
        filter:          '(objectClass=*)',
        scope:           2,
        connect:         function(err) {
            if(err) console.log(err);
            connect(this);
        },
        disconnect:      function() {},        
}, function(err) {
    if(err) console.log(err);
    connect(ldap);
});

I'm stuck, please could you help me to understand or explain best what is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0