Lines Matching defs:req

434     authn_ldap_request_t *req =
443 if (!req) {
452 if (req->password &&
456 binddn = req->dn;
457 bindpw = req->password;
465 apr_pool_cleanup_register(req->ldc_pool, ldc,
473 authn_ldap_request_t *req =
475 ap_set_module_config(r->request_config, &authnz_ldap_module, req);
476 apr_pool_create(&(req->ldc_pool), r->pool);
478 "ldap authorize: Creating LDAP req structure");
479 return req;
484 authn_ldap_request_t *req =
487 if (req) {
488 apr_pool_cleanup_kill(req->ldc_pool, ldc, authnz_ldap_cleanup_connection_close);
511 authn_ldap_request_t *req = NULL;
543 req = build_request_config(r);
590 &dn, &(req->vals));
636 req->dn = apr_pstrdup(r->pool, dn);
637 req->user = apr_pstrdup(r->pool, user);
638 req->password = apr_pstrdup(r->pool, password);
640 r->user = req->dn;
644 remote_user_attribute_set = set_request_vars(r, LDAP_AUTHN, req->vals);
667 authn_ldap_request_t *req =
683 sec->scope, sec->attributes, filtbuf, &dn, &(req->vals));
692 req->dn = apr_pstrdup(r->pool, dn);
693 req->user = r->user;
702 authn_ldap_request_t *req =
731 if (!req) {
733 req = build_request_config(r);
746 * the req structure needed for authorization needs to be created
757 if (req->dn == NULL || strlen(req->dn) == 0) {
776 result = util_ldap_cache_compare(r, ldc, sec->url, req->dn, sec->attribute, require);
782 set_request_vars(r, LDAP_AUTHZ, req->vals);
798 result = util_ldap_cache_compare(r, ldc, sec->url, req->dn, sec->attribute, w);
804 set_request_vars(r, LDAP_AUTHZ, req->vals);
829 authn_ldap_request_t *req =
859 if (!req) {
861 req = build_request_config(r);
909 * the req structure needed for authorization needs to be created
923 if (req->dn == NULL || strlen(req->dn) == 0) {
932 if (req->user == NULL || strlen(req->user) == 0) {
935 req->user = r->user;
960 sec->group_attrib_is_dn ? req->dn : req->user, t);
963 sec->group_attrib_is_dn ? req->dn : req->user);
971 set_request_vars(r, LDAP_AUTHZ, req->vals);
996 sec->group_attrib_is_dn ? req->dn : req->user,
1007 set_request_vars(r, LDAP_AUTHZ, req->vals);
1033 authn_ldap_request_t *req =
1062 * the req structure needed for authorization needs to be created
1072 if (!req) {
1074 req = build_request_config(r);
1094 if (req->dn == NULL || strlen(req->dn) == 0) {
1101 result = util_ldap_cache_comparedn(r, ldc, sec->url, req->dn, t, sec->compare_dn_on_server);
1107 set_request_vars(r, LDAP_AUTHZ, req->vals);
1132 authn_ldap_request_t *req =
1162 * the req structure needed for authorization needs to be created
1172 if (!req) {
1174 req = build_request_config(r);
1184 if (req->dn == NULL || strlen(req->dn) == 0) {
1208 result = util_ldap_cache_compare(r, ldc, sec->url, req->dn, w, value);
1214 set_request_vars(r, LDAP_AUTHZ, req->vals);
1239 authn_ldap_request_t *req =
1271 * the req structure needed for authorization needs to be created
1281 if (!req) {
1283 req = build_request_config(r);
1293 if (req->dn == NULL || strlen(req->dn) == 0) {
1315 if (APR_SUCCESS != authn_ldap_build_filter(filtbuf, r, req->user, t, sec)) {
1324 sec->scope, sec->attributes, filtbuf, &dn, &(req->vals));
1335 result = util_ldap_cache_comparedn(r, ldc, sec->url, req->dn, dn,
1344 set_request_vars(r, LDAP_AUTHZ, req->vals);
1968 authn_ldap_request_t *req =
1970 if (req && req->ldc_pool) {
1971 apr_pool_destroy(req->ldc_pool);