From b8e3c4fcb398e6de768d62b542442f1ec7a2ded6 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 16 Jan 2008 20:43:34 +0000 Subject: add a test for the map statement git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@560 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_cfg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test_cfg.c') diff --git a/tests/test_cfg.c b/tests/test_cfg.c index 592ce50..9b5d09d 100644 --- a/tests/test_cfg.c +++ b/tests/test_cfg.c @@ -195,7 +195,8 @@ static void test_read(void) "uri ldap://127.0.0.1/\n" "uri ldap:/// ldaps://127.0.0.1/\n" "base dc=test, dc=tld\n" - "base passwd ou=Some People,dc=test,dc=tld\n"); + "base passwd ou=Some People,dc=test,dc=tld\n" + "map\tpasswd uid\t\tsAMAccountName\n"); fclose(fp); /* parse the file */ cfg_defaults(&cfg); @@ -210,6 +211,7 @@ static void test_read(void) assert(cfg.ldc_uris[3]==NULL); assertstreq(cfg.ldc_base,"dc=test, dc=tld"); assertstreq(passwd_base,"ou=Some People,dc=test,dc=tld"); + assertstreq(attmap_passwd_uid,"sAMAccountName"); /* remove temporary file */ remove("temp.cfg"); } -- cgit v1.2.3