Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/common.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-04-20 21:50:00 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-04-20 21:50:00 +0200
commit6c2b57e33df882f17fa4cf8dfc6a50f45af7e1c6 (patch)
tree0ce72d74e85acfb17f33ce755eb61cf6fa7ab440 /nslcd/common.h
parentdbc26827cca506111622f78cf15e29bf526c3dec (diff)
add checks for valid user and group names in incoming requests and for data returned from LDAP
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@689 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.h')
-rw-r--r--nslcd/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nslcd/common.h b/nslcd/common.h
index c7e3b13..87d6298 100644
--- a/nslcd/common.h
+++ b/nslcd/common.h
@@ -76,6 +76,9 @@ int read_address(TFILE *fp,char *addr,int *addrlen,int *af);
if (read_address(fp,addr,&(len),&(af))) \
return -1;
+/* checks to see if the specified string is a valid username */
+MUST_USE int isvalidusername(const char *name);
+
/* transforms the DN info a uid doing an LDAP lookup if needed */
MUST_USE char *dn2uid(MYLDAP_SESSION *session,const char *dn,char *buf,size_t buflen);