summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-31 13:40:11 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-07-31 13:40:11 -0400
commit912e60bf74430df480b9ad4ff88893d60227a6d1 (patch)
treec4eb2966395a68a0ff8bfd738890fd7e51e06d2e /src
parentd3ccb8e9af2cfdd0724250790ff5dfb9c976fad5 (diff)
downloadslapi-nis-912e60bf74430df480b9ad4ff88893d60227a6d1.tar.gz
slapi-nis-912e60bf74430df480b9ad4ff88893d60227a6d1.tar.xz
slapi-nis-912e60bf74430df480b9ad4ff88893d60227a6d1.zip
- add a few comments
Diffstat (limited to 'src')
-rw-r--r--src/back-nis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/back-nis.c b/src/back-nis.c
index ba30bef..834eda3 100644
--- a/src/back-nis.c
+++ b/src/back-nis.c
@@ -505,6 +505,8 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e,
entry_filter :
default_filter,
domain, map);
+ /* Use the supplied key-format. If there is none, and there is also
+ * not a supplied keys-format, use the default. */
use_key_formats = key_formats ?
backend_shr_dup_strlist_unless_empty(key_formats) :
(keys_formats ? NULL :
@@ -512,6 +514,8 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e,
backend_shr_dup_strlist_n((char **) &default_key_format,
1) :
NULL));
+ /* Use the supplied keys-format. If there is none, and there is also
+ * not a supplied key-format, use the default. */
use_keys_formats = keys_formats ?
backend_shr_dup_strlist_unless_empty(keys_formats) :
(key_formats ? NULL :
@@ -519,6 +523,8 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e,
backend_shr_dup_strlist_n((char **) &default_keys_format,
1) :
NULL));
+ /* Use the supplied value-format. If there is none, and there is also
+ * not a supplied values-format, use the default. */
use_value_formats = value_formats ?
backend_shr_dup_strlist_unless_empty(value_formats) :
(values_formats ? NULL :
@@ -526,6 +532,8 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e,
backend_shr_dup_strlist_n((char **) &default_value_format,
1) :
NULL));
+ /* Use the supplied values-format. If there is none, and there is also
+ * not a supplied value-format, use the default. */
use_values_formats = values_formats ?
backend_shr_dup_strlist_unless_empty(values_formats) :
(value_formats ? NULL :
@@ -533,7 +541,10 @@ backend_set_config_read_config(struct plugin_state *state, Slapi_Entry *e,
backend_shr_dup_strlist_n((char **) &default_values_format,
1) :
NULL));
+ /* We don't supply defaults for search locations. */
use_bases = backend_shr_dup_strlist(bases);
+ /* Use explicitly-configured disallowed-characters lists, else use the
+ * defauts. */
use_disallowed_chars = disallowed_chars ?
strdup(disallowed_chars) :
(default_disallowed_chars ?