diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-09-09 16:08:44 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-09-09 16:08:44 +0000 |
commit | f899952c08a72bd2f7e86f6fd35086749ee48b73 (patch) | |
tree | e5c6883cbd33d7da8438b5e22ccaedd16de05f0a /nslcd/common.c | |
parent | 25139e11b2bcfcad3572eb69b8acfd7ee1abd336 (diff) |
make validation log messages consistent
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1542 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.c')
-rw-r--r-- | nslcd/common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nslcd/common.c b/nslcd/common.c index 264439a..0c8c1a4 100644 --- a/nslcd/common.c +++ b/nslcd/common.c @@ -150,7 +150,8 @@ int isvalidname(const char *name) } /* this writes a single address to the stream */ -int write_address(TFILE *fp,const char *addr) +int write_address(TFILE *fp,MYLDAP_ENTRY *entry,const char *attr, + const char *addr) { int32_t tmpint32; struct in_addr ipv4addr; @@ -179,7 +180,8 @@ int write_address(TFILE *fp,const char *addr) /* failure, log but write simple invalid address (otherwise the address list is messed up) */ /* TODO: have error message in correct format */ - log_log(LOG_WARNING,"unparseble address: %s",addr); + log_log(LOG_WARNING,"%s: %s: \"%s\" unparseble", + myldap_get_dn(entry),attmap_ether_cn,addr); /* write an illegal address type */ WRITE_INT32(fp,-1); /* write an emtpy address */ |