All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.0c1a66a2-52.1ec71fc30880f2142b45.js Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["0c1a66a2-52"],{"2TD2+lWq":function(e,t,n){"use strict";n.r(t);var a=n("ii0bleBb"),r=n.n(a),o=n("ivGQtwpr"),i=n.n(o),l=n("PcYM+wZ7"),s=n.n(l),c=n("qoq4u5Uq"),u=n("mc0qlNhN"),p=n("dOmQZ9N/"),m=n("AztyBNMT"),d=n("oBIKikY9");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n0?i.a.createElement("dl",null,u):i.a.createElement("p",null,"LDAP server did not return any attributes for the user."),m=e.result.groups?e.result.groups.map((function(e){return i.a.createElement("li",{key:e},e)})):[],d=m.length>0?i.a.createElement("ul",{style:{padding:0}},m):i.a.createElement("p",null,"LDAP server did not return any groups for the user.");return i.a.createElement(c.I,null,i.a.createElement(c.h,{sm:9,smOffset:3},i.a.createElement(ne,{header:l,bsStyle:s},i.a.createElement("ul",{className:"login-status"},i.a.createElement("li",null,i.a.createElement("h4",null,"User found ",n)),i.a.createElement("li",null,i.a.createElement("h4",null,"Login attempt ",a))),r&&i.a.createElement("h4",null,"Server response"),r,i.a.createElement("h4",null,"User's LDAP attributes"),p,i.a.createElement("h4",null,"User's LDAP groups"),d)))})),t.state={loginUser:"",loginPassword:"",loginStatus:{}},t}return t=o,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.ldapSettings;JSON.stringify(t)!==JSON.stringify(e.ldapSettings)&&this.setState({loginStatus:{}})}},{key:"render",value:function(){var e=this.state,t=e.loginStatus,n=e.loginUser,a=e.loginPassword,r=this.props.disabled,o=r||!n||t.loading,l=function(e){e.key&&"Enter"===e.key&&e.preventDefault()};return i.a.createElement("div",null,i.a.createElement(T.d,{id:"test_login_input",labelClassName:"col-sm-3",wrapperClassName:"col-sm-9",label:"Login test",help:"Verify the previous settings by loading the entry for the given user name. If you omit the password, no authentication attempt will be made."},i.a.createElement(c.I,{className:"row-sm"},i.a.createElement(c.h,{sm:5},i.a.createElement("input",{type:"text",id:"test_login_username",name:"test_login_username",className:"form-control",value:n,onChange:this._changeLoginForm,onKeyPress:l,placeholder:"Username for login test",disabled:r})),i.a.createElement(c.h,{sm:5},i.a.createElement("input",{type:"password",id:"test_login_password",name:"test_login_password",className:"form-control",value:a,onChange:this._changeLoginForm,onKeyPress:l,placeholder:"Password",disabled:r})),i.a.createElement(c.h,{sm:2},i.a.createElement(c.c,{bsStyle:this._loginTestButtonStyle(),disabled:o,onClick:this._testLogin},t.loading?"Testing...":"Test login")))),this._formatLoginStatus(t))}}])&&J(t.prototype,n),a&&J(t,a),o}(i.a.Component);ee(re,"propTypes",{ldapSettings:r.a.object.isRequired,disabled:r.a.bool}),ee(re,"defaultProps",{disabled:!1});var oe=re,ie=n("uoFyQlVv"),le=n.n(ie);function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n0&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Me,null,"Previously configured group mapping"),i.a.createElement("p",null,"Some LDAP groups not matching your current settings were previously assigned Graylog roles. ",i.a.createElement("strong",null,"This mapping is still active for users logging into Graylog until you remove it.")),this._renderGroupMappingInputs(u,l))),i.a.createElement(c.h,{md:10,mdPush:2},i.a.createElement(c.c,{type:"submit",bsStyle:"primary",className:"save-button-margin"},"Save"),i.a.createElement(c.c,{onClick:o},"Cancel"))))}}])&&Re(t.prototype,n),a&&Re(t,a),o}(i.a.Component);xe(Be,"propTypes",{ldapSettings:r.a.object.isRequired,onCancel:r.a.func.isRequired,onShowConfig:r.a.func.isRequired});var qe=Object(Pe.a)(Be,{ldapStore:Ue},(function(e){var t=e.ldapStore;return function(e){for(var t=1;t=e.realm_order.length},_noActiveRealmWarning:function(){return this._hasNoActiveRealm()?i.a.createElement(c.a,{bsStyle:"danger"},i.a.createElement("strong",null,"ERROR:")," No active authentication provider!"):null},_summary:function(){var e=this.state.config,t=this.props.descriptors;return e.realm_order.map((function(n,a){var r=e.disabled_realms.filter((function(e){return e===n})).length>0?"disabled":"active",o=t[n]||{id:n,title:"Unavailable"};return i.a.createElement("tr",{key:n.replace(/[\W_]+/g,"")},i.a.createElement("td",null,a+1),i.a.createElement("td",null,o.displayName),i.a.createElement("td",null,o.description),i.a.createElement("td",null,r))}))},_sortableItems:function(){var e=this.state.config,t=this.props.descriptors;return e.realm_order.map((function(e){var n=t[e]||{id:e,title:"Unavailable"};return{id:n.name,title:n.displayName}}))},_statusForm:function(){var e=this,t=this.state.config,n=this.props.descriptors;return W.a.clone(t.realm_order).sort((function(e,t){return D()(e.displayName,t.displayName)})).map((function(a){var r=t.disabled_realms.filter((function(e){return e===a})).length<1,o=n[a]||{id:a,displayName:"Unavailable"};return i.a.createElement("tr",{key:o.displayName.replace(/[\W_]+/g,"")},i.a.createElement("td",null,o.displayName),i.a.createElement("td",null,i.a.createElement("input",{ref:function(t){e.inputs[o.name]=t},type:"checkbox",checked:r,disabled:!o.canBeDisabled,onChange:e._toggleStatus(o.name)})))}))},render:function(){var e=this;return i.a.createElement(d.i,{title:"Authentication Providers"},i.a.createElement("span",null,i.a.createElement(d.A,{title:"Authentication Providers",subpage:!0},i.a.createElement("span",null,"The following authentication providers executed in order during login. Disabled providers will be skipped.",i.a.createElement("br",null),"A user is authenticated by the first matching provider, a successful match can cause a Graylog account for this user to be created.")),i.a.createElement(c.I,null,i.a.createElement(d.s,{permissions:["clusterconfigentry:read","authentication:read"]},i.a.createElement(c.h,{md:6},i.a.createElement(c.L,{striped:!0,bordered:!0,className:"top-margin"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"#"),i.a.createElement("th",null,"Provider"),i.a.createElement("th",null,"Description"),i.a.createElement("th",null,"Status"))),i.a.createElement("tbody",null,this._summary())),i.a.createElement(d.s,{permissions:["clusterconfigentry:edit","authentication:edit"]},i.a.createElement(c.c,{bsStyle:"primary",onClick:this._openModal,className:"save-button-margin"},"Edit"),i.a.createElement(c.c,{onClick:this._onCancel},"Cancel")),i.a.createElement(st.a,{ref:function(t){e.configModal=t},title:"Update Authentication Provider Configuration",onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,submitButtonText:"Save"},i.a.createElement("h3",null,"Order"),i.a.createElement("p",null,"Use drag and drop to change the execution order of the authentication providers."),i.a.createElement(d.J,{items:this._sortableItems(),onMoveItem:this._updateSorting}),i.a.createElement("h3",null,"Status"),i.a.createElement("p",null,"Change the checkboxes to change the status of an authentication provider."),i.a.createElement(c.L,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",null,"Provider"),i.a.createElement("th",null,"Enabled"))),i.a.createElement("tbody",null,this._statusForm())),this._noActiveRealmWarning()))))))}}),ut=L.a.getActions("Authentication"),pt=lt.a.getStore("Authentication"),mt=lt.a.getStore("CurrentUser"),dt=Object(Y.default)(c.h).withConfig({displayName:"AuthenticationComponent__SubNavigationCol",componentId:"sc-1lbdpcq-0"})((function(e){var t=e.theme;return"\n  border-right: ".concat(t.color.gray[80]," solid 1px;\n")})),ft=Object(Y.default)(c.h).withConfig({displayName:"AuthenticationComponent__ContentPaneCol",componentId:"sc-1lbdpcq-1"})((function(e){var t=e.theme;return"\n  border-left: ".concat(t.color.gray[80]," solid 1px;\n  margin-left: -1px;\n")})),ht=Object(Y.default)(c.A).withConfig({displayName:"AuthenticationComponent__NavItemDivider",componentId:"sc-1lbdpcq-2"})((function(e){var t=e.theme;return"\n  border-bottom: ".concat(t.color.gray[80]," solid 1px;\n")})),gt=s()({displayName:"AuthenticationComponent",propTypes:{params:r.a.object.isRequired,children:r.a.element},mixins:[ot.a.connect(pt),ot.a.connect(mt),p.a],getDefaultProps:function(){return{children:null}},componentDidMount:function(){var e=this;ut.load(),m.PluginStore.exports("authenticatorConfigurations").forEach((function(t){e.authenticatorConfigurations[t.name]=t}))},authenticatorConfigurations:{},_pluginPane:function(){var e=this.props.params,t=this.authenticatorConfigurations[e.name];return t?i.a.createElement(t.component,{key:"auth-configuration-".concat(e.name)}):i.a.createElement(c.a,{bsStyle:"danger"},"Plugin component missing for authenticator ",i.a.createElement("code",null,e.name),", this is an error.")},_onUpdateProviders:function(e){return ut.update("providers",e)},_contentComponent:function(){var e=this.state.authenticators,t=this.props.params;return e?void 0===t.name?i.a.createElement(ct,{config:e,descriptors:this.authenticatorConfigurations,updateConfig:this._onUpdateProviders}):this._pluginPane():i.a.createElement(d.L,null)},render:function(){var e=this,t=this.state,n=t.authenticators,a=t.currentUser,r=this.props.children,o=[];n?this.isPermitted(a.permissions,["authentication:edit"])&&((o=n.realm_order.map((function(t,n){var a=(e.authenticatorConfigurations[t]||{displayName:t}).displayName,r="".concat(n+1,". ").concat(a);return i.a.createElement(it.LinkContainer,{key:"container-".concat(t),to:Fe.a.SYSTEM.AUTHENTICATION.PROVIDERS.provider(t)},i.a.createElement(c.A,{key:t,title:r},r))}))).unshift(i.a.createElement(ht,{key:"divider",disabled:!0,title:"Provider Settings"},"Provider Settings")),o.unshift(i.a.createElement(it.LinkContainer,{key:"container-settings",to:Fe.a.SYSTEM.AUTHENTICATION.PROVIDERS.CONFIG},i.a.createElement(c.A,{key:"settings",title:"Configure Provider Order"},"Configure Provider Order")))):o=[i.a.createElement(c.A,{key:"loading",disabled:!0,title:"Loading..."},"Loading...")],this.isPermitted(a.permissions,["roles:read"])&&o.unshift(i.a.createElement(it.LinkContainer,{key:"roles",to:Fe.a.SYSTEM.AUTHENTICATION.ROLES},i.a.createElement(c.A,{title:"Roles"},"Roles"))),this.isPermitted(a.permissions,["users:list"])&&o.unshift(i.a.createElement(it.LinkContainer,{key:"users",to:Fe.a.SYSTEM.AUTHENTICATION.USERS.LIST},i.a.createElement(c.A,{title:"Users"},"Users"))),0===o.length&&(o=[i.a.createElement(it.LinkContainer,{key:"profile-edit",to:Fe.a.SYSTEM.AUTHENTICATION.USERS.edit(encodeURIComponent(a.username))},i.a.createElement(c.A,{title:"Edit Profile"},"Edit Profile")),i.a.createElement(it.LinkContainer,{key:"profile-edit-tokens",to:Fe.a.SYSTEM.AUTHENTICATION.USERS.TOKENS.edit(encodeURIComponent(a.username))},i.a.createElement(c.A,{title:"Edit Tokens"},"Edit Tokens"))]);var l=i.a.createElement(c.y,{stacked:!0,bsStyle:"pills"},o),s=1===i.a.Children.count(r)?i.a.Children.only(r):this._contentComponent();return i.a.createElement(c.I,null,i.a.createElement(dt,{md:2},l),i.a.createElement(ft,{md:10},s))}}),yt=s()({displayName:"AuthenticationPage",propTypes:{children:r.a.object,location:r.a.object.isRequired,params:r.a.object.isRequired},mixins:[p.a],render:function(){return i.a.createElement("span",null,i.a.createElement(nt.a,{title:"Authentication Management"},i.a.createElement("span",null,"Configure Graylog's authentication providers and manage the active users of this Graylog cluster."),i.a.createElement("span",null,"Read more authentication in the ",i.a.createElement(at.a,{page:u.a.PAGES.USERS_ROLES,text:"documentation"}),".")),i.a.createElement(c.I,{className:"content"},i.a.createElement(c.h,{md:12},i.a.createElement(gt,{location:this.props.location,params:this.props.params},this.props.children))))}});t.default=yt},cXNGH5ag:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s}));var a=n("2gEPIf6i"),r=n.n(a),o=n("8FtKQWAV"),i=n.n(o);function l(e,t,n){var a=n||"asc",o=r()(e),i=r()(t);return"asc"===a?o.isBefore(i)?-1:i.isBefore(o)?1:0:i.isBefore(o)?-1:o.isBefore(i)?1:0}function s(e,t,n){return"asc"===(n||"asc")?i()(e.toLowerCase(),t.toLowerCase()):i()(t.toLowerCase(),e.toLowerCase())}},"u++L0Trl":function(e,exports,t){(exports=e.exports=t("wTjlWjHz")(!1)).push([e.i,"._3G8z_IybCp1JuEj6El2vKB{font-size:14px;margin-right:12px}",""]),exports.locals={passwordSet:"_3G8z_IybCp1JuEj6El2vKB"}},uoFyQlVv:function(e,exports,t){var n=t("u++L0Trl");"string"==typeof n&&(n=[[e.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};t("HkU00dYq")(n,a);n.locals&&(e.exports=n.locals)}}]);
//# sourceMappingURL=0c1a66a2-52.1ec71fc30880f2142b45.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy