Fix to handle LUID parameter.

This commit is contained in:
Jim Norman 2006-11-27 06:31:39 +00:00
parent cce03a7a13
commit f4875a6c45

View File

@ -113,7 +113,7 @@ namespace Novell.Casa.Client.Auth
SSCS_EXT_T ext = new SSCS_EXT_T();
if ((luid.GetHighPart() != 0) || (luid.GetLowPart() != 0))
if ((luid != null) && (luid.GetHighPart() != 0) || (luid.GetLowPart() != 0))
{
// allocate a structure to marshal
LUID sluid = new LUID();
@ -146,9 +146,16 @@ namespace Novell.Casa.Client.Auth
{
// now allocate the proper size
baToken = new byte[bufferSize];
if (bLuidPassedIn)
{
rcode = ObtainAuthTokenEx(baService, baHost, baToken, ref bufferSize, ext);
}
else
{
rcode = ObtainAuthToken(baService, baHost, baToken, ref bufferSize);
}
}
}
catch (Exception e)
{
LogMessage(e.ToString());