pmcf 2.71.4 → 2.71.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.71.4",
3
+ "version": "2.71.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,12 +9,7 @@ import {
9
9
  dnsRecordTypeForAddressFamily,
10
10
  sortZoneRecords
11
11
  } from "../dns-utils.mjs";
12
- import {
13
- ExtraSourceService,
14
- Endpoint,
15
- serviceEndpoints,
16
- addresses
17
- } from "pmcf";
12
+ import { ExtraSourceService, serviceEndpoints, addresses } from "pmcf";
18
13
  import { addType } from "../types.mjs";
19
14
  import { Service, ServiceTypeDefinition } from "../service.mjs";
20
15
  import { ExtraSourceServiceTypeDefinition } from "../extra-source-service.mjs";
@@ -366,14 +361,13 @@ export class BindService extends ExtraSourceService {
366
361
 
367
362
  for (const source of sources) {
368
363
  console.log(
369
- "LOCAL DOMAINS",
370
- source.localDomains,
371
- source.domain,
372
- source.toString()
364
+ "SOURCE",
365
+ source.toString(),
366
+ [...source.localDomains].join(" ")
373
367
  );
374
368
 
375
369
  for (const domain of source.localDomains) {
376
- const locationName = source.name;
370
+ const locationName = source.location.name;
377
371
  const reverseZones = new Map();
378
372
 
379
373
  const config = {
@@ -33,8 +33,8 @@ const ChronyServiceTypeDefinition = {
33
33
  tls: false
34
34
  },
35
35
  {
36
- family: "unux",
37
- path: "/var/run/chrony/chronyd.sock"
36
+ family: "unix",
37
+ path: "/run/chrony/chronyd.sock"
38
38
  }
39
39
  ]
40
40
  }
@@ -27,7 +27,19 @@ const OpenLDAPServiceTypeDefinition = {
27
27
  writeable: true
28
28
  }
29
29
  },
30
- service: {}
30
+ service: {
31
+ extends: ["ldap"],
32
+ services: {
33
+ "ldap": {
34
+ endpoints: [
35
+ {
36
+ family: "unix",
37
+ path: "/run/ldapi"
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ }
31
43
  };
32
44
 
33
45
  export class OpenLDAPService extends Service {
@@ -268,7 +268,17 @@ export class OpenLDAPService extends Service {
268
268
  writeable: boolean;
269
269
  };
270
270
  };
271
- service: {};
271
+ service: {
272
+ extends: string[];
273
+ services: {
274
+ ldap: {
275
+ endpoints: {
276
+ family: string;
277
+ path: string;
278
+ }[];
279
+ };
280
+ };
281
+ };
272
282
  };
273
283
  _baseDN: any;
274
284
  _rootDN: any;