LDAP: Incorrect login or password #2075
-
LDAP server works with ldapwhoami. Relevant bit of config:
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
See my comment here: |
Beta Was this translation helpful? Give feedback.
-
@viiwee this fixed one user that had already existed, but it doesn't let a new user sign in. |
Beta Was this translation helpful? Give feedback.
-
+1 I have the same problem, here is my config: {
"port": "3000",
"web_host": "https://semaphore.example.com",
"tmp_path": "/tmp/semaphore/",
"access_key_encryption": "<redacted>",
"cookie_hash": "<redacted>",
"cookie_encryption": "<redacted>",
"ldap_enable": true,
"ldap_needtls": false,
"ldap_binddn": "<redacted>",
"ldap_bindpassword": "<redacted>",
"ldap_server": "<redacted>:389",
"ldap_searchdn": "<redacted>",
"ldap_searchfilter": "(&(mail=%s)(memberOf=<redacted>))",
"ldap_mappings": {
"dn": "",
"mail": "mail",
"uid": "mail",
"cn": "cn"
}
} I can confirm everything works fine testing with I'm afraid there is absolutely nothing in docker logs, when I try to log in as a new LDAP account (from ActiveDirectory domain controller). I use a Caddy reverse proxy in the same docker compose. |
Beta Was this translation helpful? Give feedback.
-
@ramiuslr what LDAP server do you use? |
Beta Was this translation helpful? Give feedback.
-
@fiftin it is a Windows Server 2016 Standard ActiveDirectory Server |
Beta Was this translation helpful? Give feedback.
-
Is there a debug mode or something that could help me figuring out why this issue happens ? |
Beta Was this translation helpful? Give feedback.
-
Okay that's interesting, I finally fixed my problem that wasn't an issue from Semaphore. So structure was: ┌─────────────────────┐
│ │
│ GG_Ansible │
│ ┌─────────────────┐ │
│ │ │ │
│ │ Team group │ │
│ │ │ │
│ │ ┌────────────┐ │ │
│ │ │ My user │ │ │
│ │ └────────────┘ │ │
│ │ │ │
│ └─────────────────┘ │
│ │
└─────────────────────┘ So my user object wasn't directly into the "ldap_searchfilter": "(&(mail=%s)(memberOf:1.2.840.113556.1.4.1941:=CN=GG_Ansible,OU=GG,OU=Groupes,DC=<redacted>,DC=local)(objectClass=user))", With the So I post this information here in case anyone needs it. |
Beta Was this translation helpful? Give feedback.
-
Thank you @ramiuslr I moving the issue to discussions. |
Beta Was this translation helpful? Give feedback.
Okay that's interesting, I finally fixed my problem that wasn't an issue from Semaphore.
My user was in a group, and this group was inside a an other group called
GG_Ansible
.So structure was:
So my user object wasn't directly into the
G…