ldap_init.c revision 1c48b5a62f73234ed26bb20f0ab345ab61cda0ab
/*
SSSD
LDAP Provider Initialization functions
Authors:
Simo Sorce <ssorce@redhat.com>
Copyright (C) 2009 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/child_common.h"
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_async_private.h"
/* Id Handler */
struct bet_ops sdap_id_ops = {
};
/* Auth Handler */
struct bet_ops sdap_auth_ops = {
};
/* Chpass Handler */
struct bet_ops sdap_chpass_ops = {
};
void **pvt_data)
{
struct sdap_id_ctx *ctx;
const char *urls;
int ret;
goto done;
}
if (!urls) {
DEBUG(0, ("Missing ldap_uri\n"));
goto done;
}
goto done;
}
goto done;
}
goto done;
}
goto done;
}
*ops = &sdap_id_ops;
done:
}
return ret;
}
void **pvt_data)
{
struct sdap_auth_ctx *ctx;
const char *urls;
int ret;
goto done;
}
if (!urls) {
DEBUG(0, ("Missing ldap_uri\n"));
goto done;
}
goto done;
}
goto done;
}
*ops = &sdap_auth_ops;
done:
}
return ret;
}
void **pvt_data)
{
int ret;
*ops = &sdap_chpass_ops;
return ret;
}
{
/* TODO: Clean up any internal data */
}