Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP connection with credentials #26

Open
arorashivani opened this issue Oct 24, 2016 · 3 comments
Open

LDAP connection with credentials #26

arorashivani opened this issue Oct 24, 2016 · 3 comments

Comments

@arorashivani
Copy link

Hi,

I am trying to connect to LDAP using this package,I am unable to figure out if any option is available to enter credentails for LDAP connection.
For example in
gheeres/node-activedirectory https://github.com/gheeres/node-activedirectory,clear options are there for username and password.

Please let me know if similar options are available here.

Thanks.
Shivani

@madhan5000
Copy link

@arorashivani
I have had success with the following example, where I can provide username and password.

`//on the server
LDAP_DEFAULTS.base = 'OU=User,DC=your,DC=company,DC=com';

//on the client
var domain = "yourDomain";

Meteor.loginWithLDAP(user, password,
{ dn: domain + '' + user, search: '(sAMAccountName=' + user + ')' } , function(err, result) { ... }
);`

@conrad-dk
Copy link
Collaborator

Surely

{ dn: domain + '\\' + user, search: '(sAMAccountName=' + user + ')' } , function(err, result) { ... }
);

with a double backslash?

@arorashivani
Copy link
Author

I have used another package called active directory ,since this issue went unresolved for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants