emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for ldap.el


From: Arne Jørgensen
Subject: Patch for ldap.el
Date: Fri, 04 Feb 2005 11:45:25 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Hi,

This patch for ldap.el will allow you to do a `ldap-search' for
attributes that are returned with descriptions like
"userCertificate;binary". (The ";binary" is difference from without
the patch.)

Index: lisp/net/ldap.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/net/ldap.el,v
retrieving revision 1.15
diff -u -r1.15 ldap.el
--- lisp/net/ldap.el    19 May 2004 19:06:54 -0000      1.15
+++ lisp/net/ldap.el    4 Feb 2005 10:42:00 -0000
@@ -579,9 +579,9 @@
                                               (end-of-line)
                                               (point))))
          (forward-line 1)
-         (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t 
]*file://\\)?\\(.*\\)$")
+         (while (looking-at "^\\(\\w*\\)\\(;\\w*\\)?[=:\t ]+\\(<[\t 
]*file://\\)?\\(.*\\)$")
            (setq name (match-string 1)
-                 value (match-string 3))
+                 value (match-string 4))
             ;; Need to handle file:///D:/... as generated by OpenLDAP
             ;; on DOS/Windows as local files.
             (if (and (memq system-type '(windows-nt ms-dos))
I did mail to Pavel who is the maintainer according to ldap.el but he
says he is no longer the maintainer.

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]