Installation guide
SAP Template Files
Chapter 6 Single Sign-On Solution for SAP Internet Transaction Server 2.0 157
<!--
// SAP AG 2002
// here an example for LDAP DN string. the complete string for bind must be
// uid=<user>, ou=<organisation unit>, o=<organisation>
// with this jscript example you can build your own distiguished name for
your directory
//
// This example can be used, if no Base DN is set in the service file!
// Remark: All values must not be case sensitive. After ldap_bind the module
searches
// the correct DN in the LDAP directory and set this as ~login.
Therefore you should
// set in USREXTID the correct DNs - USREXITD is case sensitive !
-->
<script language=javascript>
// uncomment the example code
//var ou="People";
//var o ="wdf.sap-ag.de";
function buildDN()
{
// the input text for ~login will be replaced
//document.pasform.elements[1].value =
"uid="+document.pasform.elements[1].value+", ou="+ou+", o="+o;
// after new value, we submit the form --> you can see result by
jscript call
// alert(document.pasform.elements[1].value);
pasform.submit();
}
</script>
‘end‘
<h3>Please log on to the SAP System</h3>
<table>
<tr><td>
<form method="post" name="pasform" action="‘wgateURL()‘">
‘fieldEcho()‘
<table>
<tr><td>Service:</td><td>‘~Service‘</td></tr>
‘if (~client=="")‘
<tr><td>Client:</td><td><input name="~client"
value="‘RSYST-MANDT‘"></td></tr>
<tr><td>
<input name="~clientinput" type="hidden" value= "1">
</td></tr>
‘end‘</tr>
‘if (~language=="")‘<tr><td>Language:</td>
<td>
<select name="~language">
‘if (getLanguages ("langId", "langDesc") == 0)
repeat with i from 1 to langId.dim‘
<option value="‘langId[i]‘">‘langDesc[i]‘</option>
‘end
else‘
Code Example 6-1 Template file
login.html