ipa_rules_common.h revision 21909d3b620d97e81dd946b959a47efe88d2b7d8
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher/*
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher SSSD
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher Authors:
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher Stephen Gallagher <sgallagh@redhat.com>
2cb6f28b3a12bb714bf14494d31eb6b6fff64b8bJakub Hrozek
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher Copyright (C) 2011 Red Hat
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek This program is free software; you can redistribute it and/or modify
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher it under the terms of the GNU General Public License as published by
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
ad805face83ba7d67b1cf2067a1982c7e63d1060Jakub Hrozek (at your option) any later version.
ad805face83ba7d67b1cf2067a1982c7e63d1060Jakub Hrozek
a7797068c4deb6ce2bdbcda27c45ff1bbb4a8e78Jakub Hrozek This program is distributed in the hope that it will be useful,
a7797068c4deb6ce2bdbcda27c45ff1bbb4a8e78Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher GNU General Public License for more details.
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher You should have received a copy of the GNU General Public License
7a14e8f66c0e932fe2954d792614a3b61d444bd1Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
36b56482ca1e53d832accef0354124fd79711172Jakub Hrozek*/
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#ifndef IPA_RULES_COMMON_H_
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#define IPA_RULES_COMMON_H_
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek#include "providers/backend.h"
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek#define IPA_UNIQUE_ID "ipauniqueid"
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek#define OBJECTCLASS "objectclass"
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek#define IPA_MEMBER_USER "memberUser"
d25fa6f2608d5fe0617ada47f9d426f45deb96ffJakub Hrozek#define IPA_USER_CATEGORY "userCategory"
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek#define IPA_EXTERNAL_HOST "externalHost"
9a839b29816c8906d4a6b074cf76df790cac9209Jakub Hrozek#define IPA_ENABLED_FLAG "ipaenabledflag"
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#define IPA_MEMBER_HOST "memberHost"
b355dcb54194f498921743ca33304eac35d89718Stephen Gallagher#define IPA_HOST_CATEGORY "hostCategory"
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#define IPA_CN "cn"
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#define IPA_TRUE_VALUE "TRUE"
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher/* From ipa_rules_common.c */
b355dcb54194f498921743ca33304eac35d89718Stephen Gallaghererrno_t
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagheripa_common_entries_and_groups_sysdb_save(struct sss_domain_info *domain,
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher const char *primary_subdir,
f10ebaa51ecdcbbd10f171d19fe8e680e5bc74aaJakub Hrozek const char *attr_name,
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek size_t primary_count,
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek struct sysdb_attrs **primary,
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek const char *group_subdir,
261cdde02b40aa8dabb3d69e43586a5a220647e9Jakub Hrozek const char *groupattr_name,
b47fd11a259c50e63cd674c7cba0da3f2549cae0Jakub Hrozek size_t group_count,
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher struct sysdb_attrs **groups);
b355dcb54194f498921743ca33304eac35d89718Stephen Gallagher
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher#endif /* IPA_RULES_COMMON_H_ */
52261fe16203dec6e6f69177c6d0a810b47d073fStephen Gallagher