mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-08-19 06:47:07 +00:00
Add support for querying Active Directory sites and subnets
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/38d85472-a91b-4a98-977a-cd9ab8f43196.jpg
This commit is contained in:
@@ -105,6 +105,7 @@ const swaggerOptions = {
|
||||
enabled: { type: "boolean" },
|
||||
lastLogon: { type: "string", format: "date-time" },
|
||||
memberOf: { type: "array", items: { type: "string" } },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this object" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["user"] },
|
||||
},
|
||||
@@ -122,6 +123,7 @@ const swaggerOptions = {
|
||||
groupType: { type: "string" },
|
||||
description: { type: "string" },
|
||||
members: { type: "array", items: { type: "string" } },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this object" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["group"] },
|
||||
},
|
||||
@@ -137,6 +139,7 @@ const swaggerOptions = {
|
||||
cn: { type: "string" },
|
||||
name: { type: "string" },
|
||||
description: { type: "string" },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this object" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["organizationalUnit"] },
|
||||
},
|
||||
@@ -156,6 +159,7 @@ const swaggerOptions = {
|
||||
operatingSystemVersion: { type: "string" },
|
||||
lastLogon: { type: "string", format: "date-time" },
|
||||
enabled: { type: "boolean" },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this object" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["computer"] },
|
||||
},
|
||||
@@ -177,6 +181,41 @@ const swaggerOptions = {
|
||||
objectType: { type: "string", enum: ["domain"] },
|
||||
},
|
||||
},
|
||||
AdSite: {
|
||||
type: "object",
|
||||
properties: {
|
||||
id: { type: "integer" },
|
||||
connectionId: { type: "integer" },
|
||||
objectGUID: { type: "string" },
|
||||
distinguishedName: { type: "string" },
|
||||
cn: { type: "string" },
|
||||
name: { type: "string" },
|
||||
description: { type: "string" },
|
||||
location: { type: "string" },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this site" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["site"] },
|
||||
},
|
||||
},
|
||||
AdSubnet: {
|
||||
type: "object",
|
||||
properties: {
|
||||
id: { type: "integer" },
|
||||
connectionId: { type: "integer" },
|
||||
objectGUID: { type: "string" },
|
||||
distinguishedName: { type: "string" },
|
||||
cn: { type: "string" },
|
||||
name: { type: "string" },
|
||||
description: { type: "string" },
|
||||
siteObject: { type: "string", description: "Distinguished name of the site this subnet belongs to" },
|
||||
location: { type: "string" },
|
||||
networkAddress: { type: "string" },
|
||||
networkMask: { type: "string" },
|
||||
managedBy: { type: "string", description: "Distinguished name of the user or group managing this subnet" },
|
||||
adProperties: { type: "object" },
|
||||
objectType: { type: "string", enum: ["subnet"] },
|
||||
},
|
||||
},
|
||||
LdapAttribute: {
|
||||
type: "object",
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user