diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-13 22:55:10 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-13 22:55:10 +0200 |
commit | 8fc785087daefbff19f35cd4e89e30a6d90f3374 (patch) | |
tree | a7103a69396f5a398630e97ae89b0267a0ed63b9 /nslcd/common.h | |
parent | 0d860441e3ff58b4faa033073235ad9c3b9a87c7 (diff) |
combine isvalidusername() and isvalidgroupname() into isvalidname() because they are similar enough and we just want to check to see if it is a reasonable name (e.g. not a DN)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@759 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.h')
-rw-r--r-- | nslcd/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/common.h b/nslcd/common.h index 87d6298..8d91a2c 100644 --- a/nslcd/common.h +++ b/nslcd/common.h @@ -76,8 +76,8 @@ 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); +/* checks to see if the specified string is a valid user or group name */ +MUST_USE int isvalidname(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); |