• Resolved datoby

    (@datoby)


    Hi we ware using Authorizer and the External LDAP Connection.
    For now we search the complete directory of LDAP.
    We create a LDAP group and would like only to read the users from this group for login. Any support for this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter datoby

    (@datoby)

    Or the better request for this is. How to filter the ldap group?
    Thanks.

    Plugin Author Paul Ryan

    (@figureone)

    Aloha, you can hook into authorizer_ldap_search_filter to make a more restrictive LDAP filter. See here for details:
    https://wordpress.org/support/topic/test-connection-button-and-filtering-ldap/

    By default the search filter is (|(uid=$username)(mail=$username)) so you can modify that to anything you like, for example:

    (&
      (|(uid=$username)(mail=$username))
      (memberOf=cn=your-group,ou=groups,dc=example,dc=edu)
    )

    In the future we expect to add a field to the settings page so you can do this without using a filter hook.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Authorizer / LDAP / Searchbase with Group’ is closed to new replies.