7 Replies Latest reply on Apr 6, 2016 9:25 AM by Yanick Girouard

    blcred Cannot obtain user credential: Could not resolve user's home directory.

    Jose Angel Gonzalez

      I'm developing a SpringBoot webapp application and I have a new PRE-PRODUCTION environment.

      This error is only appearing in this new environment.

      I've chekced the configuration of the NSH Shell and I've not seeing anything wrong. But here must be the problem, I think.

       

      I am doing a blcred through that webapp. I'm using the following command:

       

      /opt/bmc/bladelogic/NSH/bin/blcred -p /opt/tomcat/apache-tomcat/webapps/ccsportal-3.1.4/resources/authenticationProfilesPre.xml -c /portal/credentials/x100856 cred -acquire -profile KERBEROS

       

      If I run this command directly in the Shell of the webapp server, the exit is:

       

      Authentication succeeded: acquired session credential

       

      But if the command is executed in the webapp server's Shell but through a ProcessBuilder in the Java code, the exit is:

       

      Cannot obtain user credential: Could not resolve user's home directory. User name was : root

       

      Any idea?