ldap_id_netgroup.c revision ca4b7b92738f3dd463914e3de5757cd98d37a983
/*
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 {
struct tevent_context *ev;
struct sdap_id_ctx *ctx;
struct sdap_id_op *op;
struct sss_domain_info *domain;
const char *name;
int timeout;
char *filter;
const char **attrs;
struct sysdb_attrs **netgroups;
int dp_error;
};
struct tevent_context *ev,
struct sdap_id_ctx *ctx,
const char *name)
{
struct tevent_req *req;
struct ldap_netgroup_get_state *state;
char *clean_name;
int ret;
goto fail;
}
goto fail;
}
goto fail;
}
goto fail;
}
return req;
fail:
return req;
}
{
struct ldap_netgroup_get_state);
struct tevent_req *subreq;
if (!subreq) {
return ret;
}
return EOK;
}
{
struct tevent_req);
struct ldap_netgroup_get_state);
int dp_error = DP_ERR_FATAL;
int ret;
return;
}
if (!subreq) {
return;
}
return;
}
{
struct tevent_req);
struct ldap_netgroup_get_state);
int dp_error = DP_ERR_FATAL;
int ret;
/* retry */
return;
}
return;
}
return;
}
return;
}
return;
}
}
return;
}
{
struct ldap_netgroup_get_state);
if (dp_error_out) {
}
return EOK;
}