|
[
Permlink
| « Hide
]
Sunitha Kambhampati added a comment - 07/Apr/05 10:01 PM
Patch to support USRIDONL security for network server. derbynetmats tests ran fine. Added new tests to test security mechanism.
Committed revision 160439 for this patch.
Ran derbynetmats on the change. This fix was committed with revision 160439 a while ago.
_________ The general flow is client sends ACCSEC with CodePoint.SECMEC as SECMEC_USRIDONL (4) to use userid only security. In the ACCSECRD the server sends secmec as SECMEC_USRIDONL which means it supports this security mechanism Then client sends SECCHK sending only USRID The server sends a SECCHKRM as normal after validating the userid. This is actually done by trying to obtain a connection from the database. Changes that went in -- Recognize CodePoint.SECMEC_USRIDONL sent in for CodePoint.SECMEC as part of the ACCSEC command (DRDAConnThread#parseACCSEC) -- validate if the right parameters are sent for SECMEC_USRIDONL -- Change the constant SECCHKCD_SECTKNMISSING to SECCHKCD_SECTKNMISSING_OR_INVALID for clarity. Since this code is sent in cases when the security token is invalid as well as when it is missing. -- Changes to parseSECCHK to check for only the userid to support SECMEC_USRIDONL -- Changes to Database#makeConnection to take care of a null password |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||