(ldap-encode-attribute): New function.
(ldap-add-entries): Use it.
(ldap-modify-entries): Ditto.
+ (ldap-search-entries): Enclosed decoding function with
+ `with-temp-buffer' and set as unibyte.
+ (ldap-search-basic): Set process buffer as unibyte.
* elmo-util.el (elmo-folder-identical-system-p):
Eliminated name space checking.
(not (equal "" sizelimit)))
(setq arglist (nconc arglist (list (format "-z%s" sizelimit)))))
(with-temp-buffer
+ (set-buffer-multibyte nil)
(setq ret (apply 'call-process
ldap-search-program
nil (current-buffer) t
attributes attrsonly withdn
ldap-verbose))
(ldap-close ldap)
- (if ldap-ignore-attribute-codings
- result
- (mapcar (function
- (lambda (record)
- (mapcar 'ldap-decode-attribute record)))
- result))))
+ (with-temp-buffer
+ (set-buffer-multibyte nil)
+ (if ldap-ignore-attribute-codings
+ result
+ (mapcar (function
+ (lambda (record)
+ (mapcar 'ldap-decode-attribute record)))
+ result)))))
(defun ldap-add-entries (entries &optional host binddn passwd)
"Add entries to an LDAP directory.