mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-25 07:04:39 +03:00
1 parent
ad213e082d
commit
e63432883e
4 files changed
+246
No files matched your search
Vendored
+2
@@ -11,6 +11,7 @@ declare module '@vue/runtime-core' {
|
|||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
||||||
About: typeof import('./src/pages/About.vue')['default']
|
About: typeof import('./src/pages/About.vue')['default']
|
||||||
|
AdLdapSearcher: typeof import('./src/tools/ad-ldap-searcher/ad-ldap-searcher.vue')['default']
|
||||||
AiPromptSplitter: typeof import('./src/tools/ai-prompt-splitter/ai-prompt-splitter.vue')['default']
|
AiPromptSplitter: typeof import('./src/tools/ai-prompt-splitter/ai-prompt-splitter.vue')['default']
|
||||||
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
|
AlarmSoundToggle: typeof import('./src/tools/pomodoro-timer/app/components/AlarmSoundToggle.vue')['default']
|
||||||
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
AngleConverter: typeof import('./src/tools/angle-converter/angle-converter.vue')['default']
|
||||||
@@ -289,6 +290,7 @@ declare module '@vue/runtime-core' {
|
|||||||
NP: typeof import('naive-ui')['NP']
|
NP: typeof import('naive-ui')['NP']
|
||||||
NRate: typeof import('naive-ui')['NRate']
|
NRate: typeof import('naive-ui')['NRate']
|
||||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||||
|
NTable: typeof import('naive-ui')['NTable']
|
||||||
NTag: typeof import('naive-ui')['NTag']
|
NTag: typeof import('naive-ui')['NTag']
|
||||||
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
NumberInput: typeof import('./src/tools/pomodoro-timer/app/components/NumberInput.vue')['default']
|
||||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||||
|
|||||||
@@ -0,0 +1,74 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import mappingData from './ad-mapping.json';
|
||||||
|
import { useFuzzySearch } from '@/composable/fuzzySearch';
|
||||||
|
import useDebouncedRef from '@/composable/debouncedref';
|
||||||
|
|
||||||
|
const data = mappingData.map(i => ({ ...i, all: `${i.TAB} - ${i.ActiveDirectoryField}` }));
|
||||||
|
const searchQuery = useDebouncedRef('', 500);
|
||||||
|
|
||||||
|
const { searchResult } = useFuzzySearch({
|
||||||
|
search: searchQuery,
|
||||||
|
data,
|
||||||
|
options: {
|
||||||
|
keys: ['all'],
|
||||||
|
threshold: 0.2,
|
||||||
|
isCaseSensitive: false,
|
||||||
|
minMatchCharLength: 3,
|
||||||
|
useExtendedSearch: true,
|
||||||
|
filterEmpty: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div mx-auto max-w-2400px important:flex-1>
|
||||||
|
<div flex items-center gap-3>
|
||||||
|
<c-input-text
|
||||||
|
v-model:value="searchQuery"
|
||||||
|
placeholder="Search Active Directory LDAP mapping"
|
||||||
|
mx-auto max-w-600px
|
||||||
|
>
|
||||||
|
<template #prefix>
|
||||||
|
<icon-mdi-search mr-6px color-black op-70 dark:color-white />
|
||||||
|
</template>
|
||||||
|
</c-input-text>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div
|
||||||
|
v-if="searchResult.length === 0"
|
||||||
|
|
||||||
|
mt-4 text-center text-20px font-bold
|
||||||
|
>
|
||||||
|
No results
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else>
|
||||||
|
<div mt-4 text-20px font-bold>
|
||||||
|
Search result
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<n-table>
|
||||||
|
<thead>
|
||||||
|
<th>TAB</th>
|
||||||
|
<th>Active Directory Field</th>
|
||||||
|
<th>LDAP Attribute</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(result, ix) in searchResult" :key="ix">
|
||||||
|
<td>
|
||||||
|
<input-copyable :value="result.TAB" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input-copyable :value="result.ActiveDirectoryField" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input-copyable :value="result.LDAPAttribute" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</n-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "First Name",
|
||||||
|
"LDAPAttribute": "givenName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Initials",
|
||||||
|
"LDAPAttribute": "initials"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Last name",
|
||||||
|
"LDAPAttribute": "sn"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Display name",
|
||||||
|
"LDAPAttribute": "displayName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Description",
|
||||||
|
"LDAPAttribute": "description"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Office",
|
||||||
|
"LDAPAttribute": "physicalDeliveryOfficeName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Telephone number",
|
||||||
|
"LDAPAttribute": "telephoneNumber"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "E-mail",
|
||||||
|
"LDAPAttribute": "mail"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "General",
|
||||||
|
"ActiveDirectoryField": "Web page",
|
||||||
|
"LDAPAttribute": "wWWHomePage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "Street",
|
||||||
|
"LDAPAttribute": "streetAddress"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "P.O Box",
|
||||||
|
"LDAPAttribute": "postOfficeBox"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "City",
|
||||||
|
"LDAPAttribute": "l"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "State/province",
|
||||||
|
"LDAPAttribute": "St"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "Zip/Postal Code",
|
||||||
|
"LDAPAttribute": "postalCode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Address",
|
||||||
|
"ActiveDirectoryField": "County/region",
|
||||||
|
"LDAPAttribute": "co"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Account",
|
||||||
|
"ActiveDirectoryField": "User logon name",
|
||||||
|
"LDAPAttribute": "userPrincipalName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Account",
|
||||||
|
"ActiveDirectoryField": "user logon name (pre-Windows 200)",
|
||||||
|
"LDAPAttribute": "sAMAccountName"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Profile",
|
||||||
|
"ActiveDirectoryField": "Profile path",
|
||||||
|
"LDAPAttribute": "profilePath"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Profile",
|
||||||
|
"ActiveDirectoryField": "Logon script",
|
||||||
|
"LDAPAttribute": "scriptPath"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Profile",
|
||||||
|
"ActiveDirectoryField": "Local path",
|
||||||
|
"LDAPAttribute": "homeDirectory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Profile",
|
||||||
|
"ActiveDirectoryField": "Connect",
|
||||||
|
"LDAPAttribute": "homeDrive"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Telephones",
|
||||||
|
"ActiveDirectoryField": "Home",
|
||||||
|
"LDAPAttribute": "homePhone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Telephones",
|
||||||
|
"ActiveDirectoryField": "Pager",
|
||||||
|
"LDAPAttribute": "pager"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Telephones",
|
||||||
|
"ActiveDirectoryField": "Mobile",
|
||||||
|
"LDAPAttribute": "Mobile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Telephones",
|
||||||
|
"ActiveDirectoryField": "Fax",
|
||||||
|
"LDAPAttribute": "facsimileTelephoneNumber"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Telephones",
|
||||||
|
"ActiveDirectoryField": "IP Phone",
|
||||||
|
"LDAPAttribute": "ipPhone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Organization",
|
||||||
|
"ActiveDirectoryField": "Job Title",
|
||||||
|
"LDAPAttribute": "title"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Organization",
|
||||||
|
"ActiveDirectoryField": "Department",
|
||||||
|
"LDAPAttribute": "department"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Organization",
|
||||||
|
"ActiveDirectoryField": "Company",
|
||||||
|
"LDAPAttribute": "company"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Organization",
|
||||||
|
"ActiveDirectoryField": "Manager",
|
||||||
|
"LDAPAttribute": "manager"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"TAB": "Organization",
|
||||||
|
"ActiveDirectoryField": "Direct Reports",
|
||||||
|
"LDAPAttribute": "directreports"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { Folder } from '@vicons/tabler';
|
||||||
|
import { defineTool } from '../tool';
|
||||||
|
|
||||||
|
export const tool = defineTool({
|
||||||
|
name: 'ActiveDirectory LDAP properties searcher',
|
||||||
|
path: '/ad-ldap-searcher',
|
||||||
|
description: 'Search in mapping of LDAP properties and ActiveDirectory UI',
|
||||||
|
keywords: ['active', 'directory', 'ad', 'ldap', 'prop', 'searcher'],
|
||||||
|
component: () => import('./ad-ldap-searcher.vue'),
|
||||||
|
icon: Folder,
|
||||||
|
createdAt: new Date('2024-08-15'),
|
||||||
|
category: 'Forensic',
|
||||||
|
});
|
||||||
Reference in new issue
Block a user