Skip to content

Commit

Permalink
Create IPAUser node
Browse files Browse the repository at this point in the history
  • Loading branch information
DrieVlad committed Sep 27, 2024
1 parent 0d36459 commit 0f589d6
Show file tree
Hide file tree
Showing 7 changed files with 1,125 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Menu/MenuContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const IngestFuncMap = {
ous: NewIngestion.buildOuJsonNew,
gpos: NewIngestion.buildGpoJsonNew,
containers: NewIngestion.buildContainerJsonNew,
IPAcomputers: NewIngestion.buildIPAComputerJsonNew,
IPAusers: NewIngestion.buildIPAUserJsonNew,
azure: NewIngestion.convertAzureData,
};

Expand Down
6 changes: 6 additions & 0 deletions src/components/SearchContainer/SearchRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const SearchRow = ({ item, search }) => {
case 'Container':
icon.className = 'fa fa-box'
break
case 'IPAUser':
icon.className = 'fa fa-user';
break;
case 'IPAComputer':
icon.className = 'fa fa-desktop';
break;
case 'AZUser':
icon.className = 'fa fa-user';
break;
Expand Down
29 changes: 29 additions & 0 deletions src/components/SearchContainer/TabContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import ComputerNodeData from './Tabs/ComputerNodeData';
import DomainNodeData from './Tabs/DomainNodeData';
import GpoNodeData from './Tabs/GPONodeData';
import OuNodeData from './Tabs/OUNodeData';
import IPAUserNodeData from './Tabs/IPAUserNodeData';
import IPAComputerNodeData from './Tabs/IPAHostNodeData';
import AZGroupNodeData from './Tabs/AZGroupNodeData';
import AZUserNodeData from './Tabs/AZUserNodeData';
import AZContainerRegistryNodeData from './Tabs/AZContainerRegistryNodeData';
Expand Down Expand Up @@ -49,6 +51,8 @@ class TabContainer extends Component {
gpoVisible: false,
ouVisible: false,
containerVisible: false,
IPAuserVisible: false,
IPAcomputerVisible: false,
azGroupVisible: false,
azUserVisible: false,
azContainerRegistryVisible: false,
Expand Down Expand Up @@ -94,6 +98,10 @@ class TabContainer extends Component {
this._ouNodeClicked();
} else if (type === 'GPO') {
this._gpoNodeClicked();
} else if (type === 'IPAComputer') {
this._computerNodeClicked();
} else if (type === 'IPAUser') {
this._computerNodeClicked();
} else if (type === 'AZGroup') {
this._azGroupNodeClicked();
} else if (type === 'AZUser') {
Expand Down Expand Up @@ -225,6 +233,23 @@ class TabContainer extends Component {
});
}


_IPAuserNodeClicked() {
this.clearVisible()
this.setState({
userVisible: true,
selected: 2
});
}

_IPAcomputerNodeClicked() {
this.clearVisible()
this.setState({
computerVisible: true,
selected: 2
});
}

_azGroupNodeClicked() {
this.clearVisible()
this.setState({
Expand Down Expand Up @@ -405,6 +430,8 @@ class TabContainer extends Component {
!this.state.domainVisible &&
!this.state.gpoVisible &&
!this.state.ouVisible &&
!this.state.IPAuserVisible &&
!this.state.IPAcomputerVisible &&
!this.state.azGroupVisible &&
!this.state.azUserVisible &&
!this.state.azContainerRegistryVisible &&
Expand Down Expand Up @@ -437,6 +464,8 @@ class TabContainer extends Component {
<GpoNodeData visible={this.state.gpoVisible} />
<OuNodeData visible={this.state.ouVisible} />
<ContainerNodeData visible={this.state.containerVisible} />
<IPAComputerNodeData visible={this.state.IPAcomputerVisible} />
<IPAUserNodeData visible={this.state.IPAuserVisible} />
<AZGroupNodeData visible={this.state.azGroupVisible} />
<AZUserNodeData visible={this.state.azUserVisible} />
<AZContainerRegistryNodeData visible={this.state.azContainerRegistryVisible} />
Expand Down
Loading

0 comments on commit 0f589d6

Please sign in to comment.