Fix to handle LUID parameter.
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user