This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UTM Variables ?

I've read the document about variables that you can use in forms for the UTM eg for customization etc but the only one's I can find for the reverse authentication forms are:

<?login_path?> = form post action
httpd_username = for username text input
httpd_password = for password text input

<?assets_path?>/yourpicture.jpg = to place images on the form

and I can also see that you can place other global variables on the form also.

The one thing I can't get to work is the error handling eg "You have entered the wrong credentials.... please try again"

Does anybody know how to do this?



This thread was automatically locked due to age.
Parents
  • Have you read through vilic's excellent thread pinned at the top of this forum?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • Have you read through vilic's excellent thread pinned at the top of this forum?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children
  • I have but I was already on that case. I've created many a customised portal with various vendors but can't find the error variable here.

    Even the default form doesn't have it if you enter an incorrect password.

  • Ypu want

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Nope. Had a look at that and gone through it as best as I could. I can see where those forms work and even get the variables into the login form.

    Still doesn't work. What we need is the error code that the form returns so we can act upon that.

    Maybe Sophos should include a form template with variables for the reverse proxy authentication

    Javascript form here if anybody is interested:

    <form id="LoginForm" action="<?login_path?>" method="post" autocomplete="off">
    <div align="center"> Username: <input type="text" name="httpd_username"><br></div>
    <br>
    <div align="center"> Password: <input type="password" name="httpd_password"><br><br></div>
    <div align="center"> <input type="button" onclick="myFunction()" value="Login"></div>
    </form>

    <script>
    function myFunction() {
    document.getElementById("LoginForm").submit();
    }
    </script>

  • "If a user login fails, the function getValidationError() can be used to get an error code."  Isn't that what you want?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • It is indeed and that function works for all of the templates and variables that they have in that document.
    Problem is, I don't think it works for the reverse authentication template. I've tried it in various places but nothing is returned.
    Now, if you look at the variables used in that document, no where does it mention "httpd_username" or "httpd_password" etc which is what the reverse auth template uses.
    Also, if you look at the default form Sophos supply, even that doesn't have it. 
    Using the default form that Sophos supply doesn't even return an error.

    I think Sophos have to supply that variable and also it would be a good idea to include a reverse authentication template in their documentation because at the moment, it's sadly lacking in that department for what otherwise is an excellent product.

  • Having same issue and is driving me nuts!