|
|
c96fbb |
From ba828bdd09a8203ff6c8e3a2bc66f6af75e3330a Mon Sep 17 00:00:00 2001
|
|
|
c96fbb |
From: rpm-build <rpm-build>
|
|
|
c96fbb |
Date: Mon, 20 Feb 2017 14:19:41 +0100
|
|
|
c96fbb |
Subject: [PATCH 2/3] Treat passwords like ordinary text, bind 9.9 does not
|
|
|
c96fbb |
support change 3701. Uses simple cfg_print.
|
|
|
c96fbb |
|
|
|
c96fbb |
---
|
|
|
c96fbb |
src/ldap_helper.c | 2 +-
|
|
|
c96fbb |
src/settings.c | 4 ++--
|
|
|
c96fbb |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
c96fbb |
|
|
|
c96fbb |
diff --git a/src/ldap_helper.c b/src/ldap_helper.c
|
|
|
c96fbb |
index 94bd9cf..fb7c67f 100644
|
|
|
c96fbb |
--- a/src/ldap_helper.c
|
|
|
c96fbb |
+++ b/src/ldap_helper.c
|
|
|
c96fbb |
@@ -246,7 +246,7 @@ dyndb_ldap_conf_clauses[] = {
|
|
|
c96fbb |
{ "krb5_keytab", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
{ "krb5_principal", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
{ "ldap_hostname", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
- { "password", &cfg_type_sstring, 0 },
|
|
|
c96fbb |
+ { "password", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
{ "reconnect_interval", &cfg_type_uint32, 0 },
|
|
|
c96fbb |
{ "sasl_auth_name", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
{ "sasl_mech", &cfg_type_qstring, 0 },
|
|
|
c96fbb |
diff --git a/src/settings.c b/src/settings.c
|
|
|
c96fbb |
index 37e6e5c..8f3ae34 100644
|
|
|
c96fbb |
--- a/src/settings.c
|
|
|
c96fbb |
+++ b/src/settings.c
|
|
|
c96fbb |
@@ -605,7 +605,7 @@ settings_set_fill(const cfg_obj_t *config, settings_set_t *set)
|
|
|
c96fbb |
/* this avoids additional quotes around the string */
|
|
|
c96fbb |
str_value = cfg_obj_asstring(cfg_value);
|
|
|
c96fbb |
} else {
|
|
|
c96fbb |
- cfg_printx(cfg_value, 0, cfg_printer, buf_value);
|
|
|
c96fbb |
+ cfg_print(cfg_value, cfg_printer, buf_value);
|
|
|
c96fbb |
isc_buffer_putmem(buf_value, (unsigned char *)"\0", 1);
|
|
|
c96fbb |
str_value = isc_buffer_base(buf_value);
|
|
|
c96fbb |
}
|
|
|
c96fbb |
@@ -690,7 +690,7 @@ setting_set_parse_conf(isc_mem_t *mctx, const char *name,
|
|
|
c96fbb |
result = cfg_parse_buffer2(parser, &in_buf, name, cfg_type_conf,
|
|
|
c96fbb |
&config);
|
|
|
c96fbb |
if (result == ISC_R_SUCCESS) {
|
|
|
c96fbb |
- cfg_printx(config, CFG_PRINTER_XKEY, cfg_printer, log_buf);
|
|
|
c96fbb |
+ cfg_print(config, cfg_printer, log_buf);
|
|
|
c96fbb |
cfg_obj_log(config, dns_lctx, ISC_LOG_DEBUG(10),
|
|
|
c96fbb |
"configuration for dyndb instance '%s' "
|
|
|
c96fbb |
"(starting in file %s on line %lu):\n"
|
|
|
c96fbb |
--
|
|
|
c96fbb |
2.9.3
|
|
|
c96fbb |
|