| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <input name="sslconfigop" type="hidden" value="Continue"/> |
| #if($SSLKEYSTOREDATA) |
| <input type="hidden" name="sslkeystoredata" value="$Encoder.attributeEscape($SSLKEYSTOREDATA)"/> |
| #end |
| |
| #if($TabName == $ResourceBundle.getString('LDAP.LDAPMapperTab')) |
| <table class="displaytable"> |
| <tr><td class="separator" colspan="2"><hr/></td></tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPProtocolColon'))</nobr></td> |
| <td class="value"> |
| <select name="ldapProtocol" size="4"> |
| #if($FSERVERPROTOCOL == '' || $FSERVERPROTOCOL == 'ldap') |
| <option value="ldap" selected="true">LDAP</option> |
| #else |
| <option value="ldap">LDAP</option> |
| #end |
| #if($FSERVERPROTOCOL == 'ldaps') |
| <option value="ldaps" selected="true">LDAPS</option> |
| #else |
| <option value="ldaps">LDAPS</option> |
| #end |
| #if($FSERVERPROTOCOL == 'ldap+tls') |
| <option value="ldap+tls" selected="true">LDAP+TLS</option> |
| #else |
| <option value="ldap+tls">LDAP+TLS</option> |
| #end |
| #if($FSERVERPROTOCOL == 'ldaps+tls') |
| <option value="ldaps+tls" selected="true">LDAPS+TLS</option> |
| #else |
| <option value="ldaps+tls">LDAPS+TLS</option> |
| #end |
| </select> |
| </td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPServerNameColon'))</nobr></td> |
| <td class="value"><input type="text" size="32" name="ldapServerName" value="$Encoder.attributeEscape($FSERVERNAME)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPServerPortColon'))</nobr></td> |
| <td class="value"><input type="text" size="5" name="ldapServerPort" value="$Encoder.attributeEscape($FSERVERPORT)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPServerBaseColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapServerBase" value="$Encoder.attributeEscape($FSERVERBASE)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPBindUserColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapBindUser" value="$Encoder.attributeEscape($FBINDUSER)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.LDAPBindPasswordColon'))</nobr></td> |
| <td class="value"><input type="password" size="64" name="ldapBindPass" value="$Encoder.attributeEscape($FBINDPASS)"/></td> |
| </tr> |
| <tr><td class="separator" colspan="2"><hr/></td></tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.UserSearchBaseColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapUserBase" value="$Encoder.attributeEscape($FUSERBASE)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.UserSearchFilterColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapUserSearch" value="$Encoder.attributeEscape($FUSERSEARCH)"/></td> |
| </tr> |
| |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.UserNameAttrColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapUserNameAttr" value="$Encoder.attributeEscape($FUSERNAMEATTR)"/></td> |
| </tr> |
| <tr> |
| <td class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.UserNameReplaceColon'))</nobr></td> |
| <td class="value"><input type="text" size="64" name="ldapUserNameReplace" value="$Encoder.attributeEscape($FUSERNAMEREPLACE)"/></td> |
| </tr> |
| <tr><td class="separator" colspan="2"><hr/></td></tr> |
| <tr> |
| <td class="description"> |
| <nobr>$Encoder.bodyEscape($ResourceBundle.getString('LDAP.SSLCertificateList'))</nobr> |
| </td> |
| <td class="value"> |
| <input type="hidden" name="sslkeystorealias" value=""/> |
| <table class="displaytable"> |
| #if($SSLCERTIFICATESMAP) |
| #foreach($cert in $SSLCERTIFICATESMAP.entrySet()) |
| <tr> |
| <td class="description"> |
| <input type="button" onclick='Javascript:SSLDeleteCertificate($Encoder.attributeJavascriptEscape($cert.Key))' |
| alt="$Encoder.attributeEscape($ResourceBundle.getString('LDAP.DeleteCert'))$Encoder.attributeEscape($cert.Key)" |
| value="$Encoder.attributeEscape($ResourceBundle.getString('LDAP.Delete'))"/> |
| </td> |
| <td class="value"> |
| $Encoder.bodyEscape($cert.Value) |
| </td> |
| </tr> |
| #end |
| #else |
| <tr> |
| <td class="message" colspan="2"> |
| <nobr>$ResourceBundle.getString('LDAP.NoCertificatesPresent')</nobr> |
| </td> |
| </tr> |
| #end |
| </table> |
| <input type="button" onclick='Javascript:SSLAddCertificate()' alt="$Encoder.attributeEscape($ResourceBundle.getString('LDAP.AddCert'))" |
| value="$Encoder.attributeEscape($ResourceBundle.getString('LDAP.Add'))"/> |
| $Encoder.bodyEscape($ResourceBundle.getString('LDAP.Certificate')) |
| <input name="sslcertificate" size="50" type="file"/> |
| </td> |
| </tr> |
| |
| </table> |
| #else |
| <input type="hidden" name="ldapProtocol" value="$Encoder.attributeEscape($FSERVERPROTOCOL)"/> |
| <input type="hidden" name="ldapServerName" value="$Encoder.attributeEscape($FSERVERNAME)"/> |
| <input type="hidden" name="ldapServerPort" value="$Encoder.attributeEscape($FSERVERPORT)"/> |
| <input type="hidden" name="ldapServerBase" value="$Encoder.attributeEscape($FSERVERBASE)"/> |
| <input type="hidden" name="ldapBindUser" value="$Encoder.attributeEscape($FBINDUSER)"/> |
| <input type="hidden" name="ldapBindPass" value="$Encoder.attributeEscape($FBINDPASS)"/> |
| <input type="hidden" name="ldapUserBase" value="$Encoder.attributeEscape($FUSERBASE)"/> |
| <input type="hidden" name="ldapUserSearch" value="$Encoder.attributeEscape($FUSERSEARCH)"/> |
| |
| <input type="hidden" name="ldapUserNameAttr" value="$Encoder.attributeEscape($FUSERNAMEATTR)"/> |
| <input type="hidden" name="ldapUserNameReplace" value="$Encoder.attributeEscape($FUSERNAMEREPLACE)"/> |
| |
| #end |