You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Proposal]: Add a new CanonicalizeHostName property on LdapSessionOptions #125454
I can't think of an alternative design for exposing this new property.
Also note that the implementation would be straightforward:
publicboolCanonicalizeHostName{
get =>!GetBoolValueHelper(LdapOption.LDAP_OPT_X_SASL_NOCANON);
set =>SetBoolValueHelper(LdapOption.LDAP_OPT_X_SASL_NOCANON,!value);}
It would require moving the GetBoolValueHelper and SetBoolValueHelper from LdapSessionOptions.Linux.cs into LdapSessionOptions.cs and define the new LDAP_OPT_X_SASL_NOCANON enum value (0x610b).
Risks
No risks are associated by introducing this new property. It's purely additional and without getting it or setting it nothing would happen.
Wrong area, should be area-System.DirectoryServices (the System.DirectoryServices.Protocols namespace in the API proposal section was a pretty strong hint 😁)
We debated if we wanted a different name based on what the default is, but this type appears to have a mix of default true and default false options already, so a new default true one is fine.
In case Windows is actually false, consider changing Linux to also default false.
Activity
dotnet-policy-service commentedon Mar 11, 2026
Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.
0xced commentedon Mar 11, 2026
Wrong area, should be
area-System.DirectoryServices(theSystem.DirectoryServices.Protocolsnamespace in the API proposal section was a pretty strong hint 😁)Tagging @jeffhandley, @BRDPM, @grubioe, @jay98014 and @steveharter
dotnet-policy-service commentedon Mar 12, 2026
Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Mar 12, 2026
Tagging subscribers to this area: @dotnet/area-system-directoryservices
See info in area-owners.md if you want to be subscribed.
Add new option to control SASL host name canonicalization
Add a new `CanonicalizeHostName` property on `LdapSessionOptions`
Add a new `CanonicalizeHostName` property on `LdapSessionOptions`
bartonjs commentedon Oct 13, 2026
Video