Skip to content

Lookup Base-DN from connection #22

@Xenokrates

Description

@Xenokrates

It would be a nice enhancement to pre-fill the Base-DN automatically with a lookup for the connection.

  • The Base-DN for the connection can be looked up with the method getRootDSEin the activedirectory2package. See https://www.npmjs.com/package/activedirectory2#getRootDSE

  • In all .html files the oneditprepare event handler can be used to set a handler for the change events of the #node-input-configName can be used to pre-fill the #node-input-baseDN

Somethng like:

oneditprepare: function() {
            $("#node-input-configName").change(function() {
                if ( <CONNECTION CHANGED> && <#node-inputbaseDN IS EMPTY>) {
                    // Lookup Base-DN with getRootDSE
                   ...
                   $(#node-input-baseDN).val(rootDse);
                } 
            });
        }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions