> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/invalid-username-or-password-error-when-signing-in-with-domain-credentials.md).

# Invalid username or password error when signing in with domain credentials

When trying to log in to Devolutions Server with "domain" type credentials, you may get the following error message:

`Invalid username or password, please verify your credentials`

This can be a mistake where Devolutions Server incorrectly reports that your credentials are invalid when they are in fact not. This is caused by the change in our LDAP stack and how the Devolutions Server interacts with the Active Directory.

#### Solution

Once you have validated that your credentials are really the correct ones for that Devolutions Server and that authentication method, you can remedy the situation by changing the strategy used by the Devolutions Server to retrieve the information.

1. In Devolutions Server, go to ***Administration – Server settings – Authentication – Domains***. ![](https://cdnweb.devolutions.net/docs/DVLS2004_2024_1.png)
2. Click ***Edit*** on the domain.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS2005_2024_1.png" alt=""><figcaption></figcaption></figure>
3. Click ***Advanced settings***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS2006_2024_1.png" alt=""><figcaption></figcaption></figure>
4. Change the value of the ***User validity*** from ***Default (LDAP)*** to either ***Validate credentials*** or ***Create user principal***.

   <figure><img src="https://cdnweb.devolutions.net/docs/DVLS2007_2024_1.png" alt=""><figcaption></figcaption></figure>
5. Click ***OK***, then ***Update*** to save your changes.

You should now be able to log in. If the problem persists, you can also change the other values found in the ***Advanced settings*** to either ***Principal*** or ***Directory entry token group*** depending on what is available. If you still encounter issues logging in, please contact our customer support team at <service@devolutions.net>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/server/knowledge-base/troubleshooting-articles/invalid-username-or-password-error-when-signing-in-with-domain-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
