-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSMBActiveDirectory.page
57 lines (35 loc) · 1.53 KB
/
SMBActiveDirectory.page
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
Cond="($var['shareSMBEnabled'] == 'ads')"
Icon="icons/windows-icon.png"
Menu="SMB:20"
Title="Active Directory Settings"
---
<form markdown="1" name="JoinOps" method="POST" action="/update.htm" target="progressFrame">
AD join status:
: <?=$var['joinStatus'];?>
AD domain name (FQDN):
: <input type="text" name="DOMAIN" maxlength="80" value="<?=$var['DOMAIN'];?>">
AD short domain name:
: <input type="text" name="DOMAIN_SHORT" maxlength="40" value="<?=$var['DOMAIN_SHORT'];?>">
AD account login:
: <input type="text" name="DOMAIN_LOGIN" maxlength="40" value="<?=$var['DOMAIN_LOGIN'];?>">
AD account password:
: <input type="password" name="DOMAIN_PASSWD" maxlength="40" value="<?=$var['DOMAIN_PASSWD'];?>">
: <? if ($var['joinStatus']=="Joined"): ?>
<input type="submit" name="cmdJoinDomain" value="Join" disabled>
<input type="submit" name="cmdLeaveDomain" value="Leave">
<? else: ?>
<input type="submit" name="cmdJoinDomain" value="Join">
<input type="submit" name="cmdLeaveDomain" value="Leave" disabled>
<? endif; ?>
</form>
<hr>
<form markdown="1" name="shareOwnership" method="POST" action="/update.htm" target="progressFrame">
AD initial owner:
: <input type="text" name="shareInitialOwner" maxlength="40" value="<?=$var['shareInitialOwner'];?>">
AD initial group:
: <input type="text" name="shareInitialGroup" maxlength="40" value="<?=$var['shareInitialGroup'];?>">
: <input type="submit" name="changeShare" value="Apply">
<button type="button" onClick="done();">Done</button>
</form>