Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
PropsKeys.LDAP_AUTH_SEARCH_FILTER in Liferay 7.2
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.
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.
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
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
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 ?
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 ?
You try below method
LDAPSettingsUtil.getUserMappings(ldapServerId, companyId)
LDAPSettingsUtil.getUserMappings(ldapServerId, companyId)
Hi Mohammed Yasin,
It's working fine for me.
Thanks You
It's working fine for me.
Thanks You
You can also use blade upgradeProps --help to verify which properties have bene moved to OSGi.
Dear Alberto,
I will try for it.Thank You
I will try for it.Thank You
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™