db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose Library for rule based certificate to user mapping
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose Sumit Bose <sbose@redhat.com>
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose Copyright (C) 2017 Red Hat
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose This program is free software; you can redistribute it and/or modify
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose it under the terms of the GNU General Public License as published by
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose the Free Software Foundation; either version 3 of the License, or
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose (at your option) any later version.
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose This program is distributed in the hope that it will be useful,
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose but WITHOUT ANY WARRANTY; without even the implied warranty of
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose GNU General Public License for more details.
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose You should have received a copy of the GNU General Public License
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose along with this program. If not, see <http://www.gnu.org/licenses/>.
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose cm_ctx->debug(cm_ctx->debug_priv, __FILE__, __LINE__, __FUNCTION__, \
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose#define DEFAULT_MATCH_RULE "<KU>digitalSignature<EKU>clientAuth"
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose#define DEFAULT_MAP_RULE "LDAP:(userCertificate;binary={cert!bin})"
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose/* KRB5 matching rule */
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose/* key usage flags, see RFC 3280 section 4.2.1.3 */
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bosechar *check_ad_attr_name(TALLOC_CTX *mem_ctx, const char *rdn);
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Boseint parse_krb5_match_rule(struct sss_certmap_ctx *ctx,
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Boseint parse_ldap_mapping_rule(struct sss_certmap_ctx *ctx,
a20fb9cbd5f42a6ca895aea1b84347fdfea34b89Sumit Boseint get_short_name(TALLOC_CTX *mem_ctx, const char *full_name,
a20fb9cbd5f42a6ca895aea1b84347fdfea34b89Sumit Boseint add_to_san_list(TALLOC_CTX *mem_ctx, bool is_bin,
a20fb9cbd5f42a6ca895aea1b84347fdfea34b89Sumit Bose enum san_opt san_opt, const uint8_t *data, size_t len,
a20fb9cbd5f42a6ca895aea1b84347fdfea34b89Sumit Boseint add_principal_to_san_list(TALLOC_CTX *mem_ctx, enum san_opt san_opt,
a20fb9cbd5f42a6ca895aea1b84347fdfea34b89Sumit Boseint rdn_list_2_dn_str(TALLOC_CTX *mem_ctx, const char *conversion,
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose#endif /* __SSS_CERTMAP_INT_H__ */