Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SASL: add webadmin interface (closes #910)
- Loading branch information
Showing
2 changed files
with
119 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<? INC Header.tmpl ?> | ||
|
||
<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>" method="post"> | ||
<? INC _csrf_check.tmpl ?> | ||
<div class="section"> | ||
<h3>SASL</h3> | ||
<div class="sectionbg"> | ||
<div class="sectionbody"> | ||
<div class="subsection"> | ||
<div class="inputlabel">Username:</div> | ||
<input type="text" name="username" value="<? VAR Username ?>" class="half" maxlength="128" | ||
title="Please enter a username." /> | ||
</div> | ||
<div class="subsection"> | ||
<div class="inputlabel">Password:</div> | ||
<input type="password" name="password" class="half" | ||
title="Please enter a password." autocomplete="off" /> | ||
</div> | ||
</div> | ||
</div> | ||
<h3>Options</h3> | ||
<div class="sectionbg"> | ||
<div class="sectionbody lotsofcheckboxes"> | ||
<span class="checkboxandlabel" title="Connect only if SASL authentication succeeds."> | ||
<input type="checkbox" name="require_auth" id="opt_require_auth" value="1"<? IF RequireAuth ?> checked="checked"<? ENDIF ?> /> | ||
<label for="opt_require_auth">Require authentication</label> | ||
</span> | ||
<div style="clear:both;"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="section"> | ||
<h3>Mechanisms</h3> | ||
<div class="sectionbg"> | ||
<table class="data"> | ||
<thead> | ||
<tr> | ||
<td>Name</td> | ||
<td>Description</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<? LOOP MechanismLoop SORTASC=Name ?> | ||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>"> | ||
<td> | ||
<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?> /> | ||
<label for="opt_<? VAR Name ?>"><? VAR Name ?></label> | ||
</td> | ||
<td><? VAR Description ?></td> | ||
</tr> | ||
<? ENDLOOP ?> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<div class="submitline"> | ||
<input type="hidden" name="submitted" value="1" /> | ||
<input type="submit" value="Save" /> | ||
</div> | ||
</form> | ||
|
||
<? INC Footer.tmpl ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters