ad_common.c revision 44ba573582072823d8760d0f18e5b3195cecc182
6N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
6N/A#include "providers/ad/ad_common.h"
6N/A#include "providers/dp_dyndns.h"
6N/Astruct ad_server_data {
6N/Astatic struct sdap_options *
6N/Astruct ad_options *
6N/A return ad_options;
6N/A char *ad_hostname;
6N/A char *case_sensitive_opt;
6N/A const char *opt_override;
if (!server) {
if (gret != 0) {
goto done;
goto done;
if (!realm) {
goto done;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
static errno_t
const char *fo_service,
const char *fo_gc_service,
const char *servers,
const char *ad_domain,
bool primary)
size_t i;
char **list;
goto done;
for (i = 0; list[i]; i++) {
if (!primary) {
list[i]);
goto done;
false, sdata);
goto done;
goto done;
false, sdata);
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
static inline errno_t
const char *ad_domain)
static inline errno_t
const char *ad_domain)
const char *primary_servers,
const char *backup_servers,
const char *krb5_realm,
const char *ad_service,
const char *ad_gc_service,
const char *ad_domain,
if (!service) {
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
if (!krb5_realm) {
goto done;
goto done;
if (!primary_servers) {
goto done;
if (backup_servers) {
goto done;
return ret;
goto done;
goto done;
done:
return ret;
char *address;
const char *safe_address;
char *new_uri;
int new_port;
const char *srv_name;
if (!tmp_ctx) {
if (!service) {
goto done;
if (!srvaddr) {
goto done;
goto done;
goto done;
if (!new_uri) {
goto done;
goto done;
new_port);
sizeof(struct sockaddr_storage));
goto done;
goto done;
address);
goto done;
done:
static errno_t
char *krb5_realm;
char *keytab_path;
goto done;
if (!krb5_realm) {
goto done;
if (keytab_path) {
goto done;
done:
return ret;
const char *conf_path,
return ENOMEM;
return ret;
NULL);
return ret;
return ret;
return EOK;
char *default_search_base;
size_t o;
if (default_search_base) {
search_base_options[o])) {
goto done;
search_base_options[o]));
done:
return ret;
const char *ad_servers;
const char *krb5_realm;
&krb5_options);
goto done;
if (!krb5_realm) {
goto done;
done:
return ret;
return ret;
return EOK;
struct ad_id_ctx *
return NULL;
return NULL;
return NULL;
return ad_ctx;
struct sdap_id_conn_ctx *
return NULL;
return conn;
struct sdap_id_conn_ctx **
int cindex = 0;
cindex++;
return clist;