-
Notifications
You must be signed in to change notification settings - Fork 472
With LDAP auth against AD, namespace names sometimes become broken #965
Comments
Just one small remark: The LDAP objects of all-lowercase and camelcase users in AD don't seem to differ substantially. That's why my guess was that it depends on how the user states his username on first login. |
I will look into this. I've already heard some cases on case insensitivity problems... |
Wrong button 😁 |
One usual pain point that can be solved in `make_valid` is that lots of times the problem is with the case. Since upper case is not accepted in namespace names, then it will be converted weirdly. Because of this, from now on the first thing that `make_valid` will do if the name doesn't match right away, is to convert the name to downcase. With this commit then, something like `Miquel` will be converted to `miquel`, instead of `_iquel`, which makes more sense. See SUSE#965 Signed-off-by: Miquel Sabaté Solà <[email protected]>
@andreaskrause I believe that #993 should already cover your case. Now, the first thing Portus will do if the given username does not match Docker's requirements, is to downcase everything. So, if I have a user named If this makes sense to you, I believe that we can re-tag this from |
Hi,
I've recently set up a Portus system based on the opensuse/portus image from Docker Hub (contains portus-2.1.0~dev+git050d095b08875306923663c8a1f9dfd9798bd0fb-5.1.x86_64). Portus authenticates against AD using this configuration:
This works pretty well. Users are created on first login, together with their personal namespaces.
But some users get
ForenameSurname
as their username, others getforenamesurname
. It might depend on what form the user uses on first login.In case of the username this is not such a big deal. But it is when it comes to the name of the personal namespace, users with an username
ForenameSurname
get their namespace created asorename_urname
while the all-lowercase users get their namespace created identical to their username (forenamesurname
).I guess, some lowercase transformation of the username in the first place (on first login) might be necessary to avoid both problems.
The text was updated successfully, but these errors were encountered: