Open Closed

LDAP Authorization Problem #3551


0
ezgiecedortkose created

• ABP Framework version: v6.0.0.rc.2 Commercial • UI type: Angular • DB provider: EF Core

We activate Ldap from the interface of Abp io and fill in the information, but the error we get is that the information is incorrect. We also use ldap information at zero and we can connect run properly in other projects. We could not debug because we could not access the source code of the identity server module in abp suite.

[ERR] Invalid Credentials. Invalid Credentials. Result: 49. Method: ldap_parse_result. Details: errorMessage: 80090308: LdapErr: DSID-0C09044E, comment: AcceptSecurityContext error, data 52e, v2580 matchedMessage: LdapForNet.LdapInvalidCredentialsException: Invalid Credentials. Invalid Credentials. Result: 49. Method: ldap_parse_result. Details: errorMessage: 80090308: LdapErr: DSID-0C09044E, comment: AcceptSecurityContext error, data 52e, v2580 matchedMessage: at LdapForNet.Native.LdapNative.ThrowIfError(SafeHandle ld, Int32 res, String method, IDictionary`2 details) at LdapForNet.LdapConnection.ThrowIfParseResultError(IntPtr msg) at LdapForNet.LdapConnection.BindAsync(LdapAuthType authType, LdapCredential ldapCredential) at Volo.Abp.Ldap.LdapManager.AuthenticateLdapConnectionAsync(ILdapConnection connection, String username, String password) at Volo.Abp.Ldap.LdapManager.AuthenticateAsync(String username, String password)


5 Answer(s)
  • 0
    maliming created
    Support Team

    hi

    Please test your LDAP configuration via AbpLdapSample

    https://github.com/abpframework/abp-samples/blob/master/AbpLdapSample/AbpLdapSample/Program.cs

  • 0
    ezgiecedortkose created

    Hi We tried it on the console app, when the port was 3268, the application a success response, but when we changed it from the abp io interface, it still returned invalid credential

  • 0
    maliming created
    Support Team

    hi

    What are code changes in the console app?

  • 0
    ezgiecedortkose created

    The port has changed. We added ou info to baseDc. Added sAMAccountName={testUserName} to SearchResults.

  • 0
    maliming created
    Support Team

    hi

    https://docs.abp.io/en/commercial/latest/modules/identity/ldap#customize-built-in-services