Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Millikin uses the Novell suite of products for our user applications, and one of the components we rely on for our off-campus users is NetStorage.  However, NetStorage uses HTTP Basic Auth for its authentication, which presented a problem for us when trying to enable it for single sign-on.  I'm not really a JSP developer, but figured out how to make this work by reading a ton of articles on Google and trying different combinations of things until I found something that worked, so it's entirely possible that there's a better, more efficient way of doing this :o}

Attached you'll find the file NetStorageLogin.jsp.  This file goes into your server:sys\tomcat\4\webapps\NetStorage folder on your NetStorage server.  It should also work fine on a SuSE box, but we're still running NW on that server, so I haven't tested that.  You can then edit the file and look for these lines to point to your NetStorage server:

 //Need to leave this as /oneNet/NetStorage
 URL NSUrl = new URL("http://servername.domain.edu/oneNet/NetStorage");

Basically, you then just have a page that does a form post to submit the credentials, such as:
<html>
  <head>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
  </head>
  <body onload="document.authenticator.submit();">
    <form name="authenticator" action="https://server.domain.edu/NetStorage/NetStorageLogin.jsp" method="POST">
      <input type="hidden" name="username" value="$

Unknown macro: {userName}

">
      <input type="hidden" name="password" value="$

Unknown macro: {pw}

">
      <input type="hidden" name="loginButton" value="Login">
    </form>
  </body>
</html>

That should be all there is to it!  Please note that while this works fine on our system, it might not work on others.

  • No labels