Error: SmAuthenticateJNI() An unknow status: 6 in Policy Server as IdP
search cancel

Error: SmAuthenticateJNI() An unknow status: 6 in Policy Server as IdP

book

Article ID: 248695

calendar_today

Updated On:

Products

SITEMINDER CA Single Sign On Federation (SiteMinder)

Issue/Introduction

 

When running a Policy Server for the federation journey, this one reports an error:

smps.log:

  [50920/139827257267968][Tue Jul 19 2022 13:32:52.703][SmAuthSaml.cpp:1663][INFO][sm-log-00000]
  SmAuthenticateJNI() failed to validate user credential. An unknow status: 6
smtracedefault.log
  
  [07/19/2022][12:07:32.297][12:07:32][30692][139877656024832][SmAuthUser.cpp:782][ServerTrace][][][][][][][][][][][][][][][][][][][][---- postAuthenticateUser METHOD ----][myCustomPlugin: ---- postAuthenticateUser METHOD ----]
  [07/19/2022][12:07:32.299][12:07:32][30692][139877656024832][SmAuthUser.cpp:782][ServerTrace][][][][][][][][][][][][][][][][][][][][[Exception::postAuthenticateUser] - Generic error: MY_ENV_VAR variable undefined][myCustomPlugin: [Exception::postAuthenticateUser] - Generic error: MY_ENV_VAR variable undefined]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmJVMSupport.cpp:562][DetachCurrentThread][][][][][][][][][][][][][][][][][][][][][SmJVMSupport: Successfully detached JVM from thread]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1268][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][Executed JNI authenticate to obtain disambig/DN data]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1274][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][lpArray[2]=6]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1274][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][lpArray[3]=]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1274][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][lpArray[4]=0]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1274][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][lpArray[5]=]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1661][SmAuthenticate][][][][][][][][][][][][][][][][][][][][][SmAuthSaml returning Pass 2 Sm_AuthApi_Failure]
  [07/19/2022][12:07:32.300][12:07:32][30692][139877656024832][SmAuthSaml.cpp:1663][][][][][][][][][][][][][][][][][][][][][][LogMessage:INFO:[sm-log-00000] SmAuthenticateJNI() failed to validate user credential. An unknow status: 6]

 

Resolution

 

First, there was a missing environment variable.

The missing environment variable was:

  MY_ENV_VAR

Second, as a Policy API, the myCustomPlugin code needs to be recompiled using the same SDK and Java version as used by the Policy Server.

Some KD gives an idea on how to recompile code (1)(2).

 

Additional Information

 

(1)

    Siteminder Java SDK Active Response sample compilation steps by steps
    

(2)
  
    Custom Active Response re-compilation on Upgrade