diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-12-28 13:18:12 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-12-28 13:18:12 +0100 |
commit | 9c0cf90c858dd020756d7cd51661beedacdf9924 (patch) | |
tree | 215b28b4e0f754819590185e02e290df814c5b74 /tests/test_myldap.c | |
parent | 93182ac6939bece7e538bc06e5f09f47bcaddf8a (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.c | 5 |
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 |