Skip to content

libsmb netname hint

Bug 14055 - We should send SMB2_NETNAME_NEGOTIATE_CONTEXT_ID negotiation context:

SMB2_NETNAME_NEGOTIATE_CONTEXT_ID containing the target server name, was added as a way to indicate the target server to load balancers.

The server is supposed to ignore that, but we may want to use it in order to support %L again, see man smb.conf:

   %L
       the NetBIOS name of the server. This allows you to change your config based on what the client calls you. Your server can have a “dual
       personality”.

As the code is trivial an harmless we should backport it in order to make this available sooner.

Merge request reports