Configure Flexible LDAP Filter

Contents

1Introduction
1.1Prerequisites

2

Procedure

1   Introduction

This document describes how to configure an arbitrary LDAP search filter when querying the LDAP server. Such change can be triggered by the organization security policy.

1.1   Prerequisites

This section describes the prerequisites, which must be fulfilled before using the procedure.

1.1.1   Conditions

The following conditions must apply:

2   Procedure

To configure flexible LDAP filter:

  1. Navigate to the Ldap Managed Object (MO), for example:

    >dn ManagedElement=NODE06ST,SystemFunctions=1,SecM=1,UserManagement=1,LdapAuthenticationMethod=1,Ldap=1

  2. Enter Config mode:

    (Ldap=1)>configure

  3. Configure flexible filtering in Ldap MO:

    (config-Ldap=1)>profileFilter=FLEXIBLE

Configure the Filter MO

  1. Navigate to the Filter MO, for example:

    (config-Ldap=1)>Filter=1

  2. Configure the arbitrary LDAP search expression, for example:

    (config-Filter=1)>filter="(&(objectClass=posixAccount)(uid=<UID>))"

  3. Configure the LDAP return attribute, for example:

    (config-Filter=1)>type="cn"

  4. Commit the settings:

    (config-Filter=1)>commit

  5. Verify the result:

    (Filter=1)>show -r ..

    The following is an example output:

    Ldap=1
       baseDn="dc=my-domain,dc=com"
       fallbackLdapIpAddress="192.168.0.11"
       ldapIpAddress="192.168.0.10"
       profileFilter=FLEXIBLE
       useTls=false
       Filter=1
          filter="(&(objectClass=posixAccount)(uid=<UID>))"
          type="cn"
    (Filter=1)>



Copyright

© Ericsson AB 2016. All rights reserved. No part of this document may be reproduced in any form without the written permission of the copyright owner.

Disclaimer

The contents of this document are subject to revision without notice due to continued progress in methodology, design and manufacturing. Ericsson shall have no liability for any error or damage of any kind resulting from the use of this document.

Trademark List
All trademarks mentioned herein are the property of their respective owners. These are shown in the document Trademark Information.

    Configure Flexible LDAP Filter