]> git.eshelyaron.com Git - emacs.git/commit
Fix ldap-search when WITHDN is non-nil (bug#64089)
authorFilipp Gunbin <fgunbin@fastmail.fm>
Tue, 20 Jun 2023 17:43:32 +0000 (20:43 +0300)
committerFilipp Gunbin <fgunbin@fastmail.fm>
Tue, 20 Jun 2023 17:43:32 +0000 (20:43 +0300)
commitada8822c45baa61fcfc06d11643969dd24bf5393
treeaf06539dbc2565668a2d6181a6d9a1d033121983
parent8806bbbf2cdae00faacab9cec634072ce4e80b6f
Fix ldap-search when WITHDN is non-nil (bug#64089)

* lisp/net/ldap.el (ldap-search): Apply ldap-decode-attribute only to
attribute pairs.
(ldap-search-internal): Parse dn with the same regexp as other attrs;
use its value instead of the whole line.  Include entry into result
only if valid dn is present, to avoid treating process sentinel
messages like an entry.  Fix accidental match data clobbering.
Document return value format.
lisp/net/ldap.el