distinguishedNamePatternMatch
Compares an assertion value of DN pattern syntax to a value whose
syntax is an ASN.1 DistinguishedName
type.
A DN pattern has a similar format to a Distinguished Name (DN) except that it allows wild-cards in place of individual RDNs, AVAs or attribute values. Specifically, DN patterns must conform to the following ABNF grammar:
dnPattern = [ rdnPattern *( COMMA rdnPattern ) ] rdnPattern = ( ASTERISK ASTERISK ) / ASTERISK / singleRdnPattern singleRdnPattern = avaPattern *( PLUS avaPattern ) avaPattern = ( ASTERISK ASTERISK ) / ASTERISK / singleAvaPattern singleAvaPattern = attributeType EQUALS attributeValuePattern attributeValuePattern = ASTERISK / attributeValue ; All other productions taken from RFC4514 except for the following which ; requires a leading ASTERISK to be escaped: LeadChar = LUTF1 / UTFMB LUTF1 = %x01-1F / %x21 / %x24-29 / %x2D-3A / %x3D / %x3F-5B / %x5D-7F
Here are some example DN patterns:
-
*,ou=people,dc=example,dc=com
- matches all DNs which are directly subordinate toou=people,dc=example,dc=com
. A single RDN wild-card matches a single RDN. -
**,ou=people,dc=example,dc=com
- matches all DNs located anywhere beneathou=people,dc=example,dc=com
. A double RDN wild-card matches zero or more RDNs. -
**,ou=people,**
- matches any DN containing the RDNou=people
. -
uid=*,ou=people,dc=example,dc=com
- matches all DNs directly beneathou=people,dc=example,dc=com
whose RDN has theuid
attribute type. -
sn=smith+givenName=*,ou=people,dc=example,dc=com
- matches all DNs directly beneathou=people,dc=example,dc=com
whose RDN has exactly two AVAs where one is of the formsn=smith
and the other has thegivenName
attribute type. -
*+*,ou=people,**
- matches all DNs directly beneath any DN containing the RDNou=people
and whose RDN contains exactly two AVAs. -
*+**,ou=people,**
- matches all DNs directly beneath any DN containing the RDNou=people
and whose RDN contains at least one AVA.
Names |
distinguishedNamePatternMatch |
Origin |
OpenDJ Directory Server |
Description |
DN pattern matching |
Assertion syntax |
|
OID |
1.3.6.1.4.1.36733.2.1.4.13 |