PropsKeys.LDAP_AUTH_SEARCH_FILTER in Liferay 7.2

thumbnail
Nirav Prajapati, modified 5 Years ago. Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Dear Friends,

I am working on migration task from 6.2 to 7.2.

In 6.2 we have PropsKeys.LDAP_AUTH_SEARCH_FILTER,  PropsKeys.LDAP_GROUP_MAPPINGS,  LDAP_CONTACT_CUSTOM_MAPPINGS  kinds of key value pair in PropsKeys interface. But in Liferay DXP it's not available in same interface.

Can you please guide me how I can implement in DXP?

Thanks.
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi,
LDAP setting have been moved to System Setting from 7.X onwards , you can try accessing those setting by using LDAPSettingsUtil. To set those setting you can either do it from control panel->system setting or through config file . Please refer belowhttps://portal.liferay.dev/docs/7-0/deploy/-/knowledge_base/d/ldap#ldap-options-available-in-system-settings
thumbnail
Nirav Prajapati, modified 5 Years ago. Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Hi Mohammed Yasin,

I have tried with LDAPSettingsUtil but it's not showing any key for LDAP_USER_CUSTOM_MAPPINGS, LDAP_USER_MAPPINGS and many more. 

In a code, how I will get it ?
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
You try below method  
     LDAPSettingsUtil.getUserMappings(ldapServerId, companyId)
        LDAPSettingsUtil.getUserMappings(ldapServerId, companyId)
thumbnail
Nirav Prajapati, modified 5 Years ago. Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Hi Mohammed Yasin,
It's working fine for me.
Thanks You
thumbnail
Alberto Chaparro, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
You can also use blade upgradeProps --help to verify which properties have bene moved to OSGi.
thumbnail
Nirav Prajapati, modified 5 Years ago. Regular Member Posts: 133 Join Date: 6/25/15 Recent Posts
Dear Alberto,

I will try for it.Thank You