unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61832: 30.0.50; Missing auth-source option for ldap
@ 2023-02-26 20:38 Fabrice Bauzac-Stehly
  2023-02-27  6:32 ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Bauzac-Stehly @ 2023-02-26 20:38 UTC (permalink / raw)
  To: 61832

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Hello,

The variable ldap-host-parameters-alist accepts to enable Auth-Source by
adding "auth-source t" in the list for a host.

However, I have noticed that its defcustom is missing the corresponding
option.

May I propose the attached change to add the missing item?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-missing-auth-source-option-for-ldap.patch --]
[-- Type: text/x-patch, Size: 1095 bytes --]

From 3ba253967a9db196f00b494f0e1d39ced8d7a0f7 Mon Sep 17 00:00:00 2001
From: Fabrice Bauzac <fbauzac@amadeus.com>
Date: Mon, 15 Aug 2022 11:46:19 +0200
Subject: [PATCH] Add missing auth-source option for ldap

* lisp/net/ldap.el (ldap-host-parameters-alist):
Add a missing item for auth-source in the defcustom.

Copyright-paperwork-exempt: yes
---
 lisp/net/ldap.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el
index 78405414a28..bc98e024396 100644
--- a/lisp/net/ldap.el
+++ b/lisp/net/ldap.el
@@ -150,7 +150,12 @@ ldap-host-parameters-alist
 				   :tag "Size Limit"
 				   :inline t
 				   (const :tag "Size Limit" sizelimit)
-				   (integer :tag "(number of records)"))))))
+				   (integer :tag "(number of records)"))
+                                  (list
+				   :tag "Auth-Source"
+				   :inline t
+                                   (const auth-source)
+				   (boolean :tag "Use Auth-Source"))))))
 
 (defcustom ldap-ldapsearch-prog "ldapsearch"
   "The name of the ldapsearch command line program."
-- 
2.25.1


[-- Attachment #3: Type: text/plain, Size: 95 bytes --]


Thanks!

Best regards

-- 
Fabrice Bauzac-Stehly
PGP 01EEACF8244E9C14B551C5256ADA5F189BD322B6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-04 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-26 20:38 bug#61832: 30.0.50; Missing auth-source option for ldap Fabrice Bauzac-Stehly
2023-02-27  6:32 ` Robert Pluim
2023-03-04 17:14   ` Fabrice Bauzac-Stehly

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).