diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-25 14:30:46 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-03-25 14:30:46 +0100 |
commit | 72c4709eefbfac429eca3ed8fb66decd03ed098d (patch) | |
tree | a4fdb41fba9ba7af21955457cc6dc229b3e5e8fb /nslcd/cfg.h | |
parent | 1fb820314c4b6f720bfca5ce5bfbc32183e3c3af (diff) |
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
Diffstat (limited to 'nslcd/cfg.h')
-rw-r--r-- | nslcd/cfg.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <sys/types.h> #include <lber.h> #include <ldap.h> +#include <regex.h> #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 |