Files
sysadm/src/server/server.pro
Ken Moore 86528334e0 [API CHANGE]
Add a new API call to the sysadm/users framework as well as add a bunch more output to current users requests (error/success reporting instead of just the overall good/bad flag).

New API call: "action":"userdelete"
REQUIRED: "name":<username>
OPTIONAL: "clean_home"="true/false" (default is "true")

REST Request (example):
-------------------------------
PUT /sysadm/users
{
   "name" : "test",
   "action" : "userdelete"
}

WebSocket Request:
-------------------------------
{
   "id" : "fooid",
   "name" : "users",
   "args" : {
      "action" : "userdelete",
      "name" : "test"
   },
   "namespace" : "sysadm"
}

Response:
-------------------------------
{
  "args": {
    "result": "success"
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2016-07-25 10:14:06 -04:00

43 lines
900 B
Prolog

TEMPLATE = app
LANGUAGE = C++
CONFIG += qt warn_off release
QT = core network websockets concurrent sql
HEADERS += globals.h globals-qt.h \
WebServer.h \
WebSocket.h \
RestStructs.h \
AuthorizationManager.h \
SslServer.h \
EventWatcher.h \
LogManager.h \
Dispatcher.h
SOURCES += main.cpp \
WebServer.cpp \
WebSocket.cpp \
RestStructs.cpp \
WebBackend.cpp \
AuthorizationManager.cpp \
EventWatcher.cpp \
LogManager.cpp \
Dispatcher.cpp \
DispatcherParsing.cpp
#Now pull in the the subsystem library classes and such
include("library/library.pri");
TARGET=sysadm-binary
target.path=/usr/local/bin
scripts.path=/usr/local/bin/
scripts.extra=install sysadm-server $(INSTALL_ROOT)/usr/local/bin/
INSTALLS += target scripts
QMAKE_LIBDIR = /usr/local/lib/qt5 /usr/local/lib
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -lpam -lutil -lssl -lcrypto