dataiku / dss-plugin-azure-ad-sync

Sync your DSS users with Azure Active Directory
Apache License 2.0
1 stars 7 forks source link

extremely long emailadresses #10

Open thebeautiful opened 3 years ago

thebeautiful commented 3 years ago

It would help a lot if we had the option to not only replace @ and # by _, but also leave the part after the @. Just like the standard Dataiku example mentioned on https://doc.dataiku.com/dss/latest/security/sso.html#login-remapping-rules

It still leaves us with a challenge: Linux only allows for usernames shorter than or equal to 32 characters, which means we cant always have a Linux username with the same identifier.

I'm working for a client with only 6 characters after the @, but quite a few people have emailaddress between 30 or 40 characters long.

Darkguver commented 3 years ago

Hi @thebeautiful

The limit lies in the useradd Command. The C program on the backend has the limit of 32 chars.

We have written our own program where we don't make use of the build-in useradd where we rely on the max length of the distro (most cases 256)

ghost commented 3 years ago

I would very much like an option to remove the domain completely.

One option I could think of would be adding a MAP parameter for replacements, i.e. replacing @domain.com with an empty string. This could be used if multiple domain names are loaded. Otherwise a single STRING parameter with the domain replacement would be great.