pmcf 2.71.2 → 2.71.3
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/services/openldap.mjs +24 -1
package/package.json
CHANGED
|
@@ -82,9 +82,22 @@ export class OpenLDAPService extends Service {
|
|
|
82
82
|
|
|
83
83
|
console.log("openldap", name, network.name);
|
|
84
84
|
|
|
85
|
+
const filePermissions = [
|
|
86
|
+
{
|
|
87
|
+
mode: 0o644,
|
|
88
|
+
owner: "ldap",
|
|
89
|
+
group: "ldap"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
mode: 0o755,
|
|
93
|
+
owner: "ldap",
|
|
94
|
+
group: "ldap"
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
|
+
|
|
85
98
|
const packageData = {
|
|
86
99
|
dir,
|
|
87
|
-
sources: [new FileContentProvider(dir + "/")],
|
|
100
|
+
sources: [new FileContentProvider(dir + "/", ...filePermissions)],
|
|
88
101
|
outputs: this.outputs,
|
|
89
102
|
properties: {
|
|
90
103
|
name: `openldap-${this.location.name}-${name}`,
|
|
@@ -99,6 +112,16 @@ export class OpenLDAPService extends Service {
|
|
|
99
112
|
"SLAPD_URLS=ldap:/// ldaps:///"
|
|
100
113
|
]);
|
|
101
114
|
|
|
115
|
+
await writeLines(
|
|
116
|
+
join(packageData.dir, "/var/lib/openldap/openldap-data"),
|
|
117
|
+
"DB_CONFIG",
|
|
118
|
+
[
|
|
119
|
+
"set_cachesize 0 16777216 1",
|
|
120
|
+
"set_lg_regionmax 65536",
|
|
121
|
+
"set_lg_bsize 524288"
|
|
122
|
+
]
|
|
123
|
+
);
|
|
124
|
+
|
|
102
125
|
await writeLines(join(packageData.dir, "etc/openldap"), "ldap.conf", [
|
|
103
126
|
`BASE ${this.baseDN}`,
|
|
104
127
|
`URI ${this.uri}`
|