aboutsummaryrefslogtreecommitdiff
path: root/lib/libeclat.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-08 17:36:05 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-08 17:36:05 +0300
commit9b56a5b05db6630a667ad0c9b16ec45a4e52044d (patch)
treeeca8c25be90428656c24f76f68899c22d0091528 /lib/libeclat.h
parent04f58aaf7a6f27e3b79e8f5ccffeb006db56aeaf (diff)
downloadeclat-9b56a5b05db6630a667ad0c9b16ec45a4e52044d.tar.gz
eclat-9b56a5b05db6630a667ad0c9b16ec45a4e52044d.tar.bz2
Improve LDAP map.
* lib/expand.c: New file. * lib/getans.c: New file. * lib/Makefile.am: Add new files. * lib/ldapmap.c (ldap_map) <passfile,prompt>: New members. (ldapmap_kw) <passfile,prompt>: New keywords. (ldap_map_open): Prompt for undefined credentials if the "prompt" statement is set to true. (ldap_map_get): Use eclat_expand_kw to expand the filter. * lib/libeclat.h (eclat_trimnl,eclat_getans) (eclat_expand_kw): New protos. * lib/map.c (eclat_map_get): Use eclat_expand_kw. * src/eclat.c (read_format): Likewise.
Diffstat (limited to 'lib/libeclat.h')
-rw-r--r--lib/libeclat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libeclat.h b/lib/libeclat.h
index 2f4c32c..2b40f43 100644
--- a/lib/libeclat.h
+++ b/lib/libeclat.h
@@ -101,6 +101,10 @@ void eclat_partial_tree_data_handler(void *data, const XML_Char *s, int len);
void eclat_partial_tree_start_handler(void *data, const XML_Char *name,
const XML_Char **atts);
void eclat_partial_tree_end_handler(void *data, const XML_Char *name);
+
+void eclat_trimnl(char *s);
+char *eclat_expand_kw(const char *input, const char **ukw);
+char *eclat_getans(char *prompt, char *dfl, int pass);
#define ECLAT_MAP_OPEN 0x01

Return to:

Send suggestions and report system problems to the System administrator.