forked from sriraamas/simple-ldap-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-ssh-ss.php
121 lines (115 loc) · 5.48 KB
/
user-ssh-ss.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
require_once("core/util.php");
$randomStr = randomPassword(16);
setcookie("xsrftoken", $randomStr , time() + (86400 * 30), "/"); // 86400 = 1 day
?>
<!DOCTYPE html>
<!-- saved from url=(0049)http://foundation.zurb.com/templates/sidebar.html -->
<html class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths" lang="en" data-useragent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2209.0 Safari/537.36"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple LDAP Manager</title>
<meta name="description" content="LDAP Self-Service Tool, used internally at Lucid Software">
<meta name="author" content="Naysayers">
<link rel="stylesheet" href="css/foundation.css">
<script src="js/vendor/modernizr.js"></script>
<link rel="stylesheet" href="css/app.css">
<meta class="foundation-data-attribute-namespace"><meta class="foundation-mq-xxlarge"><meta class="foundation-mq-xlarge-only"><meta class="foundation-mq-xlarge"><meta class="foundation-mq-large-only"><meta class="foundation-mq-large"><meta class="foundation-mq-medium-only"><meta class="foundation-mq-medium"><meta class="foundation-mq-small-only"><meta class="foundation-mq-small"><style></style><meta class="foundation-mq-topbar"></head>
<body>
<?php
include("topnav.phtml")
?>
<div>
<div id="notify" class = "row">
</div>
<div class = "large-12 small-12 columns" style="width:100%; height:100%;display:table">
<div class="row" >
<div class="sidebarDiv">
<ul class="tabs vertical" data-options ="deep_linking:true; scroll_to_content:false" role="tablist" style="padding-top:2%">
<li class="tab-title mylogo no-hover" role="presentation"><h5><img class="logo maw-100 rs d-n_2" src="https://d2slcw3kip6qmk.cloudfront.net/marketing/logos/lucidsoftware-logo-text-194x42.png" alt="Lucid Software, Inc."></h5></li>
<li class="sidebar sideHead">Self-Service</li>
<li class="sidebar" role="presentation"><a href="user-chpass-ss.php#panel2-1" role="tab" tabindex="0" aria-controls="panel2-1">Change Password</a></li>
<li class="sidebar " role="presentation"><a href="user-vpn-ss.php#panel2-2" role="tab" tabindex="1" aria-controls="panel2-2">VPN Credentials</a></li>
<li class="sidebar active lastitem" role="presentation"><a href="#panel2-3" role="tab" tabindex="2" aria-controls="panel2-3">SSH Credentials</a></li>
</ul>
</div>
<div class="large-8 small-10 columns">
<div class="tabs-content mycontent">
<section role="tabpanel" aria-hidden="true" class="active content" id="panel2-3">
<form id="genSsh" action="/user/sshgen.php" method="POST" data-abide>
<p class="sectionHead">Regenerate SSH Credentials</p>
<div class="row">
<div class="large-4 small-4 push-1 columns">
<label>Username
<input type="text" name="uname" required id="uname" />
</label>
<small class="error"> Username cannot be blank!</small>
</div>
</div>
<div class="row">
<div class="large-4 small-4 push-1 columns">
<label>Password
<input id="pwd" name = "pwd" required type="password" />
</label>
<small class="error"> Password cannot be blank!</small>
</div>
</div>
<div class="row">
<div class="large-4 small-4 push-1 columns">
<label>Passphrase
<input id="passphrase" name="passphrase" required type="password" />
</label>
<small class="error"> Passphrase cannot be blank! Must have length >= 8 </small>
</div>
</div>
<div class="row">
<div class="large-4 small-4 push-1 columns">
<label>Confirm Passphrase
<input id="cnfPassphrase" name ="cnfPassphrase" required data-equalto="passphrase" type="password" />
</label>
<small class="error"> Passphrase doesn't match! </small>
</div>
</div>
<div class="row">
<div class="large-4 small-4 push-1 columns">
<input type="submit" value="Regenerate" class="radius button mybutton"/>
</div>
</div>
</form>
</section>
</div>
</div>
</div>
</div>
</div>
<footer class="row">
<div class="large-12 columns" >
<div class="row">
<div class="large-6 columns">
<!-- <p>© Copyright no one at all. Go to town.</p> -->
</div>
</div>
</div>
</footer>
<!-- <script src="js/vendor//zepto.js"></script> -->
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/util.js"></script>
<script src="js/form.js"></script>
<script src="js/user.js"></script>
<script>
$(document).foundation({
abide: {
live_validate : true, // validate the form as you go
error_labels: true, // labels with a for="inputId" will recieve an `error` class
validators :{
isStrong: function(el,required,parent){
return (el.value.length >= 8);
}
}
}
});
var doc = document.documentElement;
doc.setAttribute('data-useragent', navigator.userAgent);
</script>
</body></html>