question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client Binding Possible Issue?

See original GitHub issue

I’m going to start off by saying that I’m not LDAP expert so this may be user error, if so please advise.

I’ve been using other libraries (https://github.com/jeremycx/node-LDAP) for LDAP authentication but due to various issues with them would like to move away from them. Anyways, the binding in that would allow me to provide the users network login information (which is in the LDAP as sAMAccountName) in a method of binding. I’d pretty much call it like

client.SimpleBind("Username", "Password", function (success) { ... })

Anyways, the bind method here requires me to provide a DN in the first variable, which I’m not sure what to provide. I’ve tried it without the “DN=” and that doesn’t work. The following does not work either.

client.bind('sAMAccountName=Username', 'Password', function(err) {
   assert.ifError(err);
});

For what it’s worth, using tools like JXplorer I can connect using Username/Password without specifying a DN and it works. When I search for the Username it will bring it up by matching the sAMSAccountName.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mcavagecommented, Nov 9, 2011

So with OepnLDAP Domain\Username in the -D works? Ok, that tells me what I need to know.

0reactions
aaroncalderoncommented, Dec 7, 2015

@rrobe53 It is not clear to me how you solved the Issue. I just wish a code snippet with the final solution was in here. Update

I was able to use node-activedirectory to authenticate user credentials (bind) successfully. https://github.com/typ90/meteor-accounts-ldap/issues/8#issuecomment-162632091

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 2: Client/Server Binding - Micro Focus
The Client/Server Binding removes the requirement for you to include communications code in your application by providing two modules called mfclient and ...
Read more >
WCF binding problems - Stack Overflow
I have problem with my bindings and i dont know how to solve it. I am on the server side and the client...
Read more >
NIS Binding Problems - System Administration Guide
This is normal. The binding of the NIS client to the NIS server changes over time when the network or the NIS servers...
Read more >
Client and service binding mismatch? - MSDN - Microsoft
Yesm this is usually a mismatch in the client/server bindings, where the message version in the service uses SOAP 1.2 (which expects application ......
Read more >
Client - Server binding - YouTube
Mr. Mahesh Ashok MahantAssistant ProfessorDepartment of Computer Science and EngineeringWalchand Institute of Technology, Solapur.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found