Function: ldap-decode-attribute
ldap-decode-attribute is a byte-compiled function defined in
ldap.el.gz.
Signature
(ldap-decode-attribute ATTR)
Documentation
Decode the attribute/value pair ATTR according to LDAP rules.
The attribute name is looked up in ldap-attribute-syntaxes-alist
and the corresponding decoder is then retrieved from
ldap-attribute-syntax-decoders and applied on the value(s).
Source Code
;; Defined in /usr/src/emacs/lisp/net/ldap.el.gz
(defun ldap-decode-attribute (attr)
"Decode the attribute/value pair ATTR according to LDAP rules.
The attribute name is looked up in `ldap-attribute-syntaxes-alist'
and the corresponding decoder is then retrieved from
`ldap-attribute-syntax-decoders' and applied on the value(s)."
(let* ((name (car attr))
(values (cdr attr))
(syntax-id (cdr (assq (intern (downcase name))
ldap-attribute-syntaxes-alist)))
decoder)
(if syntax-id
(setq decoder (aref ldap-attribute-syntax-decoders
(1- syntax-id)))
(setq decoder ldap-default-attribute-decoder))
(if decoder
(cons name (mapcar decoder values))
attr)))