[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c05d1f0: Improve EUDC manual
From: |
Thomas Fitzsimmons |
Subject: |
[Emacs-diffs] master c05d1f0: Improve EUDC manual |
Date: |
Sat, 18 Apr 2015 02:03:59 +0000 |
branch: master
commit c05d1f047b3fd14df2169e41abc7c554704c2804
Author: Thomas Fitzsimmons <address@hidden>
Commit: Thomas Fitzsimmons <address@hidden>
Improve EUDC manual
* eudc.texi (LDAP Configuration): Mention simple and SASL
authentication schemes. Add index items. Shorten example server
name.
---
doc/misc/eudc.texi | 47 ++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 40 insertions(+), 7 deletions(-)
diff --git a/doc/misc/eudc.texi b/doc/misc/eudc.texi
index 7ab444c..4d6e6ad 100644
--- a/doc/misc/eudc.texi
+++ b/doc/misc/eudc.texi
@@ -226,9 +226,30 @@ Emacs. @file{ldap.el} needs an external program called
(@url{http://www.openldap.org/}). The configurations in this section
were tested with OpenLDAP 2.4.23.
+Most servers use LDAP-over-SSL these days; the examples here reflect
+that. The other possibilities are:
+
address@hidden ldap-host-parameters-alist
address@hidden ldap-ldapsearch-args
address@hidden @bullet
+
address@hidden
+Servers that do not require authentication or that do not encrypt
+authentication traffic.
+
+Include @code{auth simple} in @code{ldap-host-parameters-alist}, which
+causes the @code{-x} option to be passed to @command{ldapsearch}.
+
address@hidden
+Servers that require SASL authentication.
+
+Pass any required extra options to @command{ldapsearch} using
address@hidden
address@hidden itemize
+
The following examples use a base of
@code{ou=people,dc=example,dc=com} and the host name
address@hidden, a server that supports LDAP-over-SSL (the
address@hidden, a server that supports LDAP-over-SSL (the
@code{ldaps} protocol, with default port @code{636}) and which
requires authentication by the user @code{emacsuser} with password
@code{s3cr3t}.
@@ -272,14 +293,18 @@ TLS_CACERTDIR /etc/openldap/certs
In @file{.emacs}, these expressions suffice to configure EUDC for
LDAP:
address@hidden message-mode-map
address@hidden eudc-expand-inline
address@hidden eudc-server-hotlist
address@hidden ldap-host-parameters-alist
@lisp
(eval-after-load "message"
'(define-key message-mode-map (kbd "TAB") 'eudc-expand-inline))
(customize-set-variable 'eudc-server-hotlist
'(("" . bbdb)
- ("ldaps://ldaps.gnu.org" . ldap)))
+ ("ldaps://ldap.gnu.org" . ldap)))
(customize-set-variable 'ldap-host-parameters-alist
- '(("ldaps://ldaps.gnu.org"
+ '(("ldaps://ldap.gnu.org"
base "ou=people,dc=example,dc=com"
binddn "example\\emacsuser"
passwd ldap-password-read)))
@@ -306,7 +331,7 @@ example, @file{/etc/openldap/ldap.conf} might contain:
@example
BASE ou=people,dc=example,dc=com
-URI ldaps://ldaps.gnu.org
+URI ldaps://ldap.gnu.org
TLS_CACERTDIR /etc/openldap/certs
@end example
@@ -318,20 +343,24 @@ Authentication requires a password, and a @dfn{bind
distinguished name
@file{~/.authinfo.gpg} with the following line:
@example
-machine ldaps://ldaps.gnu.org binddn example\emacsuser password s3cr3t
+machine ldaps://ldap.gnu.org binddn example\emacsuser password s3cr3t
@end example
Then in the @file{.emacs} init file, these expressions suffice to
configure EUDC for LDAP:
address@hidden message-mode-map
address@hidden eudc-expand-inline
address@hidden eudc-server-hotlist
address@hidden ldap-host-parameters-alist
@lisp
(eval-after-load "message"
'(define-key message-mode-map (kbd "TAB") 'eudc-expand-inline))
(customize-set-variable 'eudc-server-hotlist
'(("" . bbdb)
- ("ldaps://ldaps.gnu.org" . ldap)))
+ ("ldaps://ldap.gnu.org" . ldap)))
(customize-set-variable 'ldap-host-parameters-alist
- '(("ldaps://ldaps.gnu.org"
+ '(("ldaps://ldap.gnu.org"
auth-source t)))
@end lisp
@@ -349,6 +378,10 @@ binddn example\emacsuser password s3cr3t
@noindent
and the @file{.emacs} expressions become:
address@hidden message-mode-map
address@hidden eudc-expand-inline
address@hidden eudc-server-hotlist
address@hidden ldap-host-parameters-alist
@lisp
(eval-after-load "message"
'(define-key message-mode-map (kbd "TAB") 'eudc-expand-inline))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master c05d1f0: Improve EUDC manual,
Thomas Fitzsimmons <=