pmcf 4.5.1 → 4.5.2
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
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from "pacc";
|
|
9
9
|
import { addServiceType } from "pmcf";
|
|
10
10
|
import { ServiceTypeDefinition, Service } from "../service.mjs";
|
|
11
|
-
import { writeLines, filterConfigurable } from "../utils.mjs";
|
|
12
11
|
import { addHook } from "../hooks.mjs";
|
|
13
12
|
import { createExpressionTransformer, transform } from "content-entry-transform";
|
|
14
13
|
|
|
@@ -65,7 +64,6 @@ export class OpenLDAPService extends Service {
|
|
|
65
64
|
return OpenLDAPServiceTypeDefinition;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
DB_CONFIG = {};
|
|
69
67
|
_baseDN;
|
|
70
68
|
_rootDN;
|
|
71
69
|
|
|
@@ -114,7 +112,7 @@ export class OpenLDAPService extends Service {
|
|
|
114
112
|
group
|
|
115
113
|
};
|
|
116
114
|
const transformers = [
|
|
117
|
-
createExpressionTransformer(e => true, { base: this.baseDN })
|
|
115
|
+
createExpressionTransformer(e => true, { base: this.baseDN, uri: this.uri })
|
|
118
116
|
];
|
|
119
117
|
|
|
120
118
|
const templateDirs = [];
|
|
@@ -157,38 +155,6 @@ export class OpenLDAPService extends Service {
|
|
|
157
155
|
`setfacl -m u:${owner}:r /etc/letsencrypt/archive/*/privkey*.pem`
|
|
158
156
|
);
|
|
159
157
|
|
|
160
|
-
await writeLines(
|
|
161
|
-
join(packageData.dir, "etc/conf.d"),
|
|
162
|
-
"slapd",
|
|
163
|
-
this.expand([
|
|
164
|
-
"SLAPD_OPTIONS=",
|
|
165
|
-
"SLAPD_URLS=ldap:/// ldaps:/// ldapi://%2Frun%2Fldapi"
|
|
166
|
-
])
|
|
167
|
-
);
|
|
168
|
-
|
|
169
|
-
await writeLines(
|
|
170
|
-
join(packageData.dir, "/var/lib/openldap/openldap-data"),
|
|
171
|
-
"DB_CONFIG",
|
|
172
|
-
|
|
173
|
-
/*
|
|
174
|
-
...[...this.propertyIterator(filterConfigurable)].map(
|
|
175
|
-
([name, value]) => `${name} ${value}`
|
|
176
|
-
)
|
|
177
|
-
*/
|
|
178
|
-
|
|
179
|
-
this.expand([
|
|
180
|
-
"set_cachesize 0 16777216 1",
|
|
181
|
-
"set_lg_regionmax 65536",
|
|
182
|
-
"set_lg_bsize 524288"
|
|
183
|
-
])
|
|
184
|
-
);
|
|
185
|
-
|
|
186
|
-
await writeLines(
|
|
187
|
-
join(packageData.dir, "etc/openldap"),
|
|
188
|
-
"ldap.conf",
|
|
189
|
-
this.expand([`BASE ${this.baseDN}`, `URI ${this.uri}`])
|
|
190
|
-
);
|
|
191
|
-
|
|
192
158
|
yield packageData;
|
|
193
159
|
}
|
|
194
160
|
}
|