ipa_rules_common.c revision 0f623456437c96f50330fe0ff21afd9638d14e57
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@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/>.
*/
#include "providers/ipa/ipa_rules_common.h"
static errno_t
bool delete_subdir,
const char *subdir,
const char *naming_attribute,
struct sysdb_attrs **list)
{
int ret;
size_t c;
const char *object_name;
struct ldb_message_element *el;
return ENOMEM;
}
if (delete_subdir) {
goto done;
}
goto done;
}
}
for (c = 0; c < count; c++) {
goto done;
}
if (el->num_values == 0) {
goto done;
}
if (object_name == NULL) {
goto done;
}
goto done;
}
}
done:
return ret;
}
const char *primary_subdir,
const char *attr_name,
struct sysdb_attrs **primary,
const char *group_subdir,
const char *groupattr_name,
struct sysdb_attrs **groups)
{
bool in_transaction = false;
/* There always has to be at least one
* primary entry.
*/
return EINVAL;
}
/* Save the entries and groups to the cache */
goto done;
};
in_transaction = true;
/* First, save the specific entries */
goto done;
}
/* Second, save the groups */
if (group_count > 0) {
goto done;
}
}
goto done;
}
in_transaction = false;
done:
if (in_transaction) {
}
}
}
return ret;
}
struct sss_domain_info *domain,
const char *rule,
const char *subtree_name,
const char **attrs,
struct sysdb_attrs ***_rules)
{
struct ldb_message **msgs;
struct sysdb_attrs **rules;
char *filter;
return ENOMEM;
}
goto done;
}
&rule_count, &msgs);
goto done;
}
rule_count = 0;
}
"Could not convert ldb message to sysdb_attrs\n");
goto done;
}
if (_rules) {
}
if (_rule_count) {
}
done:
return ret;
}
const char *subtree_name)
{
return ENOMEM;
}
goto done;
}
goto done;
}
done:
return ret;
}
struct ipa_common_entries *hosts,
struct ipa_common_entries *services,
struct ipa_common_entries *rules,
{
bool in_transaction = false;
goto done;
}
in_transaction = true;
/* Save the hosts */
goto done;
}
}
/* Save the services */
goto done;
}
}
/* Save the rules */
goto done;
}
}
goto done;
}
in_transaction = false;
done:
if (in_transaction) {
}
}
return ret;
}