SamDecrock / node-http-ntlm

Node.js module to authenticate using HTTP NTLM
MIT License
192 stars 89 forks source link

Not working - bind must be completed #27

Closed CThuleHansen closed 8 years ago

CThuleHansen commented 9 years ago

Hi.

When using httpntlm I get the following error message: "In order to perform this operation a successful bind must be completed on the connection".

It seems like it initiates the correct connection, gets logged in (as someuser) but somehow loses it underway. I am trying to change the password of a user (chpw) and this is my request:

httpntlm.put({
                url: "http://localhost:60047/xxxxx",
                username: "someuser,
                password: "somepassword",
                json: JSON.parse('{"password": "xxxx"  }'),
                domain: 'domainTwo',
                headers: {
                    'Connection': 'keep-alive',
                    'Origin': 'http://localhost:60047',
                    'Host': 'localhost:60047'
                }

It works when I run chrome as someuser and invoke the exact same API method with the exact same arguments.

Full exception text: 00004DC: LdapErr: DSID-0C09072B, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580

SamDecrock commented 8 years ago

Are you keeping track of your cookies?

CThuleHansen commented 8 years ago

I can not remember this issue, and I do not work at that company anymore. Cheers