LDAP Search with Wild Card for ACF2
search cancel

LDAP Search with Wild Card for ACF2

book

Article ID: 194880

calendar_today

Updated On: 10-25-2023

Products

ACF2 ACF2 - DB2 Option ACF2 for zVM ACF2 - z/OS ACF2 - MISC LDAP SERVER FOR Z/OS PAM CLIENT FOR LINUX ON MAINFRAME WEB ADMINISTRATOR FOR TOP SECRET

Issue/Introduction

What ldapsearch request can be used to list all users that have a value in a particular field of the ACF2  Logonid record.
for example... list all logonids with an acc-srce that includes 0A

Environment

Release : 16.0

Component : CA LDAP Server for z/OS

Resolution

The following ldapsearch command will  return a list of all logonids that contain 0A in the ACC-SRCE field

./ldapsearch -x -D cn=ADMIN01 -w pswd -h systema.company.com -p 389  -b "acf2admingrp=lids, host=sysa.company.com,o=name,c=us"  "AccessSource=*0A*"  "AccessSource"          


# USER01, lids, suffix                      
dn: acf2lid=USER01,acf2admingrp=lids,suffix                                                                    

AccessSource: 0A123456             

 # USER02, lids, suffix                      
dn: acf2lid=USER02,acf2admingrp=lids,suffix                                                                    

AccessSource: 560A568024 

 

Unfortunately, this command does not only show entries that BEGIN with 0A, it will also show entries that CONTAIN the value 0A.
There is no command available to just show "begins with..."