cesanta / docker_auth

Authentication server for Docker Registry 2
Apache License 2.0
1.28k stars 305 forks source link

ldap auth - how to deal with binddn that expects account as email #360

Closed rtvu closed 11 months ago

rtvu commented 1 year ago

My ldap server expects the user account to be an email address. These account names are not compatible with docker's username format. Is there a way to provide both email address and username to registry and have it authenticate with the appropriate values?

zapp42 commented 11 months ago

Can't you just hard-code the email domain and append it to ${account}?

rtvu commented 11 months ago

Ohh, I didn't think about that. Thanks.

rtvu commented 11 months ago

Feature can be accomplished with hard coding email domain.