aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2006-09-07 21:16:16 +0000
committerChong Yidong2006-09-07 21:16:16 +0000
commit325537113d1223aa42e19f47e7687ab1458d16fa (patch)
treecc95dd24abe9d7c2cf9e9f450bd4075a4676103f /lisp
parente0b5e66b13978957f0a16ae1dc0d24d81ec1527a (diff)
downloademacs-325537113d1223aa42e19f47e7687ab1458d16fa.tar.gz
emacs-325537113d1223aa42e19f47e7687ab1458d16fa.zip
* net/ldap.el (ldap-search-internal): Handle `auth' key.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/ldap.el5
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0f3fc456116..646ceb9c2e1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-09-07 Toby Allsopp <Toby.Allsopp@navman.com> (tiny change)
2
3 * net/ldap.el (ldap-search-internal): Handle `auth' key.
4
12006-09-07 Magnus Henoch <mange@freemail.hu> 52006-09-07 Magnus Henoch <mange@freemail.hu>
2 6
3 * net/rcirc.el (rcirc-activity-string): Don't quote value in case 7 * net/rcirc.el (rcirc-activity-string): Don't quote value in case
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.
490for each matching entry. If nil, return all available attributes. 490for each matching entry. If nil, return all available attributes.
491 `attrsonly', if non-nil, indicates that only attributes are retrieved, 491 `attrsonly', if non-nil, indicates that only attributes are retrieved,
492not their associated values. 492not their associated values.
493 `auth' is one of the symbols `simple', `krbv41' or `krbv42'.
493 `base' is the base for the search as described in RFC 1779. 494 `base' is the base for the search as described in RFC 1779.
494 `scope' is one of the three symbols `sub', `base' or `one'. 495 `scope' is one of the three symbols `sub', `base' or `one'.
495 `binddn' is the distinguished name of the user to bind as (in RFC 1779 syntax). 496 `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."
512 ldap-default-base)) 513 ldap-default-base))
513 (scope (plist-get search-plist 'scope)) 514 (scope (plist-get search-plist 'scope))
514 (binddn (plist-get search-plist 'binddn)) 515 (binddn (plist-get search-plist 'binddn))
516 (auth (plist-get search-plist 'auth))
515 (passwd (plist-get search-plist 'passwd)) 517 (passwd (plist-get search-plist 'passwd))
516 (deref (plist-get search-plist 'deref)) 518 (deref (plist-get search-plist 'deref))
517 (timelimit (plist-get search-plist 'timelimit)) 519 (timelimit (plist-get search-plist 'timelimit))
@@ -541,6 +543,9 @@ an alist of attribute/value pairs."
541 (if (and binddn 543 (if (and binddn
542 (not (equal "" binddn))) 544 (not (equal "" binddn)))
543 (setq arglist (nconc arglist (list (format "-D%s" binddn))))) 545 (setq arglist (nconc arglist (list (format "-D%s" binddn)))))
546 (if (and auth
547 (equal 'simple auth))
548 (setq arglist (nconc arglist (list "-x"))))
544 (if (and passwd 549 (if (and passwd
545 (not (equal "" passwd))) 550 (not (equal "" passwd)))
546 (setq arglist (nconc arglist (list (format "-w%s" passwd))))) 551 (setq arglist (nconc arglist (list (format "-w%s" passwd)))))