Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup Base-DN from connection #22

Open
Xenokrates opened this issue Sep 1, 2021 · 0 comments
Open

Lookup Base-DN from connection #22

Xenokrates opened this issue Sep 1, 2021 · 0 comments

Comments

@Xenokrates
Copy link
Collaborator

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);
                } 
            });
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant