---
title: "Hub - LDAP: error code 49 - 80090308: LdapErr: DSID-0C090453, comment: AcceptSecurityContext error, data 52e, v3839"
description: "LDAP error code 49 with data 52e indicates authentication failure for the Query User credentials in Hub's LDAP Config. Verify the username and password format, and use ldapsearch to test LDAP credentials and server connectivity."
url: "https://docs.itrsgroup.com/docs/faq/geneos/4404716814097-geneos-hub-ldap-error-code-49-80090308-ldaperr-dsid-0c090453-comment-acceptsecuritycontext-error-data-52e-v3839/index.html"
---
## Problem

The following error appears after clicking the "Test And Save" button of [Hub Console's Administration > LDAP Config](https://docs.itrsgroup.com/docs/geneos-gateway-hub/current/Topics/webconsole/ldap-config.htm#LDAP_Configuration) page:

```
2021-07-13 10:47:38.031Z ERROR [default-akka.actor.default-dispatcher-15] [HubAuthenticator] - [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090453, comment: AcceptSecurityContext error, data 52e, v3839]
```

The said error is returned by the LDAP server to Hub. This means that the LDAP server cannot authenticate the LDAP username and LDAP password values inputted in the LDAP Config page's Query User and Password settings.

### Solution

Ensure that the LDAP username and LDAP password are correct.

## Problem persists

Do the following if the error still happens even though the correct LDAP username and LDAP password are used:

1. Ensure that the [Query User](https://docs.itrsgroup.com/docs/geneos-gateway-hub/current/Topics/webconsole/ldap-config.htm#LDAP_server_settings) setting is in the format *<domain>\<ldap username>*

2. Execute the `ldapsearch` command (or any similar command) on the Hub server to validate the LDAP credentials and the connection between the Hub server and the LDAP server. Sample command:

```
ldapsearch -H ldap://192.168.254.254 -x -W -b "dc=ldn,dc=company" "(sAMAccountName=jdoe)" -D "LDN\\ldapuser"
```

Where:

- sAMAccountName - User to search
- -D "<ldap user>" - LDAP user used to access and to query the LDAP server


