pmcf 6.6.0 → 6.7.1
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 +1 -1
- package/src/base.mjs +18 -2
- package/src/services/bind.mjs +0 -17
- package/src/services/openldap.mjs +8 -0
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -92,6 +92,14 @@ export class Base {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
materializeExtends() {
|
|
95
|
+
/*
|
|
96
|
+
console.log(
|
|
97
|
+
"materializeExtends",
|
|
98
|
+
this.fullName,
|
|
99
|
+
this.owner?.fullName,
|
|
100
|
+
[...this.extends].map(n => n.fullName)
|
|
101
|
+
);*/
|
|
102
|
+
|
|
95
103
|
for (const [path, attribute] of extendingAttributeIterator(
|
|
96
104
|
this.constructor,
|
|
97
105
|
attribute => attribute.collection && !attribute.type.primitive
|
|
@@ -441,9 +449,17 @@ export class Base {
|
|
|
441
449
|
return new Set(allOutputs.filter(o => this.packaging.has(o.name)));
|
|
442
450
|
}
|
|
443
451
|
|
|
452
|
+
get systemUserName() {
|
|
453
|
+
return this.constructor.name;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
get systemGroupName() {
|
|
457
|
+
return this.constructor.name;
|
|
458
|
+
}
|
|
459
|
+
|
|
444
460
|
get packageContentPermissions() {
|
|
445
|
-
const owner = this.
|
|
446
|
-
const group =
|
|
461
|
+
const owner = this.systemUserName;
|
|
462
|
+
const group = this.systemGroupName;
|
|
447
463
|
return [
|
|
448
464
|
{
|
|
449
465
|
mode: 0o644,
|
package/src/services/bind.mjs
CHANGED
|
@@ -480,23 +480,6 @@ export class bind extends ExtraSourceService {
|
|
|
480
480
|
|
|
481
481
|
groups = new Map();
|
|
482
482
|
|
|
483
|
-
materializeExtends() {
|
|
484
|
-
console.log("materializeExtends", this.fullName, this.owner, this.extends);
|
|
485
|
-
super.materializeExtends();
|
|
486
|
-
|
|
487
|
-
for (const service of this.walkDirections(["extends"])) {
|
|
488
|
-
for (const group of service.groups.values()) {
|
|
489
|
-
const present = this.groups.get(group.name);
|
|
490
|
-
|
|
491
|
-
if (present) {
|
|
492
|
-
present.extends.add(group);
|
|
493
|
-
} else {
|
|
494
|
-
this.groups.set(group.name, group.forOwner(this));
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
483
|
get serverType() {
|
|
501
484
|
return this.primaries ? "secondary" : "primary";
|
|
502
485
|
}
|
|
@@ -33,6 +33,14 @@ export class openldap extends CoreService {
|
|
|
33
33
|
this._uri = value;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
get systemUserName() {
|
|
37
|
+
return "ldap";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get systemGroupName() {
|
|
41
|
+
return "ldap";
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
async *preparePackages(dir) {
|
|
37
45
|
const permissions = this.packageContentPermissions;
|
|
38
46
|
const packageData = this.packageData;
|