Revert "Fix parsing of dn line if WITHDN is non-nil"
This reverts commits71b27779a9
andd2246b2627
, because they change the return value of "ldap-search" in an incompatible way. The fix (a different one) will be done on master instead (bug#64089).
This commit is contained in:
parent
7637e361d3
commit
2bad5829ff
1 changed files with 1 additions and 11 deletions
|
@ -703,17 +703,7 @@ an alist of attribute/value pairs."
|
||||||
(while (progn
|
(while (progn
|
||||||
(skip-chars-forward " \t\n")
|
(skip-chars-forward " \t\n")
|
||||||
(not (eobp)))
|
(not (eobp)))
|
||||||
;; Ignore first (dn) line if WITHDN equals nil. If WITHDN
|
(setq dn (buffer-substring (point) (line-end-position)))
|
||||||
;; is non-nil, check syntax of the line and split it into a
|
|
||||||
;; pair as expected by `ldap-decode-attribute' (Bug#64089).
|
|
||||||
;; If the syntax is wrong, better throw an error here, since
|
|
||||||
;; otherwise `ldap-decode-attribute' would throw a much less
|
|
||||||
;; comprehensible error later.
|
|
||||||
(cond ((not withdn))
|
|
||||||
((looking-at "dn[=:\t ]+\\(.*\\)$")
|
|
||||||
(setq dn (list "dn" (match-string 1))))
|
|
||||||
(t (error "Incorrect dn line \"%s\" in ldapsearch result"
|
|
||||||
(buffer-substring (point) (line-end-position)))))
|
|
||||||
(forward-line 1)
|
(forward-line 1)
|
||||||
(while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\
|
(while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\
|
||||||
\\|[0-9]+\\(?:\\.[0-9]+\\)*\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\
|
\\|[0-9]+\\(?:\\.[0-9]+\\)*\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue