website
website copied to clipboard
LDAP : it can’t work when uid contains special characters
I login in with LDAP, i can not conform successfully when the uid contains special characters. such as it is email Format , and In case I cannot modify LDAP related information , are there any other options?
log:
E0419 17:08:16.396571 1 im.go:153] User.iam.kubesphere.io "xiaohua.zhu" is invalid: metadata.labels: Invalid value: "[email protected]": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
E0419 17:08:16.396774 1 utils.go:76] /workspace/pkg/kapis/iam/v1alpha2/handler.go:527 User.iam.kubesphere.io "xiaohua.zhu" is invalid: metadata.labels: Invalid value: "[email protected]": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
I0419 17:08:16.396939 1 apiserver.go:599] undefined - "POST /kapis/iam.kubesphere.io/v1alpha2/users HTTP/1.1" 422 382 9ms
When the uid is common , can't login in with email , the password is correct
test-ldap is work
/help
@gzymomo: This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
In response to this:
/help
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.