Function: eudc-query

eudc-query is a byte-compiled function defined in eudc.el.gz.

Signature

(eudc-query QUERY &optional RETURN-ATTRIBUTES NO-TRANSLATION)

Documentation

Query the current directory server with QUERY.

QUERY is a list of cons cells (ATTR . VALUE) where ATTR is an attribute name and VALUE the corresponding value. If NO-TRANSLATION is non-nil, ATTR is translated according to eudc-protocol-attributes-translation-alist. RETURN-ATTRIBUTES is a list of attributes to return defaulting to eudc-default-return-attributes.

Source Code

;; Defined in /usr/src/emacs/lisp/net/eudc.el.gz
(defun eudc-query (query &optional return-attributes no-translation)
   "Query the current directory server with QUERY.
QUERY is a list of cons cells (ATTR . VALUE) where ATTR is an attribute
name and VALUE the corresponding value.
If NO-TRANSLATION is non-nil, ATTR is translated according to
`eudc-protocol-attributes-translation-alist'.
RETURN-ATTRIBUTES is a list of attributes to return defaulting to
`eudc-default-return-attributes'."
   (unless eudc-query-function
     (error "Don't know how to perform the query"))
   (if no-translation
       (funcall eudc-query-function query (or return-attributes
					      eudc-default-return-attributes))

     (funcall eudc-query-function
	      (eudc-translate-query query)
	      (cond
	       (return-attributes
		(eudc-translate-attribute-list return-attributes))
	       ((listp eudc-default-return-attributes)
		(eudc-translate-attribute-list eudc-default-return-attributes))
	       (t
		eudc-default-return-attributes)))))