[Bot] [Discussion] [PR #16059] feat(minor): Add Custom Group Search for custom LDAP servers

Testing Site URL: https://gh-imp-2022-00370.castlecraft.co.in

Pull Request URL: https://github.com/frappe/frappe/pull/16059
Pull Request Title: feat(minor): Add Custom Group Search for custom LDAP servers
Pull Request Description:

When using a custom LDAP server (not AD/OpenLDAP) it may be necessary to specify a custom search group. For example this is the case when using Okta.

148265357-b73c61ec-94c8-4112-8ee9-306ae80b27ec

This configuration is needed for e.g. Okta where the dn is stored like this: uniqueMember: uid=andreas,ou=users,dc=example,dc=okta,dc=com.

Currently the group search query would always look like the following: (&(objectClass=groupOfUniqueNames)(uniqueMember=andreas)).

With the new changes it is possible to adjust the search query to this: (&(objectClass=groupOfUniqueNames)(uniqueMember=uid=andreas,ou=users,dc=example,dc=okta,dc=com)).

If the field is left empty, the behaviour won't change and just the uid will be queried.

--

Re of https://github.com/frappe/frappe/pull/15629