From 72c4709eefbfac429eca3ed8fb66decd03ed098d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 25 Mar 2011 13:30:46 +0000 Subject: implement a validnames option that can be used to fine-tune the test for valid user and group names using a regular expression git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1411 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/cfg.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nslcd/cfg.h') diff --git a/nslcd/cfg.h b/nslcd/cfg.h index a44d5d2..3a9b66b 100644 --- a/nslcd/cfg.h +++ b/nslcd/cfg.h @@ -5,7 +5,7 @@ Copyright (C) 1997-2005 Luke Howard Copyright (C) 2007 West Consulting - Copyright (C) 2007, 2008, 2009, 2010 Arthur de Jong + Copyright (C) 2007, 2008, 2009, 2010, 2011 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 @@ -30,6 +30,7 @@ #include #include #include +#include #include "compat/attrs.h" #include "common/set.h" @@ -139,6 +140,8 @@ struct ldap_config char *ldc_pam_authz_search; /* minimum uid for users retreived from LDAP */ uid_t ldc_nss_min_uid; + /* the regular expression to determine valid names */ + regex_t validnames; }; /* this is a pointer to the global configuration, it should be available -- cgit v1.2.3