How to import users of only a particular group of ldap

Document ID : KB000046444
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How to import users of  only a particular group of ldap?

I want to use the command pdm_ldap_import to import users from ldap to Servicedesk Contacts but importing only ldap users of a particular ldap group, is this possible ?

 

Answer:

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 desinstall 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=Plataformas,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:

TEC612988: Using the 'pdm_options_mgr' command to change content within the CA Service Desk Manager (CA SDM) NX.ENV file