diff options
| author | ckonstanski <carlos.konstanski@olo.com> | 2021-11-27 10:20:12 -0700 |
|---|---|---|
| committer | ckonstanski <carlos.konstanski@olo.com> | 2021-11-27 10:20:12 -0700 |
| commit | 31657f6854edc116946a099be889440fb3e92e53 (patch) | |
| tree | be32747cfaf2f19f59857349438d62fb4a4a25b6 /service/inetorg-modify-service.lisp | |
| parent | 41ca4dcf8a18a76c48734a5fca4c56afb735a66e (diff) | |
moved everything under lisp/
Diffstat (limited to 'service/inetorg-modify-service.lisp')
| -rw-r--r-- | service/inetorg-modify-service.lisp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/service/inetorg-modify-service.lisp b/service/inetorg-modify-service.lisp deleted file mode 100644 index 89e5b9b..0000000 --- a/service/inetorg-modify-service.lisp +++ /dev/null @@ -1,59 +0,0 @@ -;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- -(declaim (optimize (speed 0) (safety 3) (debug 3))) - -(in-package :ldapadmin) - -(defclass inetorg-modify-service (auth-service) - ((form :initarg :form - :initform nil - :accessor form) - (ldap-user-values :initarg :ldap-user-values - :initform nil - :accessor ldap-user-values) - (title :initarg :title - :initform nil - :accessor title) - (location-p :initform nil)) - (:documentation "")) - -(defmethod initialize-instance :after ((inetorg-modify-service inetorg-modify-service) &key) - (setf (form inetorg-modify-service) (make-form "inetorg-modify-form" - nil - t - `((:name "modify-givenname" :label "givenName" :field-type "text") - (:name "modify-sn" :label "sn" :field-type "text") - (:name "modify-mail" :label "mail" :field-type "text") - (:name "modify-postaladdress" :label "postalAddress" :field-type "text") - (:name "modify-postalcode" :label "postalCode" :field-type "text") - (:name "modify-st" :label "st" :field-type "text") - (:name "modify-l" :label "l" :field-type "text") - (:name "modify-telephonenumber" :label "telephoneNumber" :field-type "text") - (:name "modify-mobile" :label "mobile" :field-type "text") - (:name "modify-businesscategory" :label "businessCategory" :field-type "text") - (:label "Modify InetOrg Entry" :field-type "button" :onclick "on_inetorg_modify_submit_clicked()"))))) - -(defun inetorg-modify-json (cn) - (with-auth (instance inetorg-modify-service) - (with-ldap (ldap) - (setf (ldap-user-values instance) (get-ldap-user ldap cn))))) - -(defclass inetorg-modify-submit-service (auth-service) - ((location-p :initform nil)) - (:documentation "")) - -(defun inetorg-modify-submit-json (givenname sn mail postaladdress postalcode st l telephonenumber mobile businesscategory) - (with-auth (instance inetorg-modify-submit-service) - (with-ldap (ldap) - (let ((ldap-user (make-instance 'ldap-user - :givenname givenname - :sn sn - :mail mail - :postaladdress postaladdress - :postalcode postalcode - :st st - :l l - :telephonenumber telephonenumber - :mobile mobile - :businesscategory businesscategory))) - (modify-ldap-user ldap-user ldap) - (setf (session-value :message) "InetOrg entry saved successfully."))))) |
