[FEATURE REQUEST] Abitlity to make secured connections in pillar_ldap #67515
Replies: 3 comments
-
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Beta Was this translation helpful? Give feedback.
-
Fully agree, it’s very weird not to have |
Beta Was this translation helpful? Give feedback.
-
FWIW the patch could be as simple as --- /usr/lib/python2.7/dist-packages/salt/pillar/pillar_ldap_old.py 2023-11-16 11:42:37.795149374 +0000
+++ /usr/lib/python2.7/dist-packages/salt/pillar/pillar_ldap.py 2023-11-16 11:43:24.423235480 +0000
@@ -274,7 +274,7 @@
'''
# Build LDAP connection args
connargs = {}
- for name in ['server', 'port', 'tls', 'binddn', 'bindpw', 'anonymous']:
+ for name in ['uri', 'server', 'port', 'tls', 'binddn', 'bindpw', 'anonymous']:
connargs[name] = _config(name, conf)
if connargs['binddn'] and connargs['bindpw']:
connargs['anonymous'] = False |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
We need to get
ldaps
working butsalt.pillar.pillar_ldap
does not supporturi
from this line of code.Describe the solution you'd like
if
uri
is defined inpillar_ldap.yaml
it should override bothserver
andport
Describe alternatives you've considered
Alternately, change code to support
uri
onlysecured connections
or unsecured connections
Additional context
Example of
pillar_ldap.yaml
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
Beta Was this translation helpful? Give feedback.
All reactions