About siteminder SDK SmDmsSearch attribute "m_szFilter" and "m_nMaxResults" clarification
search cancel

About siteminder SDK SmDmsSearch attribute "m_szFilter" and "m_nMaxResults" clarification

book

Article ID: 237046

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

Purpose is to pull full User Directory users using the SmDmsSearch. 

Couple of questions on the SmDmsSearch attributes as follows:

*** Question 1 --> If the field "m_szFilter" is not set, is it possible to acquire it without search conditions?

*** Question 2 --> If the field "m_nMaxResults" is not set, is there an upper limit on the number of acquisitions?

 

Environment

Release : 12.8

Component : SITEMINDER -SDK

Resolution

*** Question 1 --> If the field "m_szFilter" is not set, is it possible to acquire it without search conditions?

[Answer] m_szFilter NEEDS to be set. However to get the Directory a filter such as (objectclass=*) can be tried.
         Please note that, SearchResults and SearchTimeout values of the created Directory (against which the search is conducted) influence the results. Value 0 (zero) would be suitable to get all the results.
 
*** Question 2 --> If the field "m_nMaxResults" is not set, is there an upper limit on the number of acquisitions?

[Answer] -1 for m_nMaxResults Means, all the search results would be provided to client. No idea on the max allowed number to be returned, at least I have got successful results with 2021 entries in the directory.