Clarify LDAP config default values #334
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Gitea LDAP documentation does not list
port
,securityProtocol
andemailAttribute
as required values. Though when omitting these in the helm chart definition, the deployment errors with "XX is not set".Should the defaults be set to
port=389
,securityProtocol=unencrypted
,emailAttribute=mail
?Port and emailAttribute are defined as required in the docs. It's listed in the "shared" properties section above your link. https://docs.gitea.io/en-us/authentication/#ldap-lightweight-directory-access-protocol
Only attribute missing seems to be securityProtocol. But I don't think we should set a default value. Especially not the "unencrypted" value. It should be up to the user to decide whether sending the credentials encrypted or in plaintext. Maybe the Chart could fail during rendering if any of the specified ldap configs is missing a required field. That way applying would already fail and we can give a clear hint on what's the issue.
Not in the "via BindDN" option: https://docs.gitea.io/en-us/authentication/#ldap-via-binddn (only looked at this section, you're right they are defined in the others, e.g. https://docs.gitea.io/en-us/authentication/#ldap-lightweight-directory-access-protocol). So it seems they should just be added to this section :)
Agree!
Jup sounds good. It already does but with a Gitea error during container startup which is not so easy to spot.
The first section in the docs is for both ldap config types:
The second section (via BindDN) just
I agree, this could be more obvious.
Ah, well spotted!
Y, I think duplication would not hurt here - or highlighting the shared section more prominently - but I think I 'd favor duplication here.
Sorry to revive a such old issue, but as of now, i can not find the possible values of 'securityProtocol'. The only reference is 'unencrypted' in the examples but there is no canonical list of accepted values and their meaning / implication. Am i missing something ?
Other values are
StartTLS
andLDAPS
. Documentation at https://docs.gitea.com/next/usage/authentication#ldap-via-binddn should be updated, PRs welcome!