mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 10:52:31 +00:00 
			
		
		
		
	-Fix issue where BMC issued error may be overwritten by less informative error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -4163,17 +4163,19 @@ sub activatesession { | ||||
| 			$error = "Requested maximum privilege level exceeds user and/of channel privilege limit"; | ||||
| 		} | ||||
|  | ||||
| 		$auth = $response[37]; | ||||
| 		if($auth == 0x00) { | ||||
| 			$authoffset=16; | ||||
| 		} | ||||
| 		elsif($auth == 0x02) { | ||||
| 		} | ||||
| 		elsif($auth == 0x04) { | ||||
| 		} | ||||
| 		else { | ||||
| 			$error = "activate session requested unsupported Authentication Type Support"; | ||||
| 		} | ||||
|         unless ($error) { | ||||
|     		$auth = $response[37]; | ||||
|     		if($auth == 0x00) { | ||||
|     			$authoffset=16; | ||||
|     		} | ||||
|     		elsif($auth == 0x02) { | ||||
|     		} | ||||
|     		elsif($auth == 0x04) { | ||||
|     		} | ||||
|     		else { | ||||
|     			$error = "activate session requested unsupported Authentication Type Support"; | ||||
|     		} | ||||
|         } | ||||
|  | ||||
| ###check | ||||
| 		@session_id = @response[38,39,40,41]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user