generated from intersystems-community/rest-api-contest-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
module.xml
executable file
·69 lines (65 loc) · 3.28 KB
/
module.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25">
<Document name="isc-apptools-lockdown.ZPM">
<Module>
<Name>isc-apptools-lockdown</Name>
<Version>1.0.16</Version>
<Description>Program for changing the security level of the system.</Description>
<Keywords>lockdown admin</Keywords>
<Author>
<Person>Mikhaylenko Sergey</Person>
<CopyrightDate>2021</CopyrightDate>
<License>MIT</License>
<Notes>
repository:
https://github.com/SergeyMi37/isc-apptools-lockdown
description:
## Apply Security settings to "LockDown"
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("lockdown","NewPassword123")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=lockdown -Dzpm.newpasswd=NewPassword123"
## Apply Security settings to "normal"
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("normal","NewPassword123")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=normal -Dzpm.newpasswd=NewPassword123"
## Apply Security settings to "minimum"
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("minimum","SYS")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=minimum -Dzpm.newpasswd=SYS"
## Added methods for saving the current security level to the global and applying these setti to other instances.
To do this, you need to save the current applied security settings: the values of the Enabled and AutheEnabled parameters in the predefined objects of the Security.Applications, Security.Services and Security.System classes in the global by running the command
do ##class(appmsw.security.lockdown).SaveSecLevel(1,"Custom",,"d:\!\Custom.xml")
Import this Custom.xml global to the target instance and apply this applied security level there with the command
do ##class(appmsw.security.lockdown).SetSecurityLevel("Custom","Custom321level")
or
zpm "install isc-apptools-lockdown -Dzpm.securitylevel=Custom -Dzpm.newpasswd=Custom321level"
</Notes>
</Author>
<Packaging>module</Packaging>
<Default Name="newpasswd" Value="null" />
<Default Name="securitylevel" Value="none" />
<SourcesRoot>src</SourcesRoot>
<Resource Name="appmsw.security.PKG"/>
<Resource Name="appmsw.security.lockdown.GBL"/>
<Invokes>
<Invoke Class="appmsw.security.lockdown" Method="SetSecurityLevel">
<Arg>${securitylevel}</Arg>
<Arg>${newpasswd}</Arg>
</Invoke>
</Invokes>
<AfterInstallMessage>You can apply security settings to "LockDown":
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("lockdown","NewPass2")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=lockdown -Dzpm.newpasswd=NewPass2"
Apply Security settings to "normal"
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("normal","NewPassword123")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=normal -Dzpm.newpasswd=NewPass2"
Apply Security settings to "minimum"
USER>do ##class(appmsw.security.lockdown).SetSecurityLevel("minimum","SYS")
or equivalent
USER>zpm "install isc-apptools-lockdown -Dzpm.securitylevel=minimum -Dzpm.newpasswd=SYS"
</AfterInstallMessage>
</Module>
</Document>
</Export>