# No Login, with my AD-User

**URL:** <https://community.icinga.com/t/no-login-with-my-ad-user/10127>\
**Category:** Icinga Web\
**Tags:** ldap\
**Created:** [July 7, 2022, 1:48pm UTC](https://community.icinga.com/t/no-login-with-my-ad-user/10127 "2022-07-07T13:48:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sennin](https://community.icinga.com/user_avatar/community.icinga.com/sennin/32/5722_2.png) [@Sennin](https://community.icinga.com/u/Sennin)\
**Post date:** [July 7, 2022, 1:48pm UTC](https://community.icinga.com/t/no-login-with-my-ad-user/10127/1 "2022-07-07T13:48:04Z")

</div>

Hello,

at first some informations:

- Icinga Web 2 version: 2.11.0
- Used modules and their versions  
Director V1.9.1
- Web browser used: Chrome
- Icinga 2 version used: r2.13.4-1
- PHP version used: 7.4
- Server operating system and version  
Platform: Ubuntu  
Platform version: 20.04.4 LTS (Focal Fossa)

So yesterday i figured ou that with the new Icinga-Version i need a Database to safe the Web-Konfiguration for my User eg. Dark-Mode.  
So i created a Ressource “User-DB” and deposit the mysql Database “user”, which i created. Then i figured out, that i need some Tables, so i edited them.  
Today i logged off and tried to login again. which didn´t work.  
I tried some Solutions eg. User@Domain, User@Domain.local  
It didn´t work.

So i hope someone here can help me with my Problem.  
Some further Informations:

Config.ini:  
[global]  
show\_stacktraces = “1”  
show\_application\_state\_messages = “1”  
module\_path = “/usr/share/icingaweb2/modules”  
config\_resource = “User-DB”

[logging]  
log = “php”  
level = “ERROR”  
application = “icingaweb2”

[themes]

[authentication]  
default\_domain = “\*\*\*\*\*\*\*\*\*\*.local”

authentication.ini:  
[icingaweb2]  
filter = “!(objectClass=computer)”  
backend = “msldap”  
base\_dn = “DC=\*\*\*\*\*\*,DC=local”  
domain = “”  
resource = “icingaweb\_ldap”

resources.ini:  
[icingaweb\_ldap]  
type = “ldap”  
hostname = “_**.local"  
port = “389”  
encryption = “none”  
root\_dn = "DC=**,DC=local"  
bind\_dn = "CN= __**,OU=Service User,OU=User,OU=,DC=**__ **,DC=local"  
bind\_pw = "**_\*\*\*\*\*\*\*”  
timeout = “5”

[icinga\_ido]  
type = “db”  
db = “mysql”  
host = “localhost”  
port = “”  
dbname = “icinga2”  
username = “icinga2”  
password = “\*\*\*\*\*\*\*\*\*\*\*\*\*”  
charset = “”  
use\_ssl = “0”

[director]  
type = “db”  
db = “mysql”  
host = “localhost”  
port = “5665”  
dbname = “director”  
username = “director”  
password = “\*\*\*\*\*\*\*\*\*\*\*\*\*”  
charset = “utf8”  
use\_ssl = “0”

[User-DB]  
type = “db”  
db = “mysql”  
host = “localhost”  
port = “5665”  
dbname = “user”  
username = “icinga2”  
password = “\*\*\*\*\*\*\*\*\*\*\*”  
use\_ssl = “0”

Database:  
±---------------------------+  
| Tables\_in\_user |  
±---------------------------+  
| icingaweb\_group |  
| icingaweb\_group\_membership |  
| icingaweb\_rememberme |  
| icingaweb\_schema |  
| icingaweb\_user |  
| icingaweb\_user\_preference |  
±---------------------------+

---

<div class="post-metadata">

**Author:** ![nilmerg](https://community.icinga.com/user_avatar/community.icinga.com/nilmerg/32/277_2.png) [@nilmerg](https://community.icinga.com/u/nilmerg)\
**Post date:** [July 7, 2022, 2:59pm UTC](https://community.icinga.com/t/no-login-with-my-ad-user/10127/2 "2022-07-07T14:59:41Z")

</div>

> [@Sennin](#):
>
> authentication.ini:  
> [icingaweb2]  
> filter = “!(objectClass=computer)”  
> backend = “msldap”  
> base\_dn = “DC=\*\*\*\*\*\*,DC=local”  
> domain = “”  
> resource = “icingaweb\_ldap”

You have set a default domain, in this case the authentication backend requires one as well I believe. Try setting the same domain there.

---

<div class="post-metadata">

**Author:** ![Sennin](https://community.icinga.com/user_avatar/community.icinga.com/sennin/32/5722_2.png) [@Sennin](https://community.icinga.com/u/Sennin)\
**Post date:** [July 8, 2022, 6:30am UTC](https://community.icinga.com/t/no-login-with-my-ad-user/10127/3 "2022-07-08T06:30:17Z")

</div>

Hello Johannes,

your hint solved the Problem. I can now logon again. Many thanks

Greetings

Sennin
