ZITADELZZITADEL
Powered by
cczC
ZITADEL•3mo ago•
4 replies
ccz

Failed to login by OpenLdap, the url userId is empty

Hi all,

I have set up Zitadel 4.7.0 using Docker Compose with PostgreSQL 17 as the database. I created a Netbird project and an organization, and configured OpenLDAP within the organization.

Currently, I'm encountering an issue: when logging in via LDAP, the following URL is generated:
https://auth2.xxx.xxx/ui/v2/login/idp/ldap/success?userId=&id=348233049676185603&token=oLEUiCWI7N_InR7qy3ziX5ViVaZeLMqme4lxE6p25caoAQ

The page returns a 404 error: "404 This page could not be found."

Here’s what I’ve confirmed:
1. The LDAP configuration is correct and functional. Evidence is shown below:
zitadel-# FROM eventstore.events2
zitadel-# LIMIT 3;

 348233049676185603 | idpintent.ldap.succeeded | 2025-11-25 08:24:32.363037+00 | zhangqiang
 348233049676185603 | idpintent.started        | 2025-11-25 08:24:32.257327+00 | 
zitadel-# FROM eventstore.events2
zitadel-# LIMIT 3;

 348233049676185603 | idpintent.ldap.succeeded | 2025-11-25 08:24:32.363037+00 | zhangqiang
 348233049676185603 | idpintent.started        | 2025-11-25 08:24:32.257327+00 | 


2. However, no user has been created and login hasn’t succeeded. I suspect a configuration issue, as shown below:
zitadel=# SELECT * FROM projections.idp_templates6 WHERE name = '9yb-ldap';
         id         |         creation_date         |          change_date          | sequence |   resource_owner   |    instance_id     | state |   name   | owner_type | type | owner_removed | is_creation_allowed | is_linking_allowed | is_auto_creation | is_auto_update | auto_linking 
 348232637711646723 | 2025-11-25 08:20:26.708175+00 | 2025-11-25 08:20:26.708175+00 |       84 | 346328751170191363 | 346328751170125827 |     1 | 9yb-ldap |          1 |    4 | f             | t                   | t                  | t                | t              |            1
(1 row)
zitadel=# SELECT * FROM projections.idp_templates6 WHERE name = '9yb-ldap';
         id         |         creation_date         |          change_date          | sequence |   resource_owner   |    instance_id     | state |   name   | owner_type | type | owner_removed | is_creation_allowed | is_linking_allowed | is_auto_creation | is_auto_update | auto_linking 
 348232637711646723 | 2025-11-25 08:20:26.708175+00 | 2025-11-25 08:20:26.708175+00 |       84 | 346328751170191363 | 346328751170125827 |     1 | 9yb-ldap |          1 |    4 | f             | t                   | t                  | t                | t              |            1
(1 row)


Actions I’ve already taken:
1. Consulted the official Zitadel AI support and raised multiple questions.
2. Sought help from other AI tools regarding this issue.

My troubleshooting has reached a dead end—there are no related events for
user.human.added
user.human.added
.

Could anyone provide corresponding solutions?
ZITADEL banner
ZITADELJoin
ZITADEL - Identity infrastructure, simplified for you.
4,374Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

LDAP Login Failed: invalid URL escape "%E$"'
Tamil SelvanTTamil Selvan / questions-help-bugs
5mo ago
Configuring the /idps/callback URL for login V2
HexiaHHexia / questions-help-bugs
2d ago