Import users of only a particular group of ldap
search cancel

Import users of only a particular group of ldap

book

Article ID: 46444

calendar_today

Updated On:

Products

CA Service Desk Manager CA Service Management - Service Desk Manager

Issue/Introduction

I want to use the command pdm_ldap_import to import users from LDAP to CA Service Desk Contacts but importing only LDAP users of a particular LDAP group, is this possible?

Environment

CA Service Desk 17.1 and higher

Resolution

In order to get only the LDAP users of a particular LDAP group, let say by example EEM_PLTF_USERS, you can use the variable @NX_LDAP_FILTER_PREFIX in your NX.env file (see additional information section) and deinstall the option in option manager related to NX_LDAP_USER_OBJECT_CLASS variable.

So, having by example following NX_LDAP_SEARCH_BASE set:

@NX_LDAP_SEARCH_BASE=CN=Users,DC=Unicenter,DC=ServicePlus,DC=ServiceDesk

You need following filter variables set:

@NX_LDAP_FILTER_PREFIX=(&(objectClass=person)(|(memberOf=CN=EEM_PLTF_USERS, OU=EEM,OU=XXXX,DC=Unicenter,DC=ServicePlus,DC=ServiceDesk))

@NX_LDAP_FILTER_SUFFIX=)

and following variable deinstalled (through option manager)

! @NX_LDAP_USER_OBJECT_CLASS=Deinstalled ...

Please, test this in your Test environment first.

Additional Information

Best Practice when doing Changes to NX.ENV: using the 'pdm_options_mgr' command