locked
WebSSO UAG RRS feed

  • Question

  • Hi all,

     

    I have a problem to Setup a WebSSO with UAG 2010 and a CRM (SugarCRM).

     

    SugarCRM works with an AD authentication. Without WebSSO, authentication works well.

    But when i defined a custom FormLogin.xml and a custom autosubimit.js, it doesn't work.

    In the Trunk, i selected "Both" for the SSO.

    I created a formlogin in von\Conf\WizardDefaults\FormLogin\CustomUpdate\

    Formlogin.xml :

    <WHLFILTFORMLOGIN ver="1.0">
        <APPLICATION>
            <APPLICATION_TYPE>sugarcrm</APPLICATION_TYPE>
            <USAGE description="form_login">
            <PRIMARY_HOST_URL>.*index\.php.*</PRIMARY_HOST_URL>
            <SCRIPT_NAME source="file">Autosubmit_sugarcrm.js</SCRIPT_NAME>
            <USER_AGENT>
                <AGENT_TYPE search="group">all_supported</AGENT_TYPE>
                <POLICY>multiplatform</POLICY>
                <SCRIPT_NAME source="data_definition">FormLoginHandler</SCRIPT_NAME>
            </USER_AGENT>
            <MULTIPLE_LOGIN>true</MULTIPLE_LOGIN>
            <LOGIN_FORM>
                <NAME>form</NAME>
                <METHOD>POST</METHOD>
                <CONTROL handling="real_value">
                    <TYPE>text</TYPE>
                    <NAME>user_name</NAME>
                    <DEF_VALUE>siteuser</DEF_VALUE>
                </CONTROL>
                <CONTROL handling="real_value">
                    <TYPE>password</TYPE>
                    <NAME>user_password</NAME>
                    <DEF_VALUE>sitepass</DEF_VALUE>
                </CONTROL>
                <CONTROL handling="real_value">
                    <TYPE>submit</TYPE>
                    <NAME>Login</NAME>
                    <DEF_VALUE>LogIn</DEF_VALUE>
                </CONTROL>
       
            </LOGIN_FORM>
            </USAGE>
        </APPLICATION>
    </WHLFILTFORMLOGIN>

     

    And a custom autosubmit.js here : von\Conf\WizardDefaults\FormLogin\CustomUpdate\

    and a second test in this folder : C:\Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WebSites\extranet\conf

    Autosubmit_sugarcrm.js :

    function FormLoginSubmit()
    {   
        formsCol = document.forms;
        if (formsCol.length == 1)
        {
            document.forms[0].submit();
        }
        else
        {
            alert("more than one form");
        }
        return false;
    }

     

    i tried to debug with HTTPWatch and Fiddler but nothing appear, there's no POST header. And i've got an error code 31 when i'm trying to access to the publish SugarCRM.

    Does anyone know how to solve this problem ?

     

    Thanks a lot and sorry for my bad english.

     

     

     

     

    Thursday, January 12, 2012 10:43 AM

All replies