pmcf 2.71.2 → 2.71.4

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.2",
3
+ "version": "2.71.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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}`,
@@ -95,10 +108,20 @@ export class OpenLDAPService extends Service {
95
108
  };
96
109
 
97
110
  await writeLines(join(packageData.dir, "etc/conf.d"), "slapd", [
98
- "SLAPD_OPTIONS=-d 9",
99
- "SLAPD_URLS=ldap:/// ldaps:///"
111
+ "SLAPD_OPTIONS=",
112
+ "SLAPD_URLS=ldap:/// ldaps:/// ldapi://%2Frun%2Fldapi"
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}`