diff options
| author | Thomas Fitzsimmons | 2014-11-13 00:59:12 -0500 |
|---|---|---|
| committer | Thomas Fitzsimmons | 2014-11-13 00:59:12 -0500 |
| commit | 0dee07009485caa7b39a762741e5cab3648afe6f (patch) | |
| tree | 95acc785f4fd6adc539388ee02384bc2907ddc2a | |
| parent | 090cbf9b46465ffb46430021be782a4569afd5a6 (diff) | |
| download | emacs-0dee07009485caa7b39a762741e5cab3648afe6f.tar.gz emacs-0dee07009485caa7b39a762741e5cab3648afe6f.zip | |
Support new-style LDAP URIs in ldap-search-internal
* net/ldap.el (ldap-search-internal): Support new-style LDAP URIs.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/ldap.el | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a68f33044d..831e3b03a76 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2014-11-13 Thomas Fitzsimmons <fitzsim@fitzsim.org> | 1 | 2014-11-13 Thomas Fitzsimmons <fitzsim@fitzsim.org> |
| 2 | 2 | ||
| 3 | * net/ldap.el (ldap-search-internal): Support new-style LDAP URIs. | ||
| 4 | |||
| 5 | 2014-11-13 Thomas Fitzsimmons <fitzsim@fitzsim.org> | ||
| 6 | |||
| 3 | * net/eudc-vars.el (eudc-server): Adjust docstring to mention | 7 | * net/eudc-vars.el (eudc-server): Adjust docstring to mention |
| 4 | eudc-server-hotlist. | 8 | eudc-server-hotlist. |
| 5 | (eudc-server-hotlist): Move from eudc.el and make defcustom. | 9 | (eudc-server-hotlist): Move from eudc.el and make defcustom. |
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el index 10ce7a78d35..2b5b2fb89a5 100644 --- a/lisp/net/ldap.el +++ b/lisp/net/ldap.el | |||
| @@ -559,7 +559,13 @@ an alist of attribute/value pairs." | |||
| 559 | (erase-buffer) | 559 | (erase-buffer) |
| 560 | (if (and host | 560 | (if (and host |
| 561 | (not (equal "" host))) | 561 | (not (equal "" host))) |
| 562 | (setq arglist (nconc arglist (list (format "-h%s" host))))) | 562 | (setq arglist (nconc arglist |
| 563 | (list (format | ||
| 564 | ;; Use -H if host is a new-style LDAP URI. | ||
| 565 | (if (string-match "^[a-zA-Z]+://" host) | ||
| 566 | "-H%s" | ||
| 567 | "-h%s") | ||
| 568 | host))))) | ||
| 563 | (if (and attrsonly | 569 | (if (and attrsonly |
| 564 | (not (equal "" attrsonly))) | 570 | (not (equal "" attrsonly))) |
| 565 | (setq arglist (nconc arglist (list "-A")))) | 571 | (setq arglist (nconc arglist (list "-A")))) |