From: teranisi Date: Mon, 19 Jun 2000 07:04:02 +0000 (+0000) Subject: (ldap-search-basic): Don't collect 'dn' value even if it is included in X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b5d119f3ddf2d81592c61c9e1898c13dbad26d;p=elisp%2Fwanderlust.git (ldap-search-basic): Don't collect 'dn' value even if it is included in `attrs' argument. --- diff --git a/elmo/pldap.el b/elmo/pldap.el index b724e28..43bbf3f 100644 --- a/elmo/pldap.el +++ b/elmo/pldap.el @@ -700,13 +700,15 @@ entry according to the value of WITHDN." nil (mapcar (lambda (attr) - (if (setq value (ldap/field-body attr)) - (if attrsonly - (list attr) - (nconc (list attr) value)))) + ;; dn is not an attribute. + (unless (string= attr "dn") + (if (setq value + (ldap/field-body attr)) + (if attrsonly + (list attr) + (nconc (list attr) value))))) attrs))) - (setq attrs-result - (ldap/collect-field "dn")) + (setq attrs-result (ldap/collect-field "dn")) (if attrsonly (setq attrs-result (mapcar (lambda (x) (list (car x))) attrs-result))))