2002-01-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+ * net/ldap.el (ldap-search-internal): Skip error message from
+ ldapsearch. Allow listing attribute names only. Do not open
+ non-existent files.
+
+ * net/eudcb-ldap.el (eudc-ldap-get-field-list): Do not try to
+ call non-existent function.
+
* net/eudc.el (top-level): Revert previous change.
* net/net-utils.el (nslookup-font-lock-keywords): Defvar font-lock
(if (looking-at "usage")
(error "Incorrect ldapsearch invocation")
(message "Parsing results... ")
+ ;; Skip error message when retrieving attribute list
+ (if (looking-at "Size limit exceeded")
+ (forward-line 1))
(while (progn
(skip-chars-forward " \t\n")
(not (eobp)))
(while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$")
(setq name (match-string 1)
value (match-string 3))
- (save-excursion
- (set-buffer bufval)
- (erase-buffer)
- (set-buffer-multibyte nil)
- (insert-file-contents-literally value)
- (delete-file value)
- (setq value (buffer-string)))
+ ;; Do not try to open non-existent files
+ (if (equal value "")
+ (setq value " ")
+ (save-excursion
+ (set-buffer bufval)
+ (erase-buffer)
+ (set-buffer-multibyte nil)
+ (insert-file-contents-literally value)
+ (delete-file value)
+ (setq value (buffer-string))))
(setq record (cons (list name value)
record))
(forward-line 1))