Dear Developer,
I encountered an issue while configuring OpenXPKI:
I’m unable to use user attributes from LDAP as user properties in presets or in
other parts of the workflow.
In detail, my LDAP connection is working and I can log in normally. The
configuration is as follows:
--stack.yaml--
LDAPAuth:
label: LDAP Auth
description: Login with LDAP
handler: LDAPAuth
type: passwd
--handler.yaml--
LDAPAuth:
type: Connector
label: LDAP Login for Users
role: User
source@: connector:auth.connector.userLDAP
attributes:
userinfo.email@: "param:email"
userinfo.gname@: "param:firstName"
userinfo.name@: "param:lastName"
--connector.yaml--
userLDAP:
class: Connector::Builtin::Authentication::LDAP
LOCATION: ldap://xxx.xxx.xx.xx
base: ou=users,dc=xxxx,dc=xx,dc=xx
binddn: cn=xxxx,ou=users,dc=xxxx,dc=xx,dc=xx
password: xxxx
debug: 1
verify: none
filter: "(email=[% LOGIN %])"
attrs:
- email
- firstName
- lastName
The LDAP contains the following information that I need:
email: [email protected]
lastName: Han
firstName: Xiao
sex: male
sn: hanx14
afs: hanx
But I don't know how to use it in realm/realm_name/profile/template/
I just do some simple test, like
--requestor_gname.yaml--
id: requestor_gname
label: I18N_OPENXPKI_UI_PROFILE_REQUESTOR_REALNAME
description: I18N_OPENXPKI_UI_PROFILE_REQUESTOR_REALNAME_DESC
type: static
width: 40
placeholder: John Doe
preset: userinfo.gname
required: 0
However, in the web UI it shows as <not set>.
Additionally, there are a large number of errors in
/var/log/openxpki-server/catchall.log and openxpki.log:
2025/11/27 00:09:01 FATAL OpenXPKI::Service::Default->init() failed:
I18N_OPENXPKI_TRANSPORT_SIMPLE_CLIENT_READ_CLOSED_CONNECTION [pid=370|sid=OHJK]
2025/11/27 00:09:01 openxpki.system.FATAL OpenXPKI::Service::Default->init()
failed: I18N_OPENXPKI_TRANSPORT_SIMPLE_CLIENT_READ_CLOSED_CONNECTION
[pid=370|sid=OHJK]
I’m not sure if these are related to the issue.
I look forward to your help. Thank you!
Best regards,
Xiao HAN
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users