Skip to main content

Search fields and recommendations

We recommend these criteria for LDAP requests:

  • User certificate queries: Empty (“”) base DN, with search filters to find certificates.

  • CA certificate queries: Base DN contains the subject DN or CN of the CA certificate, with no search filters.

Basic attributes

Tabela 1. Certificate attributes

Attribute

Can use in request?

Returned in response?

cn, commonName

yes

yes

dn

yes

yes

mail, rfc822mailbox

yes

yes

o, organizationName

yes

yes

ou, organizationalUnitName

yes

yes


Tabela 2. Directory class attributes

Attribute

Can use in request?

Returned in response?

objectclass

yes

yes


Tabela 3. Base64 attributes

Attribute

Can use in request?

Returned in response?

usercertificate;binary

yes

yes

cacertificate;binary

no

yes

certificaterevocationlist;binary

no

yes


Default user search response

These are the default fields returned by the LDAP user certificate search:

  • dn

  • mail

  • cn

  • o

  • ou

  • objectclass

  • userCertificate;binary

Default CA search response

These are the default fields returned by the LDAP CA certificate search:

  • dn

  • mail

  • cn

  • o

  • ou

  • objectclass

  • cacertificate;binary

  • certificaterevocationlist;binary (if available)

User certificate sample response

 # extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: cn=TestUser1
# requesting: ALL
#

# dn: mail=testuser@yopmail.com,cn=TestUser1,ou=Ldap Test Unit,o=Digicert
mail: testuser@yopmail.com
cn: TestUser1
o: Digicert
ou: Ldap Test Unit
objectClass: pkiUser
objectClass: pkiUserData
userCertificate;binary:: MIIERjCCAy6gAwIBAgIUB1cm4/W4kcDhVxDha++yTGtLKHcwDQYJK
 oZIhvcNAQELBQAwga4xCzAJBgNVBAYTAklOMRIwEAYDVQQIEwlLYXJuYXRha2ExEjAQBgNVBAcTCU
 JlbmdhbHVydTEPMA0GA1UEERMGNTYwMTAzMQswCQYDVQQJEwI4QjERMA8GA1UEChMIRGlnaWNlcnQ
 xFzAVBgNVBAsTDkxEQVAgVGVzdCBVbml0MRUwEwYDVQQLEwxEaWdpY2VydCBCTFIxFjAUBgNVBAMT
 DUxEQVAgVGVzdCBpY2EwHhcNMjIwODI5MDYwODM4WhcNMzAxMTE1MDYwODM4Wj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BO7EO1m+24DTqH4UfFgJBAiu031vfJMRagmbUTcDM20R30IzgpJS1ERD
 aJhkuqOiMSoqR0CqCx5h4ewgg
 
 # search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

CA certificate sample response

 # extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: cn=Venu Local DC1 ICA
# requesting: ALL
#
# Venu Local DC1 ICA, Venu Local DC1 ICA OU, Venu Local Account Org
dn: cn=Venu Local DC1 ICA,ou=Venu Local DC1 ICA OU,o=Venu Local Account Org
ou: venu local dc1 ica ou
cn: Venu Local DC1 ICA
o: Venu Local Account Org
objectClass: pkiCA
objectClass: pkiCAData
cACertificate;binary:: MIIEWDCCA0CgAwIBAgIUcAgr/CVbXNKcrL1JdwmmMgcDXigwDQYJKoZ
 IhvcNAQELBQAwgbIxCzAJBgNVBAYTAklOMRIwEAYDVQQIEwlLYXJuYXRha2ExEjAQBgNVBAcTCUJl
 bmdhbHVydTEPMA0GA1UEERMGNTYwMTAzMQswCQYDVQQJEwI4QjEfMB0GA1UEChMWVmVudSBMb2Nhb
 CBBY2NvdW50IE9yZzEbMBkGA1UECxMSVmVudSBMb2NhbCBSb290IE9VMR8wHQYDVQQDExZWZW51IE
 xvY2FsIERDMSBSb290IENBMCAXDTIyMDkyMTA4MzEzNVoYDzIwNTIwOTIxMDgyOTQ5WjCBsTELMAk
 GA1UEBhMCSU4xEjAQBgNVBAgTCUthcm5hdGFrYTESMBAGA1UEBxMJQmVuZ2FsdXJ1MQ8wDQYDVQQR
 EwY1NjAxMDMxCzAJBgNVBAkTAjhCMR8wHQYDVQQKExZWZW51IExvY2FsIEFjY291bnQgT3JnMR4wH
 AYDVQQLExVWZW51IExvY2FsIERDMSBJQ0EgT1UxGzAZBgNVBAMTElZlbnUgTG9jYWwgREMxIElDQT
 CCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANQVzAseiyNtEUGt1sz3Pu/ozO+WPU5gJ3a
 whUWtrCgg5v1Ysxk6+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zEgSUNBIE9VMRswGQYDVQQDExJWZW51IExvY2FsIERDMSBJQ0
 EXDTIyMDkyMTA4MzE0NloXDTIyMDkyODA4MzE0NlqgLzAtMB8GA1UdIwQYMBaAFBdge6N9pl5k4K2
 fyT8e9qvzrAXmMAoGA1UdFAQDAgEBMA0GCSqGSIb3DQEBCwUAA4IBAQBJYXam/qdCRs0APtnlWg5j
 6TA6QrlwVA/7LwKU+wizt7MGJtk1HH0jNpKUedUBz//OnaPtUCwRTP6wPxFih/cd1yOUFtzLIDHin
 uhjou3u8yUIbFkhykNN/xar4XV5Yevf3moO+KGy+w6cTM1KMFgjqaABzGUh6paMpWv8WVP1uGXMWJ
 sCxBVQgj3SVKycUgvwWqqKZQKk0gjGlSXiaFWbhnjlMXGD/pzf2UTOZ3Tp/rscB/CGYXLfam8N5+Q
 BkTChhIO/yavX3C6gBn9p6J9dsSFflsGv5aURxuWyaYzDA0yAUk2qQdLZu8zwtAxWyClfTsmAuftb
 kfT/DFiGUOXV
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1