From: "Sébastien Kirche" <sebastien.kirche.no@spam.free.fr.invalid>
Subject: Re: BBDB and EUDC/LDAP
Date: Thu, 09 Jun 2005 01:42:36 +0200 [thread overview]
Message-ID: <85vf4otnyr.fsf@obelix.seki.fr> (raw)
In-Reply-To: <mj7mzsm4hx0.fsf@mm117419-pc.MITRE.ORG>
At 16:03 on mar 29 2005, David S. Goldberg said :
[about searching recipient with eudc into both a ldap server *and* bbdb]
> eudc knows about bbdb as well and it to looks in both places, I'm
> pretty sure, by default. The only thing you lose with
> eudc-expand-inline is completion cycling. For when I need that
> (rarely for me, may be important for you) I have mapped C-c TAB to
> bbdb-complete-name.
Some weeks ago i completed my configuration to look into the ldap
directory of my company and my bbdb.
I forget to post the result. FWIW i publish it, maybe one can find it
useful ?
Just to give some details :
- i use gnus/bbdb both at home and at work, but i have ldap directory
only at work (server named work-server) and I have only one .emacs
and one .gnus. So I enable ldap settings after testing the system-name
- my system at work is a Macintosh with OSX so I also enable
Address Book searching
- 'SAGE' is a given organisational unit that is set in the ldap tree
(setq message-expand-name-databases '(eudc)) ; was bbdb
;; réglages Emacs Unified Directory Client
(require 'eudc nil t)
(require 'eudcb-bbdb nil t)
(require 'eudcb-mab nil t) ;; support Macintosh Address Book - needs 'contacts'
;; http://www.newartisans.com/johnw/Emacs/eudcb-mab.el
;; http://gnufoo.org/contacts/contacts.html
(eudc-set-server "localhost" 'bbdb t);;main server
(setq eudc-inline-expansion-servers 'hotlist);;search in hotlist order
(add-to-list 'eudc-server-hotlist '("localhost" . bbdb) t)
(eudc-protocol-set 'eudc-inline-query-format
'((firstname)
(lastname)
(firstname lastname)
(net))
'bbdb)
(eudc-protocol-set 'eudc-inline-expansion-format
'("%s %s <%s>" firstname lastname net)
'bbdb)
(when (string-match "\\`goudurix" system-name)
(add-to-list 'eudc-server-hotlist '("localhost" . mab) t)
(add-to-list 'eudc-server-hotlist '("work-server" . ldap) t)
(setq ldap-host-parameters-alist '(("work-server" base "o=SAGE" auth nil scope subtree))
eudc-query-form-attributes '(uid name firstname email))
(eudc-protocol-set 'eudc-inline-query-format
'((name)
(email))
'mab)
(eudc-protocol-set 'eudc-inline-expansion-format
'("%s <%s>" name email)
'mab)
(eudc-protocol-set 'eudc-inline-query-format
'(;(cn)
;(cn cn)
;(cn cn cn)
;(sn)
;(givenname)
;(surname)
;(givenname surname)
;(fullname)
(uid)
(name)
;(surname)
(mail))
'ldap)
(eudc-protocol-set 'eudc-inline-expansion-format
'("%s <%s>" cn mail)
'ldap)
)
HTH.
--
Sébastien Kirche
prev parent reply other threads:[~2005-06-08 23:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-29 14:48 Sébastien Kirche
2005-03-29 14:59 ` David S. Goldberg
2005-03-29 15:17 ` Sébastien Kirche
2005-03-29 15:54 ` Reiner Steib
2005-03-29 18:28 ` Sébastien Kirche
2005-03-29 18:50 ` Reiner Steib
2005-03-30 9:16 ` Sébastien Kirche
2005-03-30 12:07 ` Reiner Steib
2005-03-30 13:00 ` Sébastien Kirche
2005-03-30 14:12 ` Reiner Steib
2005-03-30 14:48 ` Sébastien Kirche
2005-03-30 15:41 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
2005-03-30 16:22 ` Christophe Cuq
2005-03-30 15:06 ` Christophe Cuq
2005-03-30 15:36 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
2005-06-08 23:42 ` Sébastien Kirche [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85vf4otnyr.fsf@obelix.seki.fr \
--to=sebastien.kirche.no@spam.free.fr.invalid \
--cc=sebastien.kirche@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).