forked from cisagov/Malcolm
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#169, make htadmin work with an /auth URI instead of a separate :488 …
…port
- Loading branch information
Showing
17 changed files
with
57 additions
and
63 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
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
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
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
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
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 |
---|---|---|
|
@@ -90,7 +90,7 @@ Administrator username: analyst | |
analyst password: | ||
analyst password (again): | ||
Additional local accounts can be created at https://localhost:488/ when Malcolm is running | ||
Additional local accounts can be created at https://localhost/auth/ when Malcolm is running | ||
(Re)generate self-signed certificates for HTTPS access (Y/n): y | ||
|
@@ -129,7 +129,7 @@ A minute or so after starting Malcolm, the following services will be accessible | |
- PCAP upload (web): https://localhost/upload/ | ||
- PCAP upload (sftp): sftp://[email protected]:8022/files/ | ||
- NetBox: https://localhost/netbox/ | ||
- Account management: https://localhost:488/ | ||
- Account management: https://localhost/auth/ | ||
- Documentation: https://localhost/readme/ | ||
``` | ||
|
||
|
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
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
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 |
---|---|---|
|
@@ -224,7 +224,7 @@ Administrator username: analyst | |
analyst password: | ||
analyst password (again): | ||
Additional local accounts can be created at https://localhost:488/ when Malcolm is running | ||
Additional local accounts can be created at https://localhost/auth/ when Malcolm is running | ||
(Re)generate self-signed certificates for HTTPS access (Y/n): y | ||
|
@@ -293,7 +293,7 @@ In a few minutes, Malcolm services will be accessible via the following URLs: | |
- PCAP upload (web): https://localhost/upload/ | ||
- PCAP upload (sftp): sftp://[email protected]:8022/files/ | ||
- NetBox: https://localhost/netbox/ | ||
- Account management: https://localhost:488/ | ||
- Account management: https://localhost/auth/ | ||
- Documentation: https://localhost/readme/ | ||
NAME COMMAND SERVICE STATUS PORTS | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
...m-iso/config/includes.chroot/etc/skel/.config/xfce4/panel/launcher-18/16343117498.desktop
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
2 changes: 1 addition & 1 deletion
2
malcolm-iso/config/includes.chroot/usr/share/applications/malcolm-users.desktop
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
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
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
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 |
---|---|---|
|
@@ -702,7 +702,7 @@ def logs(): | |
print(" - PCAP upload (web): https://localhost/upload/") | ||
print(" - PCAP upload (sftp): sftp://[email protected]:8022/files/") | ||
print(" - NetBox: https://localhost/netbox/\n") | ||
print(" - Account management: https://localhost:488/\n") | ||
print(" - Account management: https://localhost/auth/\n") | ||
print(" - Documentation: https://localhost/readme/\n") | ||
|
||
process.poll() | ||
|
@@ -1123,25 +1123,25 @@ def authSetup(wipe=False): | |
f.write('; Change this to customize your title:\n') | ||
f.write('app_title = Malcolm User Management\n\n') | ||
f.write('; htpasswd file\n') | ||
f.write('secure_path = ./config/htpasswd\n') | ||
f.write('secure_path = ./config/auth/htpasswd\n') | ||
f.write('; metadata file\n') | ||
f.write('metadata_path = ./config/metadata\n\n') | ||
f.write('; administrator user/password (htpasswd -b -c -B ...)\n') | ||
f.write(f'admin_user = {username}\n\n') | ||
f.write('; username field quality checks\n') | ||
f.write(';\n') | ||
f.write('min_username_len = 4\n') | ||
f.write('max_username_len = 12\n\n') | ||
f.write('max_username_len = 32\n\n') | ||
f.write('; Password field quality checks\n') | ||
f.write(';\n') | ||
f.write('min_password_len = 6\n') | ||
f.write('max_password_len = 20\n\n') | ||
f.write('min_password_len = 8\n') | ||
f.write('max_password_len = 128\n\n') | ||
|
||
# touch the metadata file | ||
open(os.path.join(MalcolmPath, os.path.join('htadmin', 'metadata')), 'a').close() | ||
|
||
DisplayMessage( | ||
'Additional local accounts can be created at https://localhost:488/ when Malcolm is running', | ||
'Additional local accounts can be created at https://localhost/auth/ when Malcolm is running', | ||
) | ||
|
||
# generate HTTPS self-signed certificates | ||
|
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 |
---|---|---|
|
@@ -157,7 +157,7 @@ if mkdir "$DESTDIR"; then | |
echo " - PCAP upload (web): https://localhost/upload/" | tee -a "$README" | ||
echo " - PCAP upload (sftp): sftp://[email protected]:8022/files/" | tee -a "$README" | ||
echo " - NetBox: https://localhost/netbox/" | tee -a "$README" | ||
echo " - Account management: https://localhost:488/" | tee -a "$README" | ||
echo " - Account management: https://localhost/auth/" | tee -a "$README" | ||
echo " - Documentation: https://localhost/readme/" | tee -a "$README" | ||
popd >/dev/null 2>&1 | ||
popd >/dev/null 2>&1 | ||
|