| 1 |
.\" Hey, EMACS: -*- nroff -*- |
| 2 |
.\" First parameter, NAME, should be all caps |
| 3 |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
| 4 |
.\" other parameters are allowed: see man(7), man(1) |
| 5 |
.TH CERTMAP.CONF 5 "Jun 26, 2018" |
| 6 |
.\" Please adjust this date whenever revising the manpage. |
| 7 |
.\" |
| 8 |
.\" Some roff macros, for reference: |
| 9 |
.\" .nh disable hyphenation |
| 10 |
.\" .hy enable hyphenation |
| 11 |
.\" .ad l left justify |
| 12 |
.\" .ad b justify to both left and right margins |
| 13 |
.\" .nf disable filling |
| 14 |
.\" .fi enable filling |
| 15 |
.\" .br insert line break |
| 16 |
.\" .sp <n> insert n+1 empty lines |
| 17 |
.\" for manpage-specific macros, see man(7) |
| 18 |
.SH NAME |
| 19 |
/etc/dirsrv/config/certmap.conf - Configuration file for TLS client authentication in 389 Directory Server. |
| 20 |
|
| 21 |
.SH SYNOPSIS |
| 22 |
/etc/dirsrv/config/certmap.conf |
| 23 |
|
| 24 |
.SH DESCRIPTION |
| 25 |
certmap.conf |
| 26 |
|
| 27 |
This file configures how a certificate is mapped to an LDAP entry. See the |
| 28 |
documentation for more information on this file: https://access.redhat.com/documentation/en-us/red_hat_directory_server/10/html/configuration_command_and_file_reference/configuration_file_reference#certmap_conf |
| 29 |
|
| 30 |
.SH SYNTAX |
| 31 |
The format of this file is as follows: |
| 32 |
.br |
| 33 |
certmap <name> <issuerDN> |
| 34 |
.br |
| 35 |
<name>:<prop1> [<val1>] |
| 36 |
.br |
| 37 |
<name>:<prop2> [<val2>] |
| 38 |
.br |
| 39 |
|
| 40 |
Notes: |
| 41 |
|
| 42 |
1. Mapping can be defined per issuer of a certificate. If mapping doesn't |
| 43 |
exists for a particular 'issuerDN' then the server uses the default |
| 44 |
mapping. |
| 45 |
|
| 46 |
2. There must be an entry for <name>=default and issuerDN "default". |
| 47 |
This mapping is the default mapping. |
| 48 |
|
| 49 |
3. '#' can be used to comment out a line. |
| 50 |
|
| 51 |
4. DNComps & FilterComps are used to form the base DN and filter responsible for |
| 52 |
performing an LDAP search while mapping the certificate to a user entry. |
| 53 |
|
| 54 |
.SH OPTIONS |
| 55 |
.IP DNComps |
| 56 |
The DNComps parameter determines how Directory Server generates the base DN |
| 57 |
used to search for a user in the directory. This setting accepts a comma |
| 58 |
separated list of attributes to form a DN. However, the order of the |
| 59 |
attributes in the DNComps parameter must match the order in the subject of the |
| 60 |
certificate. For example, if your certificate's subject is |
| 61 |
"[email protected],cn=user_name,o=Example Inc.,c=US", and you want |
| 62 |
Directory Server to use "cn=user_name,o=Example Inc.,c=US" as the base DN when |
| 63 |
searching for the user, set the DNComps parameter to "cn, o, c". |
| 64 |
|
| 65 |
Comment out or do not set this parameter, if either the subject field of the |
| 66 |
certificate matches exactly the DN of the user in Directory Server or if you |
| 67 |
want to use the setting from the CmapLdapAttr parameter. |
| 68 |
|
| 69 |
If the value is empty, it will search the entire LDAP tree by using the |
| 70 |
FilterComps parameter. |
| 71 |
|
| 72 |
.IP FilterComps |
| 73 |
This parameter sets which attributes from the subject field of the certificate |
| 74 |
Directory Server uses to generate the search filter to locate the user. |
| 75 |
|
| 76 |
Set this parameter to a comma-separated list of attributes used in the |
| 77 |
certificate's subject. Directory Server will use these attributes in an AND |
| 78 |
operation in the filter. |
| 79 |
|
| 80 |
Note - Certificate Subjects use the e attribute for the email address, which |
| 81 |
does not exist in the default Directory Server schema. For this reason, |
| 82 |
Directory Server automatically maps this attribute to the mail attribute. This |
| 83 |
means, if you use the mail attribute in the FilterComps parameter, Directory |
| 84 |
Server reads the value of the e attribute from the subject of the certificate. |
| 85 |
|
| 86 |
For example, if the subject of a certificate is |
| 87 |
"[email protected],cn=user_name,dc=example,dc=com,o=Example Inc.,c=US" |
| 88 |
and you want to dynamically generate the |
| 89 |
"(&(mail=username@domain)(cn=user_name))" filter, set the FilterComps parameter |
| 90 |
to "mail, cn". |
| 91 |
|
| 92 |
If the parameter is commented out or set to an empty value, the (objectclass=*) filter will be used. |
| 93 |
|
| 94 |
.IP verifycert |
| 95 |
Directory Server always verifies if the certificate has been issued by a |
| 96 |
trusted Certificate Authority (CA). However, if you additionally set the |
| 97 |
verifycert parameter to on, Directory Server additionally verifies that the |
| 98 |
certificate matches the Distinguished Encoding Rules (DER)-formatted |
| 99 |
certificate stored in the userCertificate binary attribute of the user. |
| 100 |
|
| 101 |
If you do not set this parameter, verifycert is disabled |
| 102 |
|
| 103 |
.IP CmapLdapAttr |
| 104 |
If your user entries contain an attribute that stores the subject DN of the |
| 105 |
user certificate, set the CmapLdapAttr to this attribute name. Directory Server |
| 106 |
will use this attribute and the subject DN to locate the user. In this case the |
| 107 |
no filter is generated based on the attributes in the FilterComps parameter. |
| 108 |
|
| 109 |
|
| 110 |
.SH EXAMPLES |
| 111 |
certmap default default |
| 112 |
.br |
| 113 |
default:DNComps cn, o, c |
| 114 |
.br |
| 115 |
#default:FilterComps e, uid |
| 116 |
.br |
| 117 |
#default:verifycert on |
| 118 |
.br |
| 119 |
#default:CmapLdapAttr certSubjectDN |
| 120 |
.br |
| 121 |
.sp 1 |
| 122 |
certmap example o=Example Inc.,c=US |
| 123 |
.br |
| 124 |
example:DNComps |
| 125 |
.br |
| 126 |
|
| 127 |
.SH AUTHOR |
| 128 |
certmap.conf was written by the 389 Project. |
| 129 |
.SH "REPORTING BUGS" |
| 130 |
Report bugs to https://github.com/389ds/389-ds-base/issues/new |
| 131 |
.SH COPYRIGHT |
| 132 |
Copyright \(co 2018 Red Hat, Inc. |
| 133 |
|