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(); 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 // allocate a structure to marshal
LUID sluid = new LUID(); LUID sluid = new LUID();
@ -146,7 +146,14 @@ namespace Novell.Casa.Client.Auth
{ {
// now allocate the proper size // now allocate the proper size
baToken = new byte[bufferSize]; baToken = new byte[bufferSize];
rcode = ObtainAuthToken(baService, baHost, baToken, ref bufferSize); if (bLuidPassedIn)
{
rcode = ObtainAuthTokenEx(baService, baHost, baToken, ref bufferSize, ext);
}
else
{
rcode = ObtainAuthToken(baService, baHost, baToken, ref bufferSize);
}
} }
} }
catch (Exception e) catch (Exception e)