PAM-CM-1341-Failed to establish connection channel to the remote host

Document ID : KB000095636
Last Modified Date : 14/05/2018
Show Technical Document Details
Question:
When it tries to save the target account, the below error occurs. It reproduced the problem on a few Solaris 10 box 100% sure. 

 PAM-CM-1341: Failed to establish connection channel to the remote host 

The trigger to reproduce the problem is to select the following switch. 
Account >> Password tab >> Synchronization >> Select the "Update both the Password Authority Server and the target system". 
 
Environment:
PAM 3.1.1 
Reproduced Target server OS : Solaris 10 Sparc 
Answer:
The locale was set the ja_JP.PCK of the Solaris 10 box. From the catalina.out, I we verified the prompt when the password change was tried, it has the Japanese word, not English although the customer set the "LANG=C passwd" to the Script Processor. 

When it sets the ”(?si)(.*?パスワード(\sfor|:).*?)” to the "Password Entry Prompt" in the Target application >> Script Processing tab for the Solaris10 device, it worked even if the passwd command without LANG=C was performed on the target box. 

Also, after that, we noticed the Solaris box was working by C shell. But the "setenv LANG C passwd <USER ID>" on OS but the error "Too many arguments"(引数が多すぎます。) was returned. 
 
User-added image

It tried to use the pipe as "setenv LANG C | passwd <USER ID>" , but the Japanese prompt was returned then without enabling LANG=C. 
(”既存のログインパスワードを入力してください” means "Password?" )
 
User-added image
 
We provided the information to use "&&" instead of pipe like "setenv LANG C && passwd <USER ID>" and it worked.