/*
SSSD
IPA Backend Module -- SELinux user maps (maps retrieval)
Authors:
Jan Zeleny <jzeleny@redhat.com>
Copyright (C) 2012 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_common.h"
#include "providers/ipa/ipa_selinux_maps.h"
struct ipa_selinux_get_maps_state {
const char **attrs;
int search_base_iter;
char *cur_filter;
char *maps_filter;
};
static errno_t
struct ipa_selinux_get_maps_state *state);
static void
struct tevent_context *ev,
struct sdap_handle *sh,
struct sdap_options *opts,
struct ipa_options *ipa_opts,
struct sdap_search_base **search_bases)
{
return NULL;
}
state->search_base_iter = 0;
"(&(objectclass=%s)(%s=TRUE))",
goto fail;
}
}
goto fail;
}
return req;
fail:
return req;
}
static errno_t
struct ipa_selinux_get_maps_state *state)
{
return EOK;
}
return ENOMEM;
}
true);
return ENOMEM;
}
return EAGAIN;
}
{
struct tevent_req);
struct ipa_selinux_get_maps_state);
int i;
goto done;
}
if (count > 0) {
"Found %zu user maps in current search base\n", count);
goto done;
}
i = 0;
i++;
}
}
return;
goto done;
}
}
done:
} else {
}
}
struct sysdb_attrs ***maps)
{
return EOK;
}