[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: connect to MS Exchange ldap
From: |
Serge Olkhowik |
Subject: |
Re: connect to MS Exchange ldap |
Date: |
Thu, 01 Jul 2004 09:41:40 +0300 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
On Wed, 30 Jun 2004 14:46:06 -0400
Josh Huber (Josh) wrote:
>> * when query form is used I have to fill any search field exactly, i.e. not
>> "solo" for e-mail, but "solo@isd.dp.ua"
>>
>> is it possible to exec partial match query?
Josh> I wonder if the LDAP schema is different for your exchange setup?
Josh> I can show my entry in our ldap directory with something like this:
Josh> ldapsearch -x -D "jhuber@company.com" -b "dc=company,dc=com" -W \
Josh> -h dc1.company.com "cn=Josh Huber"
Aha! I found the solution - it is enough to specify asterisk ('*')
for search value, i.e. if I run:
ldapsearch -x -D "solo@isd.dp.ua" -b "dc=isd,dc=dp,dc=ua" -W -h server
"cn=Serge*"
I get a lot of Serge's ;)
And eudc-query-form with asterisk works too! That's great!
Josh> I have this in my custom configuration:
Josh> '(eudc-inline-query-format (quote ((sn) (givenName) (givenName
Josh> sn) (mailNickname) (sAMAccountName))))
I used your settings so I don't know are they valid for my exchange
server. How can I check this?
Are these settings used for inline expansion or to query form?
I see word 'inline' so I suppose that they are invalid?
Josh> Each is a symbol in the schema which eudc will try to match on with
Josh> whatever text is before the point (when you issue an
Josh> eudc-expand-inline).
Josh> Here are a few:
Josh> givenName: Josh
Josh> sn: Huber
Josh> mailNickname: jhuber
Josh> sAMAccountName: jhuber
So you see these lines in the second buffers when trying to expand inline?
Great!
>> * eudc-expand-inline doesn't work properly, for example I'm typing "solo"
>> and then "M-x eudc-expand-inline" - it removes my text (i.e. "solo") and
>> opens another buffer like this:
Josh> Are the "possible completions" really empty? I wonder if this has
Josh> something to do with the query format as well...
Yes!
Josh> What is the value of eudc-inline-query-format, and do the
Josh> symbols match the schema of your ldap directory entries?
OK, here is my value:
eudc-inline-query-format's value is
((sn)
(givenName)
(givenName sn)
(mailNickname)
(sAMAccountName))
And here is the contents of my .eudc-options file:
(provide 'eudc-options-file)
(setq ldap-host-parameters-alist '(("server.isd.dp.ua"
base "dc=isd,dc=dp,dc=ua"
binddn "ISD\\solo"
passwd "***"
auth simple))
ldap-ldapsearch-args '("-x")
eudc-expansion-overwrites-query t
eudc-inline-query-format (quote ((sn) (givenName) (givenName sn)
(mailNickname) (sAMAccountName)))
eudc-strict-return-matches nil
eudc-inline-expansion-format (quote ("%s <%s>" cn email)))
(eudc-set-server "server.isd.dp.ua" 'ldap t)
(setq eudc-server-hotlist 'nil)
Thank you for your help!
--
Serge Olkhowik <solo@isd.dp.ua>
ISD Configuration Management Team <cm@isd.dp.ua>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: connect to MS Exchange ldap,
Serge Olkhowik <=