From 9c0cf90c858dd020756d7cd51661beedacdf9924 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Mon, 28 Dec 2009 12:18:12 +0000 Subject: 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 --- tests/test_myldap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_myldap.c') 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 -- cgit v1.2.3