Menu

Multi LDAP sourse

2019-07-09
2020-11-16
  • claudia leal

    claudia leal - 2019-07-09

    **
    Hello

    we have a connection to a host for active directory for users to connect
    our problem is that we need to be able to connect to other hosts through LDAP**

    $MyModuleSettings = array(
    'authent-ldap' => array (
    'host' => 'dcxaluv.xalapa.intra.uv.mx',
    'port' => 389,
    'default_user' => 'xalapa\mesadeservicios',
    'default_pwd' => '**',
    'base_dn' => 'dc=xalapa,dc=intra,dc=uv,dc=mx',
    'user_query' => '(samaccountname=%1$s)',
    'options' => array (
    17 => 3,
    8 => 0,
    ),
    'start_tls' => false,
    'debug' => false,
    ),

    **we need to also connect to the next host **

        'host' => 'dcestuv04.estudiantes.intra.uv.mx',
        'port' => 389,
        'default_user' => 'xalapa\\mesadeservicios',
        'default_pwd' => '******',
        'base_dn' => 'dc=estudiantes,dc=intra,dc=uv,dc=mx',
    

    ** We tried with the following code and it did not work**

        $MyModuleSettings = array(
    
    // other params
    
    'knowitop-multi-ldap-auth' => array(
        'ldap_settings' => array(
            'your_ldap_config_name' => // <-- Settings defined by default, you are free to change, rename or remove it
                array(
                    'host' => 'dcxaluv.xalapa.intra.uv.mx',
                    'port' => 389,
                    'default_user' => 'xalapa\\mesadeservicios',
                    'default_pwd' => '*******',
                    'base_dn' => 'dc=xalapa,dc=intra,dc=uv,dc=mx'',
                    'user_query' => '(&(uid=%1$s)(inetuserstatus=ACTIVE))',
                    'options' =>
                        array(
                            17 => 3,
                            8 => 0,
                        ),
                    'start_tls' => false,
                ),
            'other_config' => // <-- Add your second LDAP settings named 'other_config' for example
                array(
                    'host' => 'dcestuv04.estudiantes.intra.uv.mx',
                    'port' => 389,
                    'default_user' => 'xalapa\\mesadeservicios',
                    'default_pwd' => '******',
                    'base_dn' => 'dc=estudiantes,dc=intra,dc=uv,dc=mx',
                    'user_query' => '(&(uid=%1$s)(inetuserstatus=ACTIVE))',
                    'options' =>
                        array(
                            17 => 3,
                            8 => 0,
                        ),
                    'start_tls' => false,
                ),
              // <-- Add your third and others LDAP settings here if needed
        ),
    ),
    

    );

    **help :( **

     
  • Pierre Goiffon

    Pierre Goiffon - 2019-07-11

    Hello,
    This is not implemented yet... but this request was made a long time ago !
    See [#982]

     
    👍
    1

    Related

    Tickets: #982


    Last edit: Pierre Goiffon 2019-07-11
  • Nikola Milanov

    Nikola Milanov - 2020-11-16

    Hi there,
    I'm also interested in configure my iTop for multiple LDAP authorization.
    Also tried "knowitop-multi-ldap-auth" but cannot make it work.
    I've manage to synchronize between 2 LDAP servers using "Data collector for LDAP" and iTop but can't authenticate against them.
    Is there any way to perform multi LDAP authentication?

    Cheers

     

Log in to post a comment.

MongoDB Logo MongoDB