/*
SSSD
LDAP Identity Backend Module - Netgroup support
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 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 <errno.h>
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_async.h"
struct ldap_netgroup_get_state {
const char *name;
int timeout;
char *filter;
const char **attrs;
int dp_error;
int sdap_ret;
bool noexist_delete;
};
struct tevent_context *ev,
struct sdap_id_ctx *ctx,
struct sdap_domain *sdom,
struct sdap_id_conn_ctx *conn,
const char *name,
bool noexist_delete)
{
char *clean_name;
int ret;
goto fail;
}
goto fail;
}
goto fail;
}
goto fail;
}
return req;
fail:
return req;
}
{
struct ldap_netgroup_get_state);
if (!subreq) {
return ret;
}
return EOK;
}
{
struct tevent_req);
struct ldap_netgroup_get_state);
int ret;
return;
}
if (!subreq) {
return;
}
return;
}
{
struct tevent_req);
struct ldap_netgroup_get_state);
int ret;
/* retry */
return;
}
return;
}
return;
}
"Found more than one netgroup with the name [%s].\n",
return;
}
return;
}
}
return;
}
{
struct ldap_netgroup_get_state);
if (dp_error_out) {
}
if (sdap_ret) {
}
return EOK;
}