Use of VCnumbers and Session Keys in SMB

Andrew Bartlett abartlet at
Fri Jun 28 18:08:02 GMT 2002

Richard Sharpe wrote:
> Hi,
> With the help of Steve Langasek I managed to get a term server like
> capture.
> Samba 2.2.5 seems to work OK, even though the term serve client (on Linux)
> does some funny things.
> The server says MaxVCs = 1, but the client sets a different VC number in
> each session setup and X (vc 0 for the first, vc 1 for the second, vc 2
> ...).

I'm not sure that MaxVCs referes to the VUID (also just UID) feild in
any case.  VUIDs are not virtual circuits, as a tree connect on one VUID
is valid on all others - it simply determines what credentials to use.

> The session key in each case was the same as the session key returned in
> the NegProt response. It seems that there is no way to choose a different
> encryption key.

The NTLMSSP stuff allows this, and in supported in Samba HEAD.

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba-technical mailing list