summaryrefslogtreecommitdiff
path: root/lisp/ldap/generics.lisp
blob: ed8a839bf11b0ab032f4a79da3fee3909f76cd43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(declaim (optimize (speed 0) (safety 3) (debug 3)))

(in-package :ldapadmin)

(defgeneric disconnect (ldap)
  (:documentation ""))

(defgeneric get-ldap-users (ldap search-base)
  (:documentation "Calls `with-ldap-iterate' to iterate over all LDAP
users returned with the search `search-base', wrapping each entry in
an `ldap-user' object. Returns a list of these objects. `ldap' is a
free variable that must be present for `with-ldap-iterate'."))

(defgeneric get-ldap-user (ldap cn)
  (:documentation "Calls `with-ldap-users' with a search filter and
returns the first entry."))