UNSOLVED

ReedG1

updated

13 years ago

R

ReedG1

7 Posts

0

678

May 22nd, 2013 12:00

appsync installation - cas redirect

Installed appsync per the instructions.  However, after installation, trying to go to the URL, CAS redirects my sessions for authentication.  The url changes though from full hostname to the short host name.  This causes it to only work from the localhost itself.

server name is "appsync.is.utc.edu"

when I go to https://appsync.is.utc.edu:8443/appsync it redirects me to https://appsync:8444/XXXXX

How can I get cas to use the full hostname here and not the short name.  This also prevents the vmware VSI plugin from registering.

  • medea61

    1 Rookie

    •

    12 Posts

    229

    0

    Posted November 12th, 2013 02:00

    Hello ReedG

    I have been at the same point. Your question is open some time now and I hope it has been fixed for you. As I found no other public place where this is answered I will document the resultion anyway.

    According to EMC support this is going to be an officially confirmed bug which will probably be fixed in AppSync 1.6 whenever it is going to be released. There is some documentation and a shellscript available to fix the issue. But you will have to open an SR with EMC support to get access to it.

    Best Regards

    Roman

  • 229

    0

    Posted May 5th, 2015 06:00

    I opened a ticket regarding this still being a problem in Appsync 2.1.  I did not receive a script but instead managed to make one myself.  You may need to adjust this a bit, particularly the set SERVER line.  Save this as a bat file and run after making the necessary edits.  This was culled from the log file created during install.  YMMV:

    setlocal

    @REM CHANGE THIS ONE

    set SERVER=appsync.fqdn.tld

    @REM LEAVE THE REST AS IS

    set ALIAS=appsync

    set JBOSSDIR=C:\EMC\AppSync\jboss

    set JRE_BIN=%JBOSSDIR%\_jre\bin

    set JRE_LIB_SECURITY=%JBOSSDIR%\_jre\lib\security

    set KEYTOOL=%JBOSSDIR%\_jre\bin\keytool.exe

    set KEYSTORE=%JBOSSDIR%\standalone\configuration\cas.jks

    set CERT_FILE=%JBOSSDIR%\standalone\configuration\cas.crt

    set CACERTS=%JBOSSDIR%\_jre\lib\security\cacerts

    set KEYPASS=changeit

    set STOREPASS=changeit

    set DNAME="cn=%SERVER%, ou=AppSync, o=EMC, c=US"

    %KEYTOOL% -delete -alias %ALIAS% -keystore %KEYSTORE% -storepass %STOREPASS%

    %KEYTOOL% -delete -alias %ALIAS% -keystore %CACERTS% -storepass %STOREPASS%

    %KEYTOOL% -genkey -alias %ALIAS% -keyalg RSA -validity 365 -keystore %KEYSTORE% -storetype JKS -dname %DNAME% -keypass %KEYPASS% -storepass %STOREPASS%

    %KEYTOOL% -exportcert -alias %ALIAS% -keystore %KEYSTORE% -file %CERT_FILE% -storepass %STOREPASS%

    copy %CERT_FILE% %JRE_LIB_SECURITY%

    %KEYTOOL% -importcert -file %CERT_FILE% -keystore %CACERTS% -storepass %STOREPASS% -alias %ALIAS% -noprompt

    @echo off

    echo Now you will need to edit the following files, replacing the NETBIOS name

    echo of this server, %HOSTNAME%, with the FQDN specified in this script, which was

    echo %SERVER%

    echo

    echo %JBOSSDIR%\standalone\configuration\server.xml

    echo %JBOSSDIR%\executive\application-service.conf