diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-20 22:07:54 -0700 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-20 22:07:54 -0700 |
| commit | c2f77f4296c6b13eeb86067a772192b70577bca6 (patch) | |
| tree | 8437af60a559b7ed206fe4b256b4ea583292b9f1 /service/inetorg-delete.lisp | |
initial commit
Diffstat (limited to 'service/inetorg-delete.lisp')
| -rw-r--r-- | service/inetorg-delete.lisp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/service/inetorg-delete.lisp b/service/inetorg-delete.lisp new file mode 100644 index 0000000..d01db5d --- /dev/null +++ b/service/inetorg-delete.lisp @@ -0,0 +1,34 @@ +;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +(declaim (optimize (speed 0) (safety 3) (debug 3))) + +(in-package #:ldapadmin) + +;; ========================================================================== ;; +;; inetorg-delete + +(defclass inetorg-delete (auth-service) + ((cn :initarg :cn + :initform nil + :accessor cn) + (location-p :initarg :location-p + :initform nil + :accessor location-p)) + (:documentation "")) + +(defun inetorg-delete-json (cn) + (with-auth (instance inetorg-delete) + (setf (cn instance) cn))) + +;; ========================================================================== ;; +;; inetorg-delete-submit + +(defclass inetorg-delete-submit (auth-service) + () + (:documentation "")) + +(defun inetorg-delete-submit-json (cn) + (with-auth (instance inetorg-delete-submit) + (with-ldap (ldap) + (let ((ldap-user (get-ldap-user ldap cn))) + (delete-ldap-user ldap-user ldap) + (setf (message instance) "InetOrg entry deleted successfully."))))) |
