summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-09-07 21:16:16 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-09-07 21:16:16 +0000
commit325537113d1223aa42e19f47e7687ab1458d16fa (patch)
treecc95dd24abe9d7c2cf9e9f450bd4075a4676103f /lisp/net
parente0b5e66b13978957f0a16ae1dc0d24d81ec1527a (diff)
downloademacs-325537113d1223aa42e19f47e7687ab1458d16fa.tar.gz
* net/ldap.el (ldap-search-internal): Handle `auth' key.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/ldap.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index 2a63615a602..029c9268d5f 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -490,6 +490,7 @@ to try to connect to. Each host name may optionally be of the form HOST:PORT.
for each matching entry. If nil, return all available attributes.
`attrsonly', if non-nil, indicates that only attributes are retrieved,
not their associated values.
+ `auth' is one of the symbols `simple', `krbv41' or `krbv42'.
`base' is the base for the search as described in RFC 1779.
`scope' is one of the three symbols `sub', `base' or `one'.
`binddn' is the distinguished name of the user to bind as (in RFC 1779 syntax).
@@ -512,6 +513,7 @@ an alist of attribute/value pairs."
ldap-default-base))
(scope (plist-get search-plist 'scope))
(binddn (plist-get search-plist 'binddn))
+ (auth (plist-get search-plist 'auth))
(passwd (plist-get search-plist 'passwd))
(deref (plist-get search-plist 'deref))
(timelimit (plist-get search-plist 'timelimit))
@@ -541,6 +543,9 @@ an alist of attribute/value pairs."
(if (and binddn
(not (equal "" binddn)))
(setq arglist (nconc arglist (list (format "-D%s" binddn)))))
+ (if (and auth
+ (equal 'simple auth))
+ (setq arglist (nconc arglist (list "-x"))))
(if (and passwd
(not (equal "" passwd)))
(setq arglist (nconc arglist (list (format "-w%s" passwd)))))