90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley<!-- Copyright 2015 ForgeRock AS.
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley License terms: https://forgerock.org/cddlv1-0/ -->
a1f2a469964efe95acf576a3fb6ba2636600cdaaJason Browne{{#unless editState}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-heading" role="tab" id="ldapSelectionHeading">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#ldapSelection" aria-expanded="true" aria-controls="ldapSelectionHeading" class="">{{t "templates.connector.ldapConnector.ldapType"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="ldapSelection" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ldapSelection" aria-expanded="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label for="ldapTemplateType" class="col-sm-3 control-label">{{t "templates.connector.ldapConnector.ldapType"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <select name="enable" class="form-control" data-validator="required" data-validator-event="changed" id="ldapTemplateType">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne {{#each ldapSelector}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <option value="{{fileName}}">{{displayName}}</option>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-heading" role="tab" id="connectorSpecificBaseHeading">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#connectorSpecificBase" aria-expanded="true" aria-controls="connectorSpecificBaseHeading" class="">{{t "templates.connector.baseTitle"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="connectorSpecificBase" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="connectorSpecificBase" aria-expanded="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="col-sm-3 control-label" for="ldapHost">{{t "templates.connector.ldapConnector.host"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" type="text" id="ldapHost" name="configurationProperties.host" value="{{connectorDefaults.configurationProperties.host}}" data-validator-event="keyup blur" data-validator="required" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <span class="error form-control-feedback"><i class='fa validation-icon'></i></span>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="form-group has-feedback separate-message" style="display:none" id="certContainer">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <textarea id="certificate" name="certificate" class="form-control certificate" placeholder="{{t "templates.connector.ldapConnector.certificateHint"}}" data-validator="certificate" data-validator-event="keyup change blur">{{publicKey}}</textarea>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label for="port" class="control-label col-sm-3">{{t "templates.connector.ldapConnector.port"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="input-group col-sm-7 ldap-port-group">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input id="port" aria-describedby="ssl-addon" data-validator-event="keyup blur" data-validator="required" class="form-control" autocomplete="off" type="text" name="configurationProperties.port" value="{{connectorDefaults.configurationProperties.port}}" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input id="ssl" autocomplete="off" type="checkbox" name="configurationProperties.ssl" {{#if connectorDefaults.configurationProperties.ssl}} checked{{/if}} value="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label for="ssl">{{t "templates.connector.ldapConnector.ssl"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a href="#" id="toggleCert" style="display:none;">{{t "templates.connector.ldapConnector.showCert"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="col-sm-3 control-label" for="ldapPrincipal">{{t "templates.connector.ldapConnector.username"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" type="text" id="ldapPrincipal" name="configurationProperties.principal" placeholder="{{t "templates.connector.ldapConnector.usernamePlaceholder"}}" value="{{connectorDefaults.configurationProperties.principal}}" data-validator-event="keyup blur" data-validator="required" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <span class="error form-control-feedback"><i class='fa validation-icon'></i></span>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="col-sm-3 control-label" for="credentials">{{t "templates.connector.ldapConnector.password"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" type="password" id="credentials" name="configurationProperties.credentials" value="" {{#if connectorDefaults.configurationProperties.credentials}} placeholder="********" {{/if}} />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-heading" role="tab" id="ldapBaseContextHeading">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#ldapBaseContext" aria-expanded="true" aria-controls="ldapBaseContextHeading" class="">{{t "templates.connector.ldapConnector.baseContextTitle"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="ldapBaseContext" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ldapBaseContext" aria-expanded="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-body connector-array-component" id="baseContextWrapper">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <p>{{t "templates.connector.ldapConnector.baseContextNote"}}</p>
224e5e9074e5c16633c47aa2870442790c8f4b69Jason Browne <button type="button" field_type="baseContext" id="addBaseContextButton" name="addBaseContextButton" class="btn btn-primary add-btn"><i class="fa fa-plus"></i><span>{{t "templates.connector.ldapConnector.baseContextAdd"}}</span></button>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne {{#if connectorDefaults.configurationProperties.baseContexts.length}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne {{#each_with_index connectorDefaults.configurationProperties.baseContexts}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.baseContext"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.baseContexts[]" placeholder="cn=Users,dc=company,dc=com" value="{{value}}" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="baseContext" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne {{/each_with_index}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.baseContext"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.baseContexts[]" placeholder="cn=Users,dc=company,dc=com" value="" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="baseContext" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <p>{{t "templates.connector.ldapConnector.syncMessage"}} <input {{#if baseContextsSameResults}}checked{{/if}} type="checkbox" id="syncBaseContext"></p>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse" id="baseContextsToSynchronizeHolder" {{#if baseContextsSameResults}} style="display:none;" {{/if}}>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#baseContextsToSynchronize" aria-expanded="true" aria-controls="baseContextsToSynchronizeHeading" class="">{{t "templates.connector.ldapConnector.baseContextSyncTitle"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="baseContextsToSynchronize" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="ldapBaseContext" aria-expanded="true">
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <div class="panel-body connector-array-component" id="baseContextsToSynchronizeWrapper">
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <p>{{t "templates.connector.ldapConnector.baseContextToSyncNote"}}</p>
224e5e9074e5c16633c47aa2870442790c8f4b69Jason Browne <button type="button" field_type="baseContextsToSynchronize" id="addBaseContextToSynchronizeButton" name="addBaseContextButton" class="btn btn-primary add-btn"><i class="fa fa-plus"></i><span>{{t "templates.connector.ldapConnector.baseContextAdd"}}</span></button>
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne {{#if connectorDefaults.configurationProperties.baseContextsToSynchronize.length}}
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne {{#each_with_index connectorDefaults.configurationProperties.baseContextsToSynchronize}}
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.baseContextToSync"}}</label>
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.baseContextsToSynchronize[]" placeholder="cn=Users,dc=company,dc=com" value="{{value}}" />
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <button field_type="baseContextsToSynchronize" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne {{/each_with_index}}
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.baseContextToSync"}}</label>
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.baseContextsToSynchronize[]" placeholder="cn=Users,dc=company,dc=com" value="" />
d95cbf5bcc3a12f753ca622e59589ff79539c6d0Jason Browne <button field_type="baseContextsToSynchronize" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#accountObject" aria-expanded="true" aria-controls="accountObjectHeading" class="">{{t "templates.connector.ldapConnector.addUsersTitle"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="accountObject" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="accountObjectClassesWrapper" aria-expanded="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-body connector-array-component" id="accountObjectClassesWrapper">
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth <label class="control-label col-sm-3" >{{t "templates.connector.ldapConnector.accountSearchFilter"}}</label>
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth autocomplete="off"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth id="accountSearchFilter"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth name="configurationProperties.accountSearchFilter"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth placeholder="{{t "templates.connector.ldapConnector.noFilter"}}"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth value="{{connectorDefaults.configurationProperties.accountSearchFilter}}">
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth <div class="input-group-modal-btn input-group-btn">
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth <button class="clean-btn filter" data-toggle="modal" type="button">
224e5e9074e5c16633c47aa2870442790c8f4b69Jason Browne <button type="button" field_type="accountObjectClasses" id="addAccountObjectClassesButton" name="addAccountObjectClassesButton" class="btn btn-primary add-btn"><i class="fa fa-plus"></i><span>{{t "templates.connector.ldapConnector.addAccountObjectClasses"}}</span></button>
ea60401138837cc7fa920f5e91dbfa29c8714b6fJason Browne {{#if connectorDefaults.configurationProperties.accountObjectClasses.length}}
789838375a43a761d34ba314fe26ecfb02a8dedeJason Browne {{#each_with_index connectorDefaults.configurationProperties.accountObjectClasses}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.accountObjectClasses"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.accountObjectClasses[]" placeholder="Account" value="{{value}}" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="accountObjectClasses" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
789838375a43a761d34ba314fe26ecfb02a8dedeJason Browne {{/each_with_index}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.accountObjectClasses"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" data-validator-event="keyup blur" data-validator="required" autocomplete="off" type="text" name="configurationProperties.accountObjectClasses[]" placeholder="Account" value="" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="accountObjectClasses" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne<div class="panel panel-default panel-collapse">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <a data-toggle="collapse" href="#groupObject" aria-expanded="true" aria-controls="groupObjectHeading" class="">{{t "templates.connector.ldapConnector.addGroupTitle"}}</a>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div id="groupObject" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="groupObjectClassesWrapper" aria-expanded="true">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <div class="panel-body connector-array-component" id="groupObjectClassesWrapper">
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">Group Filter</label>
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth autocomplete="off"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth id="groupSearchFilter"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth placeholder="{{t "templates.connector.ldapConnector.noFilter"}}"
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth value="{{connectorDefaults.configurationProperties.groupSearchFilter}}">
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth <div class="input-group-modal-btn input-group-btn">
16b4cb1469990b115c513b6534cbc4ee46688c3bElizabeth <button class="clean-btn filter" data-toggle="modal" type="button">
224e5e9074e5c16633c47aa2870442790c8f4b69Jason Browne <button type="button" field_type="groupObjectClasses" id="addGroupObjectClassesButton" name="addGroupObjectClassesButton" class="btn btn-primary add-btn"><i class="fa fa-plus"></i><span>{{t "templates.connector.ldapConnector.addGroupObjectClasses"}}</span></button>
ea60401138837cc7fa920f5e91dbfa29c8714b6fJason Browne {{#if connectorDefaults.configurationProperties.groupObjectClasses.length}}
789838375a43a761d34ba314fe26ecfb02a8dedeJason Browne {{#each_with_index connectorDefaults.configurationProperties.groupObjectClasses}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.groupObjectClasses"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" data-validator-event="keyup blur" autocomplete="off" type="text" name="configurationProperties.groupObjectClasses[]" placeholder="Group" value="{{value}}" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="groupObjectClasses" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>
789838375a43a761d34ba314fe26ecfb02a8dedeJason Browne {{/each_with_index}}
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <label class="control-label col-sm-3">{{t "templates.connector.ldapConnector.groupObjectClasses"}}</label>
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <input class="form-control" autocomplete="off" type="text" name="configurationProperties.groupObjectClasses[]" placeholder="Group" value="" />
f1927bad0ee17cd0515dea9e1f68126e8d5c135cJason Browne <button field_type="groupObjectClasses" class="clean-btn remove-btn"><i class="fa fa-lg fa-times-circle"></i></button>