Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longer group name limit to accommodate longer LDAP group name sync. #5295

Closed
2 tasks done
pbosgraaf opened this issue Oct 20, 2021 · 5 comments
Closed
2 tasks done

Longer group name limit to accommodate longer LDAP group name sync. #5295

pbosgraaf opened this issue Oct 20, 2021 · 5 comments
Labels
support Community support

Comments

@pbosgraaf
Copy link

pbosgraaf commented Oct 20, 2021

We use LDAP as an authentication source of opnsense.
When using ldap membership synchronization you need to manually create the group before its considered in the authentication process.

The bug is that the group name field in opnsense is limited to 32 characters.
Our company policy dictates a longer naming convention, easily surpassing 40 characters in LDAP/AD.
This makes the group synchronization function unusable for us.

Not sure if this classifies as a bug, or if it should be considered a feature request.
Anyway, a longer limit (lets say 64 chars) would solve my problem.

Thanks for considering!

@AdSchellevis
Copy link
Member

Our groups are also local groups, which have a 32 character limit, so unfortunately that's not easy to solve.

@pbosgraaf
Copy link
Author

pbosgraaf commented Oct 20, 2021

That too bad, there is no chance a future opnsense version could update the backend to allow 64 chars?
I don't think its very uncommon for large enterprises to have a really long naming conventions.

@AdSchellevis
Copy link
Member

I don't expect so, no, as it will cause issues on local (shell) accounts that are impossible to fix. It might be possible to cut the first 32 characters from the remote end during matching (or strip a prefix/suffix), but this likely will only solve part of the issues.

@fichtner fichtner added the support Community support label Oct 20, 2021
@pbosgraaf
Copy link
Author

No worries, thanks for the background info.

@AdSchellevis
Copy link
Member

While talking about a similar issue, we internally concluded that there might be options to solve this in the long run by allowing to set an alias (or external) name on the group which if available will be used as synchronisation anchor. In which case the internal group name is always a valid one, but externally you could use a longer one.

The idea and naming probably needs some more thinking..... if you do want to re-open this issue, feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

3 participants