Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_myldap.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-12-28 13:18:12 +0100
committerArthur de Jong <arthur@arthurdejong.org>2009-12-28 13:18:12 +0100
commit9c0cf90c858dd020756d7cd51661beedacdf9924 (patch)
tree215b28b4e0f754819590185e02e290df814c5b74 /tests/test_myldap.c
parent93182ac6939bece7e538bc06e5f09f47bcaddf8a (diff)
implement attribute mapping using shell-like expressions
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1041 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_myldap.c')
-rw-r--r--tests/test_myldap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_myldap.c b/tests/test_myldap.c
index 7387d51..44dfc34 100644
--- a/tests/test_myldap.c
+++ b/tests/test_myldap.c
@@ -2,7 +2,7 @@
test_myldap.c - simple test for the myldap module
This file is part of the nss-pam-ldapd library.
- Copyright (C) 2007 Arthur de Jong
+ Copyright (C) 2007, 2008, 2009 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -45,6 +45,9 @@ const char **base_get_var(int UNUSED(map)) {return NULL;}
int *scope_get_var(int UNUSED(map)) {return NULL;}
const char **filter_get_var(int UNUSED(map)) {return &foo;}
const char **attmap_get_var(int UNUSED(map),const char UNUSED(*name)) {return &foo;}
+const char *attmap_get_value(MYLDAP_ENTRY UNUSED(*entry),const char UNUSED(*attr),char UNUSED(*buffer),size_t UNUSED(buflen)) {return "";}
+void *attmap_add_attributes(void UNUSED(*set),const char UNUSED(*attr)) {return NULL;}
+const char *attmap_set_mapping(const char UNUSED(**var),const char UNUSED(*value)) {return NULL;}
/* the maxium number of results to print (all results are retrieved) */
#define MAXRESULTS 10