uimapi calls via Perl on UIM 20.4 error: 401 Unauthorized
search cancel

uimapi calls via Perl on UIM 20.4 error: 401 Unauthorized

book

Article ID: 241681

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I'm using uim 20.4 cu2 on windows 2016. We use uimapi calls via Perl. We were running fine with version 20.33hf1 uimapi

When we upgraded to 20.40 or 20.42 we receive an error now, when doing a uimapi call:

 

 401 Unauthorized

example call:

uimapi/hubs?inCurrentDomain=true

 

What is changed in 20.40 and 20.42 that can explain this?

 

Downgrading to 20.33hf1 is solving the problem directly without any change to our Perl sources

Environment

Release : UIM 20.4

Component : uimapi 20.33 / 20.40 / 20.42

Cause

Realm Change from "NimJAAS" to "wasp-engine" starting uimapi 20.4

Resolution

The reason for this error is that the REALM has changed since UIM 20.33 to UIM 20.4 (uimapi).
The realm is a protected space in the webserver. 

The resolution is to update NimJAAS Realm  (no longer in use) to wasp-engine as shown in the example below: 


$RestConnection = LWP::UserAgent->new();
$realm = "wasp-engine";
$RestConnection->credentials($ServerAndPort, $realm, $username, $password);
$RestConnection->ssl_opts( verify_hostname => 0 ,SSL_verify_mode => 0x00);
$searchResp = $RestConnection->get($baseURL);