* bug#8983: 23.3; displayName is missing from ldap-attribute-syntaxes-alist
@ 2011-07-01 21:38 Łukasz Stelmach
2014-12-24 7:05 ` Thomas Fitzsimmons
0 siblings, 1 reply; 3+ messages in thread
From: Łukasz Stelmach @ 2011-07-01 21:38 UTC (permalink / raw)
To: 8983
Hello.
(ldap-search "uid=fgg" "localhost" '("displayName"))
returns
((("Friedrich Georg Göthe")))
while
(ldap-search "uid=fgg" "localhost" '("sn"))
gives
((("Göthe")))
That is because ldap-attribute-syntaxes-alist lacks (displayname . 15).
The displayName attribute is a part of InetOrgPerson schema (RFC2798).
In GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.22.1)
of 2011-05-28 on kotik
The bug is in trunk too.
--
Miłego dnia,
Łukasz Stelmach
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#8983: 23.3; displayName is missing from ldap-attribute-syntaxes-alist
2011-07-01 21:38 bug#8983: 23.3; displayName is missing from ldap-attribute-syntaxes-alist Łukasz Stelmach
@ 2014-12-24 7:05 ` Thomas Fitzsimmons
2015-03-10 1:07 ` Thomas Fitzsimmons
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Fitzsimmons @ 2014-12-24 7:05 UTC (permalink / raw)
To: Łukasz Stelmach; +Cc: 8983
[-- Attachment #1: Type: text/plain, Size: 59 bytes --]
Hi Łukasz,
This patch should fix the issue.
Thomas
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: emacs-ldap-add-rfc2798-syntaxes.patch --]
[-- Type: text/x-patch, Size: 803 bytes --]
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index 10ce7a7..3e325aa 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -378,9 +378,19 @@ RFC2252 section 4.3.2")
(houseidentifier . 15)
(supportedalgorithms . 49)
(deltarevocationlist . 9)
- (dmdname . 15))
+ (dmdname . 15)
+ (carlicense . 15)
+ (departmentnumber . 15)
+ (displayname . 15)
+ (employeenumber . 15)
+ (employeetype . 15)
+ (jpegphoto . 28)
+ (preferredlanguage . 15)
+ (usersmimecertificate . 5)
+ (userpkcs12 . 5))
"A map of LDAP attribute names to their type object id minor number.
-This table is built from RFC2252 Section 5 and RFC2256 Section 5")
+This table is built from RFC2252 Section 5, RFC2256 Section 5 and
+RFC2798 Section 9.1.1")
;; Coding/decoding functions
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#8983: 23.3; displayName is missing from ldap-attribute-syntaxes-alist
2014-12-24 7:05 ` Thomas Fitzsimmons
@ 2015-03-10 1:07 ` Thomas Fitzsimmons
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Fitzsimmons @ 2015-03-10 1:07 UTC (permalink / raw)
To: 8983-done
fixed 8983 25.1
thanks
Hi,
I pushed a patch to add some missing attributes including displayName.
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-10 1:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 21:38 bug#8983: 23.3; displayName is missing from ldap-attribute-syntaxes-alist Łukasz Stelmach
2014-12-24 7:05 ` Thomas Fitzsimmons
2015-03-10 1:07 ` Thomas Fitzsimmons
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).