sysdb_sudo.h revision 3f98cdc011bb4e8cd22c088f288b0bcdb6452492
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2011 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SYSDB_SUDO_H_
#define _SYSDB_SUDO_H_
/* subdirs in cn=custom in sysdb. We don't store sudo stuff in sysdb directly
* b/c it's not name-service-switch data */
#define SUDORULE_SUBDIR "sudorules"
/* sysdb attributes */
#define SYSDB_SUDO_CACHE_AT_OC "sudoRule"
#define SYSDB_SUDO_CACHE_AT_CN "cn"
#define SYSDB_SUDO_CACHE_AT_USER "sudoUser"
#define SYSDB_SUDO_CACHE_AT_HOST "sudoHost"
#define SYSDB_SUDO_CACHE_AT_COMMAND "sudoCommand"
#define SYSDB_SUDO_CACHE_AT_OPTION "sudoOption"
#define SYSDB_SUDO_CACHE_AT_RUNASUSER "sudoRunAsUser"
#define SYSDB_SUDO_CACHE_AT_RUNASGROUP "sudoRunAsGroup"
#define SYSDB_SUDO_CACHE_AT_NOTBEFORE "sudoNotBefore"
#define SYSDB_SUDO_CACHE_AT_NOTAFTER "sudoNotAfter"
#define SYSDB_SUDO_CACHE_AT_ORDER "sudoOrder"
/* When constructing a sysdb filter, OR these values to include.. */
char **_filter);
char ***groupnames);
const char *rule_name,
struct sysdb_attrs *attrs);
struct sss_domain_info *domain,
const char *filter);
#endif /* _SYSDB_SUDO_H_ */