ldap - dartlang and dartdap library and connection to active directory -


I was looking for a good LDAP library for dart to connect Microsoft Active Directory. I got a ditherdup, but I can not get to do this work. I am 100% pure that my CN and password are correct because I can connect to Active Directory for example with LPAP browser. I get the error: Uncaught Error: Invalid Credit (49) Message = 80,090,308: LdapErr: DSID-0C0903A9, Comment: AcceptSecurityContext Error, Data 52E, v1db1

ldap. YAML looks like this (address, password and user name closed under curriculum)

  # ldap configuration file # default if no connection name specified default Is used: Port: 389 Host: xxx.xx.com bindDN: cn = testaccount password: XXXXXXXX  

and ldaptest.dart looks like this:

< Preclass = "Lang-dart Prettyprint-override"> Zero readDataFromDesparcer () {var ldapConfig = new LDAP configuration ("ldap.yaml", "default"); Var attrs = ["dn", "cn", "objectClass"]; Var filter = Filter.substring ("cn = A *"); Var notFilter = Filter.not (filter); . LdapConfig.getConnection () then listen to ({LDAPConnection ldap} {ldap.search ("DC = example, DC = com", filter, attrs) ((SearchEntry entry) => Print ('found $ entry' ); // We hope to get an entry ldap.search ("DC = example, DC = com", notFilter, attrs) .listen ((SearchEntry entry) {// print ("no search = $ { Entry} "); // todo: test entries.});}); }

Any ideas, what can be wrong?


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -