[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs 21.1 ldap.el/openldap incompatibility?
From: |
Martin Schwenke |
Subject: |
Emacs 21.1 ldap.el/openldap incompatibility? |
Date: |
Wed, 31 Oct 2001 13:13:30 +1100 |
When I try to use eudc with openldap (the version packaged for Debian
GNU/Linux), I have 2 problems:
* The default value of ldap-ldapsearch-args includes "-B", which is
not recognised by openldap's ldapsearch. I set it like:
(setq ldap-ldapsearch-args '("-x" "-tt" "-LL"))
I'm not sure how sensible this is.
* With this setting, the "-tt" causes ldapsearch to save bits of the
output into files (as ldap-search-internal seems to expect).
However, ldap-search-internal is unable to properly parse
ldapsearch's output because it doesn't understand the file:// part
of the filename (well, it's a URI now). The following patch fixes
this in a reasonably safe manner.
--------8<---------8<-------- CUT HERE --------8<---------8<--------
*** ldap.el 2001/10/31 02:06:31 1.1
--- ldap.el 2001/10/31 02:06:57
***************
*** 584,592 ****
(end-of-line)
(point))))
(forward-line 1)
! (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(.*\\)$")
(setq name (match-string 1)
! value (match-string 2))
(save-excursion
(set-buffer bufval)
(erase-buffer)
--- 584,592 ----
(end-of-line)
(point))))
(forward-line 1)
! (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t
]*file://\\)?\\(.*\\)$")
(setq name (match-string 1)
! value (match-string 3))
(save-excursion
(set-buffer bufval)
(erase-buffer)
--------8<---------8<-------- CUT HERE --------8<---------8<--------
peace & happiness,
martin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Emacs 21.1 ldap.el/openldap incompatibility?,
Martin Schwenke <=