You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Weblink append ldap before login

posted on November 12, 2014

We are looking for a way to have our users (we only have ldap users for weblink) be able to only use their username and to have the page append the @xyz to the end of their username when the hit login.  Does anyone have a suggestion on what are where to add this???

0 0
replied on December 2, 2014

Not sure if you found a solution for this but you can try the following (tested and works);

 

1. Open up Login.aspx and locate the following code:

<input id="LoginButton" style="z-index: 101" type="submit" value="Submit" name="Submit1" runat="server" class="LoginButton">

2. add the following "onclick" attribute and value to it:

<input id="LoginButton" style="z-index: 101" type="submit" value="Submit" name="Submit1" runat="server" class="LoginButton" onclick="appdom();">

3. Locate the ending </head> tag and place the following JavaScript above it (change the @xyz.com value to your domain):

<script>
function appdom() {
  var t = document.getElementById("TheLoginInterface_UserBox");
  var h = t.value += '@xyz.com'
  t.value = h;
  Form1.submit();
}
</script>

4. Save the file and reload the page.

 

Hope this helps!

1 0
replied on May 19, 2015

Works in Firefox, but can not get it to work in IE.  Any suggestions. 

0 0
replied on May 19, 2015

Check that, works in IE with compatability mode turned on.  Any way around that?

0 0
replied on May 19, 2015

Figured it out.  You can remove  Form1.submit(); from the code, since you are already clicking the submit button in the form.  Works on both IE and Firefox.

0 0
replied on May 19, 2015

Thanks for the help. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.