Lines Matching refs:ctx

35 static errno_t krb5_init_kpasswd(struct krb5_ctx *ctx,
45 realm = dp_opt_get_string(ctx->opts, KRB5_REALM);
51 kdc_servers = dp_opt_get_string(ctx->opts, KRB5_KDC);
52 primary_servers = dp_opt_get_string(ctx->opts, KRB5_KPASSWD);
53 backup_servers = dp_opt_get_string(ctx->opts, KRB5_BACKUP_KPASSWD);
54 use_kdcinfo = dp_opt_get_bool(ctx->opts, KRB5_USE_KDCINFO);
66 ctx->kpasswd_service = NULL;
68 ret = krb5_service_init(ctx, be_ctx, SSS_KRB5KPASSWD_FO_SRV,
70 use_kdcinfo, &ctx->kpasswd_service);
81 static errno_t krb5_init_kdc(struct krb5_ctx *ctx, struct be_ctx *be_ctx)
89 realm = dp_opt_get_string(ctx->opts, KRB5_REALM);
95 primary_servers = dp_opt_get_string(ctx->opts, KRB5_KDC);
96 backup_servers = dp_opt_get_string(ctx->opts, KRB5_BACKUP_KDC);
98 use_kdcinfo = dp_opt_get_bool(ctx->opts, KRB5_USE_KDCINFO);
100 ret = krb5_service_init(ctx, be_ctx, SSS_KRB5KDC_FO_SRV,
102 use_kdcinfo, &ctx->service);
111 int krb5_ctx_re_destructor(struct krb5_ctx *ctx)
113 if (ctx->illegal_path_re != NULL) {
114 pcre_free(ctx->illegal_path_re);
115 ctx->illegal_path_re = NULL;
127 struct krb5_ctx *ctx;
133 ctx = talloc_zero(mem_ctx, struct krb5_ctx);
134 if (ctx == NULL) {
139 ret = sss_krb5_get_options(ctx, be_ctx->cdb, be_ctx->conf_path, &ctx->opts);
146 ctx->action = INIT_PW;
147 ctx->config_type = K5C_GENERIC;
149 ret = krb5_init_kdc(ctx, be_ctx);
154 ret = krb5_init_kpasswd(ctx, be_ctx);
159 ret = krb5_child_init(ctx, be_ctx);
166 ctx->illegal_path_re = pcre_compile2(ILLEGAL_PATH_PATTERN, 0,
168 if (ctx->illegal_path_re == NULL) {
174 talloc_set_destructor(ctx, krb5_ctx_re_destructor);
183 *_module_data = ctx;
189 talloc_free(ctx);
200 struct krb5_ctx *ctx;
202 ctx = talloc_get_type(module_data, struct krb5_ctx);
204 krb5_pam_handler_send, krb5_pam_handler_recv, ctx,
223 struct krb5_ctx *ctx;
225 ctx = talloc_get_type(module_data, struct krb5_ctx);
227 krb5_pam_handler_send, krb5_pam_handler_recv, ctx,