Commit Graph

  • de4a7bd3c6 Make pid files 744, and update sysadm-global.h with some cleanup Kris Moore 2016-01-18 12:34:50 -05:00
  • a2c054e48e Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-15 15:36:58 -05:00
  • 82b549ead3 Split off the Events subsystem from the server class and set it up for easy expansion later. Ken Moore 2016-01-15 15:36:04 -05:00
  • fd4c33a660 Add index entries. dlavigne 2016-01-15 15:16:54 -05:00
  • 9af179294b Doc runreplication task. dlavigne 2016-01-15 15:06:06 -05:00
  • 4f14d76418 Doc removereplication action. dlavigne 2016-01-15 14:40:33 -05:00
  • 7024f74a34 Doc listreplication action. dlavigne 2016-01-15 14:29:11 -05:00
  • 5a1882dda5 Merge pull request #6 from ldemouy/master Ken Moore 2016-01-15 14:02:37 -05:00
  • ff2dcc83b7 Switch LoadUser and LoadGroup over to using pw usershow/groupshow -a Luke De Mouy 2016-01-15 11:52:56 -07:00
  • 536ff32d47 Doc initreplication action. dlavigne 2016-01-15 12:22:45 -05:00
  • 84cb7bb19d Add new API call to run replication tasks manually Kris Moore 2016-01-15 12:11:01 -05:00
  • f31d53587f Add new API call to remove a replication task / target Kris Moore 2016-01-15 12:01:28 -05:00
  • 97e8af86cf New API call for lifepreserver. This one lists the replication targets on a system Kris Moore 2016-01-15 10:40:03 -05:00
  • 68b01bca4f Merge pull request #5 from ldemouy/master Ken Moore 2016-01-15 09:05:14 -05:00
  • 3347669b6e Copy the PersonaCrypt Functions from the maindlgcode file and wire it up to user creation and password changing Luke De Mouy 2016-01-14 15:01:04 -07:00
  • 48d7108529 Add a new API call to (re)init the replication on the remote side via life-preserver Kris Moore 2016-01-14 15:17:25 -05:00
  • 553b14185b add ability to set the uid and gid when creating a user back in Luke De Mouy 2016-01-14 11:15:14 -07:00
  • 4dcdaf2cb9 Merge pull request #4 from ldemouy/master Ken Moore 2016-01-14 10:14:09 -05:00
  • 66c878697c Add Default Constructors to users and groups, and change Users to Members in the Group class. Luke De Mouy 2016-01-13 20:38:42 -07:00
  • b099e477ee various fixes to make things work and a few style changes, namely General::ExecuteCommand cannot execute a command with a space in it so it has to be added as an arg, and switched from .append to << Luke De Mouy 2016-01-13 19:49:05 -07:00
  • dbe7a84c3e Simply password changing code so that it doesn't repeat itself between being and not being in a chroot Luke De Mouy 2016-01-13 18:04:14 -07:00
  • b2368aadd4 Document all of the member functions in the header Luke De Mouy 2016-01-13 17:52:09 -07:00
  • 3d16bc3456 simplify the process for creating a new user and switch all system calls over to using General::RunCommand(); Luke De Mouy 2016-01-13 17:35:22 -07:00
  • 942d158db3 Document the functionality to create a new user and transfer it over to using sysadm-general, this commit is done in preparation for simplifying things from the following: Luke De Mouy 2016-01-13 16:05:31 -07:00
  • f570e39d04 Doc query. dlavigne 2016-01-13 14:51:20 -05:00
  • ec7f25d804 Add a new API call: namespace=rpc, name=query This will probe all the known subsystems and return which ones are currently available and what level of access the user has (read/write). Ken Moore 2016-01-13 14:21:45 -05:00
  • 2020eb2e64 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-13 13:17:18 -05:00
  • d93b0a5ba7 Add a new auth subsystem to teh backend of the server. Now the user's who login are divided up into "Full Access" users or not. This allows for additional restrictions in the backend subsystems to restrict certain types of operations to only the "full access" (root-permissioned) users. The users are divided up like this: 1) The user must be in either the "wheel" or "operator" groups to get any access whatsoever (restricting automated services from connecting). 2) If the user is in the "wheel" group, they get full access to the server's capabilities 3) If the user is in the "operator" group instead, then they only get limited access to the server's capabilities. Ken Moore 2016-01-13 13:12:10 -05:00
  • 9f2dfc91a9 Doc addreplication action. dlavigne 2016-01-13 10:01:41 -05:00
  • 30c71db6ae Create the UserManager class, and pull in the functionality from the old usermanager backend. Brings in the following functionality: *Create/Delete User *Create/Delete Group *Add/Remove User from Group *Change a Users Password/Shell/Full Name *Get the list of Users, Groups, and Shells Luke De Mouy 2016-01-12 19:39:41 -07:00
  • 5bb6fb7d33 Add new API call for creating a replication task in Life-Preserver Kris Moore 2016-01-12 16:53:46 -05:00
  • 5d834fabbd Doc savesettings action. dlavigne 2016-01-12 14:57:19 -05:00
  • ce4993e825 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-12 14:41:19 -05:00
  • 4158f4589c Add new API call to save system-wide settings for life-preserver Kris Moore 2016-01-12 14:39:10 -05:00
  • 87196e7053 Doc removesnap action. dlavigne 2016-01-12 14:17:24 -05:00
  • ddf29f2148 Document revertsnap action. dlavigne 2016-01-12 14:09:58 -05:00
  • 399bfb3814 Add new API call to remove ZFS snapshots from a dataset / pool Kris Moore 2016-01-12 13:51:24 -05:00
  • 1b55d09365 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-12 13:37:09 -05:00
  • c506bcccb5 Add new API call for reverting a dataset back to a specific snapshot Kris Moore 2016-01-12 13:36:42 -05:00
  • dfbfb3afb1 Update listcron example to include scrubs. dlavigne 2016-01-12 13:28:15 -05:00
  • bb88295d44 Document cronscrub action. dlavigne 2016-01-12 13:17:24 -05:00
  • f659ce2fb1 Merge pull request #3 from ldemouy/master Kris Moore 2016-01-12 13:14:20 -05:00
  • c37a2d67fa Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-12 13:05:13 -05:00
  • 8f4deefda2 This is a change to the "listcron" API call, specifically it adds the "scrub":"<value>" data, so if a scrub is scheduled for a pool, it will be listed alongside the snap schedule, or on its own if no snapshots are scheduled Kris Moore 2016-01-12 13:03:51 -05:00
  • de6e1b41de Move system() calls over to their equivalents from sysadm-general. Luke De Mouy 2016-01-12 10:48:00 -07:00
  • 97c0c1912d Format cronsnap parameters as a table. dlavigne 2016-01-12 12:44:38 -05:00
  • cbf3ce8b8b Add new API call to schedule a cron scrub Kris Moore 2016-01-12 12:12:19 -05:00
  • a892e539f2 Merge pull request #2 from ldemouy/master Ken Moore 2016-01-12 09:17:37 -05:00
  • 58db613ab7 Refactor to use Range Based For Loops since C++11 is enabled, also add in LoadOpenPorts to the function to reset to the default config, so that we have the correct set of open ports. Luke De Mouy 2016-01-12 02:58:35 -07:00
  • 43a4274565 Add in the ability to close or open multiple ports at once, by passing in a QVector<PortInfo> to the OpenPort and ClosePort functions, Luke De Mouy 2016-01-12 02:37:07 -07:00
  • aec5ce9aeb Move the #include<tuple> to where it should be in the header file as opposed to the cpp Luke De Mouy 2016-01-12 02:26:06 -07:00
  • 4645d2fa20 rename PortType to Type, and simply the argument names from functions from portType and portNumber to type and number respectively Luke De Mouy 2016-01-11 19:38:42 -07:00
  • 20ee1eaf62 Switch openports from being a nonintuitive string to using our PortInfo struct and add comments to the /etc/ipfw.openports file when we write to it. Luke De Mouy 2016-01-11 19:28:02 -07:00
  • 17d2c131b5 Add in the option to restore the default configuration Luke De Mouy 2016-01-11 15:02:07 -07:00
  • 21f5cf6265 Add license header on firewall cpp file Luke De Mouy 2016-01-11 14:29:42 -07:00
  • 38ff401f11 Copy the functionality from the original utility into the Firewall class, in particular adds in the following functionality: Start, Stop, and Restart the firewall, and see if it's running Open or Close a port, and get a list of the ports that are currently open. Luke De Mouy 2016-01-11 14:17:02 -07:00
  • 35c090da89 Merge pull request #1 from ldemouy/master Ken Moore 2016-01-11 14:27:45 -05:00
  • a326c3f811 renamed PortLookUp to firewall, and the files to sysadm-firewall Luke De Mouy 2016-01-11 12:22:54 -07:00
  • 4595487578 Doc 3 more API actions. dlavigne 2016-01-11 11:11:11 -05:00
  • fb508a8352 Move PortInfo struct out of PortLookUp class, and fiddled with the regex to make it actually work based on testing. The filter operation now will pickup things like 522/tcp in the QStringList if you're searching for 22/tcp, but testing seems to indicate that just taking the first one in the list works for getting what we want. Luke De Mouy 2016-01-09 13:00:23 -07:00
  • 4c562a85b2 Add a new API call to create snapshot schedules for LifePreserver Kris Moore 2016-01-08 15:52:09 -05:00
  • 9160af8912 Add a new API call for sysadm/lifepserver which returns the system-wide settings of the utility Kris Moore 2016-01-08 14:47:55 -05:00
  • adf6fe6ab7 Accept self-signed certs for wss Kris Moore 2016-01-08 14:16:35 -05:00
  • eee477167b Fix the cert/key paths used for the websocket server. Ken Moore 2016-01-08 14:12:22 -05:00
  • e119e6f25a Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-08 14:02:20 -05:00
  • 262ddb637d Commit some more work on on updating the websocket server to use wss. Ken Moore 2016-01-08 14:01:49 -05:00
  • c90c47adf6 Add wss to api-test script Kris Moore 2016-01-08 13:54:01 -05:00
  • 1ceb256922 Add the new listsnap API call Kris Moore 2016-01-08 13:48:51 -05:00
  • 38321421c4 Tell resty to accept self-signed certs Kris Moore 2016-01-08 12:11:02 -05:00
  • ba654808db Get the TCP server running with SSL encryption all the time now (TLS1.2) Ken Moore 2016-01-08 12:07:17 -05:00
  • b2a2342f95 Switch the api-test script to use https and wss for the connections. Ken Moore 2016-01-08 11:59:04 -05:00
  • 18fa142de2 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-08 10:34:59 -05:00
  • fbbc72c3a4 Commit some more work converting the QTcpServer into an SslServer. The API test will now connect without failures - but it hangs there (no incoming messages detected) Ken Moore 2016-01-08 10:33:01 -05:00
  • 5cc11be9e6 add the port type to the PortInfo struct Luke De Mouy 2016-01-07 16:55:04 -07:00
  • 26f51d6822 Make portlookup take the port type into consideration when checking the port Luke De Mouy 2016-01-07 16:42:11 -07:00
  • 94f5526003 Show error output when connection fails for websockets Kris Moore 2016-01-07 16:33:37 -05:00
  • 8abeeac890 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-07 16:08:11 -05:00
  • cce21a7677 Switch the sysadm server over to the secure socket protocols (wss/https) Ken Moore 2016-01-07 16:07:35 -05:00
  • dbbef963ed Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-07 15:41:09 -05:00
  • aadcc88b4e Auto-generate SSL certs we can use for REST/WS servers Kris Moore 2016-01-07 15:40:43 -05:00
  • 54b70be0fa Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-07 15:15:43 -05:00
  • 40a7e41213 Fix a bug with event notifications and the new output structure (ensure it sets the output data properly). Ken Moore 2016-01-07 15:14:46 -05:00
  • 25ecc6f813 Add first action for lifepresever class. dlavigne 2016-01-07 11:43:17 -05:00
  • a606d58af3 Update api-test with better formatting, so we can easily send doc requests over to Dru with all the right information Kris Moore 2016-01-07 10:24:09 -05:00
  • bdac469ed3 remove unnecessary <string> include, delete the QFile once we're done with it. Add in a constructor that initializes the port cache, and add in a destructor to delete the cache if portlookup is deleted. Luke De Mouy 2016-01-07 03:39:50 -07:00
  • 19c072bc81 update library.pro to build the portlookup class Refactor portlookup from a function that reads a file each time it is called to a class that reads the file into a QStringList the first time that it is called and reuses it afterwards. Luke De Mouy 2016-01-06 18:04:47 -07:00
  • 0694be78bf Add the new api-test.sh script, along with a javascript websocket tester. Now you can try out API calls on the fly, which are sent via REST and WebSockets, to verify you get expected results back on both. Kris Moore 2016-01-06 17:07:30 -05:00
  • 37c6b2a7c9 Adds in the LookUpPort function call that returns a struct containing information about a port including it's description and keyword. SSH and the web port are current placeholders for the recommended ports list Luke De Mouy 2016-01-06 12:59:00 -07:00
  • 2bfdc0928b Fixed up the way REST / HTTP1.1 messages are formatted when passed back to the client. Fixes an issue with bad header formatting, and changed JSON to be more human-readable. Kris Moore 2016-01-05 17:55:22 -05:00
  • 7ffec5003b Add PUT REST support, and clean up the bytes calculation for the output JSON data. Ken Moore 2016-01-05 16:20:37 -05:00
  • 18adf6d486 Use listcron instead of list-cron Kris Moore 2016-01-05 15:59:04 -05:00
  • ab92721fce Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-05 15:55:18 -05:00
  • b425c7bb89 Allow "Post" Requests from REST input. Ken Moore 2016-01-05 15:54:55 -05:00
  • 9b62a01288 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-05 15:54:42 -05:00
  • 9531f29a84 Change from GET -> POST in the test example Kris Moore 2016-01-05 15:54:22 -05:00
  • 838a5d9f60 Fix up some REST input parsing. Ken Moore 2016-01-05 15:50:38 -05:00
  • 35a90406ec Oops, forgot to comment out the auth user/pass line from the log file (don't need to keep that around). Ken Moore 2016-01-05 15:12:07 -05:00
  • 858ed83611 Add in the REST authorization protocols so REST communications now get through to the backend systems if valid requests. Ken Moore 2016-01-05 15:11:01 -05:00
  • 7677ed5f65 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-05 14:46:39 -05:00
  • c08a458127 Quick fix for the unauthorized return value for bad requests. Ken Moore 2016-01-05 14:46:00 -05:00