├── .github
└── workflows
│ └── sync.yml
├── 3rdparty
└── openldap-profile.sh
├── LICENCE
├── README.md
└── openldap-ltb
└── debian
├── README.Debian
├── README.source
├── changelog
├── compat
├── configure
├── control
├── copyright
├── docs
├── openldap-ltb-contrib-overlays.install
├── openldap-ltb-contrib-overlays.lintian-overrides
├── openldap-ltb-contrib-overlays.postinst
├── openldap-ltb-explockout.install
├── openldap-ltb-explockout.lintian-overrides
├── openldap-ltb-mdb-utils.install
├── openldap-ltb-mdb-utils.lintian-overrides
├── openldap-ltb-mdb-utils.postinst
├── openldap-ltb.conffiles
├── openldap-ltb.cron.d.ex
├── openldap-ltb.doc-base.EX
├── openldap-ltb.install
├── openldap-ltb.lintian-overrides
├── openldap-ltb.lintian.profile
├── openldap-ltb.postinst
├── openldap-ltb.postrm
├── openldap-ltb.prerm
├── openldap-ltb.vars
├── patches
└── pw-sha2.patch
├── postbuild
├── rules
├── source
└── format
└── watch.ex
/.github/workflows/sync.yml:
--------------------------------------------------------------------------------
1 | name: Sync Back to master
2 |
3 | on:
4 | push:
5 | branches:
6 | - openldap26
7 |
8 | jobs:
9 | sync-branches:
10 | runs-on: ubuntu-latest
11 | name: Syncing branches
12 | steps:
13 | - uses: actions/checkout@v2
14 | with:
15 | ref: openldap26
16 | - run: |
17 | git fetch --unshallow
18 | git pull origin openldap26
19 | git config user.email "automatic@github.com"
20 | git config user.name "GitHub Actions"
21 | - name: sync master
22 | run: |
23 | git checkout master
24 | git pull --rebase
25 | git merge openldap26 --ff-only
26 | git push
27 |
--------------------------------------------------------------------------------
/3rdparty/openldap-profile.sh:
--------------------------------------------------------------------------------
1 | #=================================================
2 | # Update PATH variable for OpenLDAP
3 | #
4 | # Provided by LTB-project (http://www.ltb-project.org)
5 | #=================================================
6 |
7 | OL_BIN="/usr/bin"
8 | OL_SBIN="/usr/sbin"
9 |
10 | PATH="$PATH:$OL_BIN"
11 |
12 | if [ `id -u` -eq 0 ]
13 | then
14 | PATH="$PATH:$OL_SBIN"
15 | fi
16 |
17 | export PATH
18 |
--------------------------------------------------------------------------------
/LICENCE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OpenLDAP Debian packages
2 |
3 | Files needed to build LDAP Tool Box OpenLDAP Debian packages
4 |
5 | ## Documentation
6 |
7 | See `http://ltb-project.org/wiki/documentation/openldap-deb`
8 |
9 | ## Download
10 |
11 | See `http://ltb-project.org/wiki/download#packages_for_debianubuntu`
12 |
13 |
14 | ## Instructions for building openldap-ltb
15 |
16 | Install dependencies:
17 |
18 | ```
19 | apt install build-essential
20 | apt install autoconf automake autotools-dev debhelper dh-make devscripts fakeroot file gnupg git lintian patch patchutils pbuilder curl
21 | apt install libltdl7 libltdl-dev libsasl2-2 libsasl2-dev zlib1g zlib1g-dev openssl libssl-dev mime-support mawk libcrack2-dev libwrap0-dev libevent-dev libsodium23 libsodium-dev pandoc
22 | ```
23 |
24 | Get the sources:
25 |
26 | ```
27 | cd /opt
28 | git clone git@github.com:ltb-project/openldap-deb.git
29 | ```
30 |
31 | Get latest slapd release: (replace Y by slapd version)
32 |
33 | ```
34 | curl -O ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.5.Y.tgz
35 | tar xvzf openldap-2.5.Y.tgz
36 | cp -r openldap-2.5.Y/* openldap-ltb/
37 | ```
38 |
39 | Get the source of the latest slapd-cli release: (replace N by slapd-cli version)
40 | ```
41 | cd 3rdparty
42 | curl -O https://codeload.github.com/ltb-project/slapd-cli/tar.gz/refs/tags/vN
43 | tar xvzf slapd-cli-vN.tar.gz
44 | ```
45 |
46 | Get the source of explockout overlay: (replace N by explockout version)
47 | ```
48 | cd 3rdparty
49 | curl -O https://codeload.github.com/ltb-project/explockout/tar.gz/refs/tags/vN
50 | tar xvzf explockout-vN.tar.gz
51 | ```
52 |
53 | Get the source of ppm release: (replace N by ppm version)
54 | ```
55 | cd 3rdparty
56 | curl -O https://codeload.github.com/ltb-project/ppm/tar.gz/refs/tags/vN
57 | tar xvzf ppm-vN.tar.gz
58 | ```
59 |
60 | Import some variables:
61 |
62 | ```
63 | DEBEMAIL="david.coutadeur@gmail.com"
64 | DEBFULLNAME="David Coutadeur"
65 | export DEBEMAIL DEBFULLNAME
66 | ```
67 |
68 |
69 | general parameters for building a package (being in the package directory):
70 |
71 | ```
72 | debian/rules clean
73 | debian/rules build
74 | debian/rules binary
75 | ```
76 |
77 | building the source package (with no signing). Take care to create `openldap-ltb_2.5.Y.orig.tar.gz` from original OpenLDAP package:
78 |
79 | ```
80 | dpkg-buildpackage -us -uc
81 | ```
82 |
83 |
84 |
85 | ## Instructions for updating the package
86 |
87 |
88 | On one environment, prepare the move to the new version and write the changes in the changelog file:
89 |
90 | ```
91 | cd openldap-ltb
92 | dch -v 2.5.Y.1
93 | ```
94 |
95 | Update to new version in variable file:
96 |
97 | ```
98 | cd debian
99 | sed -i "s/2\.5\.X/2.5.Y/g" openldap-ltb.vars
100 | ```
101 |
102 |
103 |
104 | On every environment, get the previous changes, and do the following:
105 |
106 | Update distribution:
107 |
108 | ```
109 | apt update
110 | apt upgrade
111 | ```
112 |
113 | Get the new archive, and extract it into the directory:
114 |
115 | ```
116 | curl -O ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.5.Y.tgz
117 | tar xvzf openldap-2.5.Y.tgz
118 | cp -r openldap-2.5.Y/* openldap-ltb/
119 | ```
120 |
121 |
122 | Adapt control files for libsodium:
123 |
124 | For Debian 9:
125 | * in `debian/control` file, delete any reference to libsodium in Depends and Build-depends lines
126 | * in `debian/openldap-ltb-contrib-overlays.install`, delete the line `usr/local/openldap/libexec/openldap/pw-argon2.*`
127 |
128 |
129 | Optionally, update the 3dparty directory with new release of other tools (slapd-cli)
130 |
131 |
132 | Regenerate the package thanks to the usual procedure
133 |
134 | Test package
135 |
136 | If package is ok, create tag:
137 |
138 | ```
139 | git tag v2.5.Y
140 | git push --tags origin
141 | ```
142 |
143 |
144 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/README.Debian:
--------------------------------------------------------------------------------
1 | openldap for Debian
2 | -------------------
3 |
4 | This work was packaged for Debian by:
5 |
6 | dcoutadeur on Wed, 04 Sep 2013 17:43:45 +0200
7 |
8 | It was downloaded from:
9 |
10 | http://ltb-project.org
11 |
12 | -- dcoutadeur Wed, 04 Sep 2013 17:43:45 +0200
13 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/README.source:
--------------------------------------------------------------------------------
1 | openldap for Debian
2 | -------------------
3 |
4 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/changelog:
--------------------------------------------------------------------------------
1 | openldap-ltb (2.6.10.1) UNRELEASED; urgency=medium
2 |
3 | - OpenLDAP 2.6.10 Release (2025/05/22)
4 | - Added slapd microsecond timestamp format for local logging (ITS#10140)
5 | - Fixed libldap ldap_result behavior with LDAP_MSG_RECEIVED (ITS#10229)
6 | - Fixed lloadd handling of starttls critical (ITS#10323)
7 | - Fixed slapd syncrepl when used with slapo-rwm (ITS#10290)
8 | - Fixed slapd regression with certain searches (ITS#10307)
9 | - Fixed slapo-autoca olcAutoCAserverClass object (ITS#10288)
10 | - Fixed slapo-pcache caching behaviors (ITS#10270)
11 | - Minor Cleanup
12 | - ITS#7080
13 | - ITS#7249
14 | - ITS#9934
15 | - ITS#10020
16 | - ITS#10168
17 | - ITS#10226
18 | - ITS#10279
19 | - ITS#10299
20 | - ITS#10302
21 | - ITS#10309
22 | - ITS#10312
23 | - ITS#10320
24 | - ITS#10325
25 | - ITS#10327
26 | - ITS#10328
27 | - ITS#10331
28 | - ITS#10336
29 | - LTB changes
30 | - Debug symbols missing for slapd (and more) (#123)
31 |
32 | -- David Coutadeur Thu, 22 May 2025 00:00:00 +0200
33 |
34 | openldap-ltb (2.6.9.1) UNRELEASED; urgency=medium
35 |
36 | - OpenLDAP 2.6.9 Release (2024/11/26)
37 | - Fixed libldap TLS connection timeout handling (ITS#8047)
38 | - Fixed libldap GnuTLS incompatible pointer type (ITS#10253)
39 | - Fixed libldap OpenSSL set_ciphersuite error handling (ITS#10223)
40 | - Fixed libldap to check for OpenSSL EVP_Digest* failure (ITS#10224)
41 | - Fixed slapd cn=config disallowed modification of cn=schema (ITS#10256)
42 | - Fixed slapd syncrepl assert during refresh at shutdown (ITS#10232)
43 | - Fixed slapd syncrepl retry state during refreshDone (ITS#10234)
44 | - Fixed slapd-ldap use of multi-precision add for op counters (ITS#10237)
45 | - Fixed slapd-mdb idl intersection (ITS#10233)
46 | - Fixed slapd-wt idl intersection (ITS#10233)
47 | - Fixed slapo-memberof to omit dynamic values (ITS#10230)
48 | - Fixed slapo-nestgroup leak in nestgroup_memberFilter (ITS#10249)
49 | - Fixed slapo-translucent regression with subordinate databases (ITS#10248)
50 | - Fixed slapo-translucent regression when requesting attributes (ITS#10272)
51 | - Fixed slappw-argon2 defaults to be more secure (ITS#9827)
52 | - Minor Cleanup
53 | - ITS#10155
54 | - ITS#10218
55 | - ITS#10219
56 | - ITS#10227
57 | - ITS#10231
58 | - ITS#10235
59 | - ITS#10263
60 | - ITS#10264
61 | - LTB changes
62 | - use slapd-cli 3.5 release (#118)
63 | - Create link to ldapi socket (#119)
64 |
65 | -- David Coutadeur Tue, 26 Nov 2024 00:00:00 +0100
66 |
67 | openldap-ltb (2.6.8.1) UNRELEASED; urgency=medium
68 |
69 | - OpenLDAP 2.6.8 Release (2024/05/21)
70 | - Fixed libldap exit handling with OpenSSL3 again (ITS#9952)
71 | - Fixed libldap OpenSSL channel binding digest (ITS#10216)
72 | - Fixed slapd handling of large uid/gids peercred auth (ITS#10211)
73 | - Fixed slapd-asyncmeta/meta target structure allocations (ITS#10197)
74 | - Fixed slapd-meta with dynlist (ITS#10164)
75 | - Fixed slapd-meta binds when proxying internal op (ITS#10165)
76 | - Added slapo-nestgroup overlay (ITS#10161)
77 | - Added slapo-memberof 'addcheck' option (ITS#10167)
78 | - Fixed slapo-accesslog startup initialization (ITS#10170)
79 | - Fixed slapo-constraint double free on invalid attr (ITS#10204)
80 | - Fixed slapo-dynlist with abandoned operations (ITS#10044)
81 | - Build
82 | - Fixed build with gcc14.x (ITS#10166)
83 | - Fixed back-perl with clang15 (ITS#10177)
84 | - Fixed to reduce systemd dependencies (ITS#10214)
85 | - Contrib
86 | - Added slapo-alias contrib module (ITS#10104, ITS#10182)
87 | - Fixed slapo-autogroup to work with slapo-dynlist (ITS#10185)
88 | - Fixed smbk5pwd implicit function declaration (ITS#10206)
89 | - Documentation
90 | - Fixed slapo-memberof exattr requirements (ITS#7400)
91 | - Fixed slapo-memberof is no longer deprecated (ITS#7400)
92 | - Minor Cleanup
93 | - ITS#9921
94 | - ITS#10103
95 | - ITS#10171
96 | - ITS#10172
97 | - ITS#10173
98 | - ITS#10179
99 | - ITS#10183
100 | - ITS#10186
101 | - ITS#10188
102 | - ITS#10193
103 | - ITS#10209
104 | - LTB changes
105 | - use slapd-cli 3.4 release (#110)
106 |
107 | -- David Coutadeur Tue, 21 May 2024 12:00:00 +0200
108 |
109 | openldap-ltb (2.6.7.1) UNRELEASED; urgency=medium
110 |
111 | - OpenLDAP 2.6.7 Release (2024/01/29)
112 | - Added slapo-dynlist option to disable filter support (ITS#10025)
113 | - Fixed liblber missing newline on long msg (ITS#10105)
114 | - Fixed libldap exit handling with OpenSSL3 (ITS#9952)
115 | - Fixed libldap with TLS and multiple ldap URIs (ITS#10101)
116 | - Fixed libldap OpenSSL cipher suite handling (ITS#10094)
117 | - Fixed libldap OpenSSL 3.0 and Diffie-Hellman param files (ITS#10124)
118 | - Fixed libldap timestamps on Windows (ITS#10100)
119 | - Fixed lloadd to work when resolv.conf is missing (ITS#10070)
120 | - Fixed lloadd handling of closing connection (ITS#10083)
121 | - Fixed lloadd tiers to be correctly linked on startup (ITS#10142)
122 | - Fixed slapd to honour disclose in matchedDN handling (ITS#10139)
123 | - Fixed slapd handling of regex testing in ACLs (ITS#10089)
124 | - Fixed slapd sync replication with glued database (ITS#10080)
125 | - Fixed slapd local logging on Windows (ITS#10092)
126 | - Fixed slapd-asyncmeta when remote suffix is empty (ITS#10076)
127 | - Fixed slapo-dynlist so it can't be global (ITS#10091)
128 | - Build
129 | - Fixed lloadd type mismatches (ITS#10074)
130 | - Fixed builds for Windows (ITS#10117)
131 | - Fixed build with clang16 (ITS#10123)
132 | - Documentation
133 | - Fixed slapo-homedir(5) attribute name for olcHomedirArchivePath (ITS#10057)
134 | - Minor Cleanup
135 | - ITS#10059
136 | - ITS#10068
137 | - ITS#10098
138 | - ITS#10109
139 | - ITS#10110
140 | - ITS#10129
141 | - ITS#10130
142 | - ITS#10135
143 | - ITS#10143
144 | - ITS#10144
145 | - ITS#10145
146 | - ITS#10153
147 | - LTB changes
148 | - use slapd-cli 3.3 release (#108)
149 | - clean build dependencies (#109)
150 |
151 | -- David Coutadeur Tue, 30 Jan 2024 12:00:00 +0200
152 |
153 | openldap-ltb (2.6.6.1) UNRELEASED; urgency=medium
154 |
155 | - OpenLDAP 2.6.6 Release (2023/07/31)
156 | - Fixed slapd cn=config incorrect handling of paused (ITS#10045)
157 | - Fixed slapd-meta to account for MOD ops being optional (ITS#10067)
158 | - Fixed slapd-asyncmeta to account for MOD ops being optional (ITS#10067)
159 | - LTB changes
160 | - use slapd-cli 3.2 release (#102)
161 | - Support for Debian 13 (trixie) (#106)
162 |
163 | -- David Coutadeur Mon, 31 Jul 2023 12:00:00 +0200
164 |
165 | openldap-ltb (2.6.6.1) UNRELEASED; urgency=medium
166 |
167 | - OpenLDAP 2.6.5 Release (2023/07/10)
168 | - Fixed libldap handling of TCP KEEPALIVE options (ITS#10015)
169 | - Fixed libldap with async connections (ITS#10023)
170 | - Fixed libldap openssl TLSv1.3 cipher suite handling (ITS#10035)
171 | - Fixed slapd callback handling with overlays that do extended operations (ITS#9990)
172 | - Fixed slapd conversion of pcache configurations (ITS#10031)
173 | - Fixed slapd cn=config modification handling with abandon (ITS#10045)
174 | - Fixed slapd-mdb online indexer termination and cleanup (ITS#9993)
175 | - Fixed slapd-mdb online indexer when interrupted (ITS#10047)
176 | - Fixed slapd-monitor connection cleanup (ITS#10042)
177 | - Fixed slapo-constraint handling of push replication (ITS#9953)
178 | - Fixed slapo-dynlist filter evaluation efficiency (ITS#10041)
179 | - Fixed slapo-pcache handling of invalid schema (ITS#10032)
180 | - Fixed slapo-ppolicy handling of push replication (ITS#9953)
181 | - Fixed slapo-ppolicy handling of pwdMinDelay (ITS#10028)
182 | - Fixed slapo-syncprov abandon handling (ITS#10016)
183 | - Fixed slapo-translucent handling of invalid schema (ITS#10032)
184 | - Fixed slapo-unique handling of push replication (ITS#9953)
185 | - Fixed slapo-variant to improve regex handling (ITS#10048)
186 | - Build Environment
187 | - Fixed compatibility with stricter C99 compilers (ITS#10011)
188 | - Keep .pc files during make clean (ITS#9989)
189 | - Contrib
190 | - Fixed slapo-variant handling of push replication (ITS#9953)
191 | - Minor Cleanup
192 | - ITS#9855
193 | - ITS#9995
194 | - ITS#9996
195 | - ITS#9997
196 | - ITS#9998
197 | - ITS#9999
198 | - ITS#10000
199 | - ITS#10003
200 | - ITS#10004
201 | - ITS#10033
202 | - ITS#10037
203 | - ITS#10039
204 | - ITS#10046
205 | - ITS#10063
206 | - LTB changes
207 | - use slapd-cli 3.1 release (#102)
208 | - Support for Debian 12 (bookworm) (#103)
209 |
210 | -- David Coutadeur Mon, 10 Jul 2023 12:00:00 +0200
211 |
212 | openldap-ltb (2.6.5.1) UNRELEASED; urgency=medium
213 |
214 | - OpenLDAP 2.6.4 Release (2023/02/08)
215 | - Fixed client tools to remove 'h' and 'p' options (ITS#9917,ITS#8618)
216 | - Fixed ldapsearch memory leak with paged results (ITS#9860)
217 | - Fixed libldap ldif_open_urlto check for failure (ITS#9904)
218 | - Fixed libldap ldap_url_parsehosts check for failure (ITS#9904)
219 | - Fixed liblunicode UTF8bvnormalize buffer size (ITS#9955)
220 | - Fixed lloadd memory leaks (ITS#9907)
221 | - Fixed lloadd shutdown code to protect memory correctly (ITS#9913)
222 | - Fixed lloadd race in epoch.c (ITS#9947)
223 | - Fixed lloadd potential deadlock with cn=monitor (ITS#9951)
224 | - Fixed lloadd to keep listener base around when not active (ITS#9984)
225 | - Fixed lloadd object reclamation sequencing (ITS#9983)
226 | - Fixed slapd memory leak with olcAuthIDRewrite (ITS#6035)
227 | - Fixed slapd free of redundant cmdline option (ITS#9912)
228 | - Fixed slapd transactions extended operations cleanup after write (ITS#9892)
229 | - Fixed slapd deadlock with replicated cn=config (ITS#9930,ITS#8102)
230 | - Fixed slapd connection close logic (ITS#9991)
231 | - Fixed slapd bconfig locking of cn=config entries (ITS#9045)
232 | - Fixed slapd-mdb max number of index databases to 256 (ITS#9895)
233 | - Fixed slapd-mdb to always release entries from ADD operations (ITS#9942)
234 | - Fixed slapd-mdb to fully init empty DN in tool_entry_get (ITS#9940)
235 | - Fixed slapd-monitor memory leaks with lloadd (ITS#9906)
236 | - Fixed slapd-monitor to free remembered cookies (ITS#9339)
237 | - Fixed slapo-accesslog reqStart ordering matching rule (ITS#9880)
238 | - Fixed slapo-deref memory leak (ITS#9924)
239 | - Fixed slapo-dynlist to ignore irrelevant objectClasses (ITS#9897)
240 | - Fixed slapo-dynlist to avoid unnecessary searches (ITS#9929)
241 | - Fixed slapo-dynlist to mark internal searches as such (ITS#9960)
242 | - Fixed slapo-pcache crash in consistency_check (ITS#9966)
243 | - Fixed slapo-remoteauth memory leaks (ITS#9438)
244 | - Fixed slapo-rwm memory leaks (ITS#9817)
245 | - Build Environment
246 | - Fixed ancient DOS related ifdef checks (ITS#9925)
247 | - Fixed build process to not use gmake specific features (ITS#9894)
248 | - Fixed source tree to remove symlinks (ITS#9926)
249 | - Fixed slapo-otp testdir creation (ITS#9437)
250 | - Fixed slapd-tester memory leak (ITS#9908)
251 | - Fixed usage of non-standard C syntax (ITS#9898, ITS#9899, ITS#9901)
252 | - Fixed usage of bashism (ITS#9900)
253 | - Fixed test suite portability (ITS#9931)
254 | - Documentation
255 | - Fixed ldap_bind(3) to document ber_bvfree in ldap_sasl_bind (ITS#9976)
256 | - Fixed slapo-asyncmeta(5) to clarify scheduling for target connections (ITS#9941)
257 | - Fixed slapo-dynlist(5) to clarify configuration settings (ITS#9957)
258 | - Fixed slapo-unique(5) to clarify when quoting should be used (ITS#9915)
259 | - Minor cleanup
260 | - ITS#9935
261 | - ITS#9336
262 | - ITS#9337
263 | - ITS#9985
264 | - LTB changes
265 | - use new slapd-cli v3.0 (#101)
266 | - import ldif template only at initial openldap installation (#94)
267 |
268 | -- David Coutadeur Wed, 08 Feb 2023 12:00:00 +0200
269 |
270 | openldap-ltb (2.6.3.1) UNRELEASED; urgency=medium
271 |
272 | - OpenLDAP 2.6.3 Release (2022/07/14)
273 | - Fixed librewrite declaration of calloc (ITS#9841)
274 | - Fixed libldap to check for NULL ld (ITS#9157)
275 | - Fixed libldap memory leaks (ITS#9876)
276 | - Fixed lloadd to correctly tag Notice of Disconnection (ITS#9856)
277 | - Fixed slapd kqueue support (ITS#9847)
278 | - Fixed slapd delta-sync DN leak on ADD ops (ITS#9866)
279 | - Fixed slapd replication with back-glue (ITS#9868)
280 | - Fixed slapd lastbind replication with chaining (ITS#9863)
281 | - Fixed slapd-ldap to correctly set authzid (ITS#9863)
282 | - Fixed slapd-mdb to check for stale readers on MDB_READERS_FULL (ITS#7165)
283 | - Fixed slapd-mdb indexer task with replicated config (ITS#9858)
284 | - Fixed slapo-accesslog onetime memory leak (ITS#9864)
285 | - Fixed slapo-ppolicy interaction with slapo-rwm (ITS#9871)
286 | - Fixed slapo-rwm to handle escaping special characters (ITS#9817)
287 | - Fixed slapo-syncprov memory leaks (ITS#9867)
288 | - Fixed slapo-syncprov fallback in delta-sync mode (ITS#9823)
289 | - Fixed slapo-unique to not release NULL entry (ITS#8245)
290 | - Build Environment
291 | - Added slapd-watcher -c contextDN option (ITS#9865)
292 | - Fixed parallel builds (ITS#9840)
293 | - Fixed test020 to skip back-wt (ITS#9859)
294 | - Fixed slapd-watcher SID handling with single URI (ITS#9850)
295 | - Fixed test043 with workaround for ITS#9878
296 | - Contrib
297 | - Added slapo-emptyds contrib module (ITS#8882)
298 | - Added slapo-ciboolean contrib module (ITS#9855)
299 | - Fixed slapo-autogroup backwards compat (ITS#9020)
300 | - Update ppm module to the 2.2 release (ITS#9846)
301 | - Documentation
302 | - Fixed ldap_get_option(3) to clarify ldap_get/set_option restrictions (ITS#9824)
303 | - Fixed slapd-ldap(5),slapd-meta(5) missing bold tag on authz parameter (ITS#9872)
304 | - LTB changes
305 | - fix ppm.so not found (#91)
306 |
307 | -- David Coutadeur Thu, 14 Jul 2022 12:00:00 +0200
308 |
309 | openldap-ltb (2.6.2.1) UNRELEASED; urgency=medium
310 |
311 | - OpenLDAP 2.6.2 Release (2022/05/04)
312 | - Added libldap support for OpenSSL 3.0 (ITS#9436)
313 | - Added slapd support for OpenSSL 3.0 (ITS#9436)
314 | - Fixed ldapdelete to prune LDAP subentries (ITS#9737)
315 | - Fixed libldap to drop connection when non-LDAP data is received (ITS#9803)
316 | - Fixed libldap to allow newlines at end of included file (ITS#9811)
317 | - Fixed slapd slaptest conversion of olcLastBind (ITS#9808)
318 | - Fixed slapd to correctly init global_host earlier (ITS#9787)
319 | - Fixed slapd bconfig locking for cn=config replication (ITS#9584)
320 | - Fixed slapd usage of thread local counters (ITS#9789)
321 | - Fixed slapd to clear runqueue task correctly (ITS#9785)
322 | - Fixed slapd idletimeout handling (ITS#9820)
323 | - Fixed slapd syncrepl handling of new sessions (ITS#9584)
324 | - Fixed slapd to clear connections on bind (ITS#9799)
325 | - Fixed slapd to correctly advance connections index (ITS#9831)
326 | - Fixed slapd syncrepl ODSEE replication of unknown attr (ITS#9801)
327 | - Fixed slapd-asyncmeta memory leak in keepalive setting (ITS#9802)
328 | - Fixed slapd-ldap memory leak in keepalive setting (ITS#9802)
329 | - Fixed slapd-meta SEGV on config rewrite (ITS#9802)
330 | - Fixed slapd-meta ordering on config rewrite (ITS#9802)
331 | - Fixed slapd-meta memory leak in keepalive setting (ITS#9802)
332 | - Fixed slapd-monitor SEGV on shutdown (ITS#9809)
333 | - Fixed slapd-monitor crash when hitting sizelimit (ITS#9832)
334 | - Fixed slapd-sql to properly escape filter value (ITS#9815)
335 | - Added slapo-autoca support for OpenSSL 3.0 (ITS#9436)
336 | - Added slapo-otp support for OpenSSL 3.0 (ITS#9436)
337 | - Fixed slapo-dynlist dynamic group regression (ITS#9825)
338 | - Fixed slapo-pcache SEGV on shutdown (ITS#9809)
339 | - Fixed slapo-ppolicy operation handling to be consistent (ITS#9794)
340 | - Fixed slapo-translucent to correctly duplicate substring filters (ITS#9818)
341 | - Build Environment
342 | - Add ability to override default compile time paths (ITS#9675)
343 | - Fix compilation with certain versions of gcc (ITS#9790)
344 | - Fix compilation with openssl exclusions (ITS#9791)
345 | - Fix warnings from make jobserver (ITS#9788)
346 | - Contrib
347 | - Update ppm module to the 2.1 release (ITS#9814)
348 | - Documentation
349 | - admin26 Document new lloadd features (ITS#9780)
350 | - Fixed slapd.conf(5)/slapd-config(5) syncrepl sizelimit/timelimit documentation (ITS#9804)
351 | - Fixed slapd-sock(5) to clarify "sockresps result" behavior (ITS#8255)
352 | - LTB changes
353 | - fix files ownership of sbin and share directories (#88)
354 | - use new slapd-cli 2.9 version (#89) (use new logfile feature of 2.6, data templates for new olcPPolicyCheckModule, manage divergence between 2.5 and 2.6 versions, enable ppolicy module checks by default in data template)
355 | - use new ppm 2.2 version (#90) (maximum number of characters for each class, doc for new olcPPolicyCheckModule in 2.6, various minor fixes build fixes and optimizations)
356 |
357 | -- David Coutadeur Wed, 04 May 2022 12:00:00 +0200
358 |
359 | openldap-ltb (2.6.1.1) UNRELEASED; urgency=medium
360 |
361 | - OpenLDAP 2.6.1 Release (2022/01/20)
362 | - Fixed libldap to init client socket port (ITS#9743)
363 | - Fixed libldap with referrals (ITS#9781)
364 | - Added slapd config keyword for logfile format (ITS#9745)
365 | - Fixed slapd to allow objectClass edits with no net change (ITS#9772)
366 | - Fixed slapd configtable population (ITS#9576)
367 | - Fixed slapd to only set loglevel in server mode (ITS#9715)
368 | - Fixed slapd logfile-rotate use of uninitialized variable (ITS#9730)
369 | - Fixed slapd passwd scheme handling with slapd.conf (ITS#9750)
370 | - Fixed slapd postread support for modrdn (ITS#7080)
371 | - Fixed slapd syncrepl recreation of deleted entries (ITS#9282)
372 | - Fixed slapd syncrepl replication with ODSEE (ITS#9707)
373 | - Fixed slapd syncrepl to properly replicate glue entries (ITS#9647)
374 | - Fixed slapd syncrepl to reject REFRESH for precise resync (ITS#9742)
375 | - Fixed slapd syncrepl to avoid busy loop during refresh (ITS#9584)
376 | - Fixed slapd syncrepl when X-ORDERED is specified (ITS#9761)
377 | - Fixed slapd syncrepl to better handle out of order delete ops (ITS#9751)
378 | - Fixed slapd syncrepl to correctly close connections when config is deleted (ITS#9776)
379 | - Fixed slapd-mdb to update indices correctly on replace ops (ITS#9753)
380 | - Fixed slapd-wt to set correct flags (ITS#9760)
381 | - Fixed slapo-accesslog to fix assertion due to deprecated code (ITS#9738)
382 | - Fixed slapo-accesslog to fix inconsistently normalized minCSN (ITS#9752)
383 | - Fixed slapo-accesslog delete handling of multi-valued config attrs (ITS#9493)
384 | - Fixed slapo-autogroup to maintain values in insertion order (ITS#9766)
385 | - Fixed slapo-constraint to maintain values in insertion order (ITS#9770)
386 | - Fixed slapo-dyngroup to maintain values in insertion order (ITS#9762)
387 | - Fixed slapo-dynlist compare operation for static groups (ITS#9747)
388 | - Fixed slapo-dynlist static group filter with multiple members (ITS#9779)
389 | - Fixed slapo-ppolicy when not built modularly (ITS#9733)
390 | - Fixed slapo-refint to maintain values in insertion order (ITS#9763)
391 | - Fixed slapo-retcode to honor requested insert position (ITS#9759)
392 | - Fixed slapo-sock cn=config support (ITS#9758)
393 | - Fixed slapo-syncprov memory leak (ITS#8039)
394 | - Fixed slapo-syncprov to generate a more accurate accesslog query (ITS#9756)
395 | - Fixed slapo-syncprov to allow empty DB to host persistent syncrepl connections (ITS#9691)
396 | - Fixed slapo-syncprov to consider all deletes for sycnInfo messages (ITS#5972)
397 | - Fixed slapo-translucent to warn on invalid config (ITS#9768)
398 | - Fixed slapo-unique to warn on invalid config (ITS#9767)
399 | - Fixed slapo-valsort to maintain values in insertion order (ITS#9764)
400 | - Build Environment
401 | - Fix test022 to preserve DELAY search output (ITS#9718)
402 | - Fix slapd-watcher to allow startup when servers are down (ITS#9727)
403 | - Contrib
404 | - Fixed slapo-lastbind to work with 2.6 lastbind-precision configuration (ITS#9725)
405 | - Documentation
406 | - Fixed slapd.conf(5)/slapd-config(5) documentation on lastbind-precision (ITS#9728)
407 | - Fixed slapo-accesslog(5) to clarify logoldattr usage (ITS#9749)
408 |
409 | -- David Coutadeur Thu, 20 Jan 2022 12:00:00 +0100
410 |
411 | openldap-ltb (2.6.0.1) UNRELEASED; urgency=medium
412 |
413 | - Prepare OpenLDAP 2.6.0.1 Release (2021/10/25)
414 | - Initial release for "general use"
415 |
416 | -- David Coutadeur Mon, 25 Oct 2021 12:00:00 +0100
417 |
418 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/compat:
--------------------------------------------------------------------------------
1 | 7
2 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/configure:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | BASEDIR=$(dirname $0)
4 | source $BASEDIR/openldap-ltb.vars
5 |
6 |
7 | export CC="gcc"
8 | export CFLAGS="-DOPENLDAP_FD_SETSIZE=4096 -DSLAP_SCHEMA_EXPOSE -O2 -g"
9 | export CPPFLAGS="-I/usr/kerberos/include"
10 | export LDFLAGS=""
11 |
12 | ./configure --prefix=${LDAPDIR} --libdir=${LDAPDIR}/${_LIB} --enable-modules=yes --enable-overlays=mod --enable-backends=mod --enable-dynamic=yes --with-tls=openssl --enable-debug --with-cyrus-sasl --enable-spasswd --enable-ppolicy=mod --enable-crypt --enable-slapi --enable-mdb=mod --enable-ldap=mod --enable-meta=mod --enable-sock=mod --enable-wrappers --enable-rlookups --enable-argon2=yes --enable-otp=mod --enable-balancer=mod --enable-sql=no --enable-ndb=no --enable-wt=no --enable-perl=no
13 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/control:
--------------------------------------------------------------------------------
1 | Source: openldap-ltb
2 | Section: net
3 | Priority: optional
4 | Maintainer: dcoutadeur
5 | Build-Depends: debhelper (>= 7.0.15), autotools-dev, libltdl7, libltdl-dev, libsasl2-2, libsasl2-dev, zlib1g, zlib1g-dev, openssl, libssl-dev, mawk, libcrack2-dev, libsodium23, libsodium-dev, libevent-dev, pandoc
6 | Standards-Version: 3.8.4
7 | Homepage: http://ltb-project.org
8 |
9 | Package: openldap-ltb
10 | Architecture: any
11 | Depends: libc6 (>= 2.4), libltdl7, libsasl2-2, libwrap0 (>= 7.6-4~), coreutils (>= 4.5.1-1), perl (>> 5.8.0) | libmime-base64-perl, adduser, lsb-base (>= 3.2-13), openssl, bash-completion, procps, libevent-2.1-6 | libevent-2.1-7, libsodium23
12 | Replaces: openldap-ltb-contrib-overlays (<< 2.6.3)
13 | Suggests: openldap-ltb-mdb-utils, openldap-ltb-contrib-overlays
14 | Description: OpenLDAP server with addons from the LDAP Tool Box project
15 | OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
16 | Protocol) applications and development tools. LDAP is a set of
17 | protocols for accessing directory services (usually phone book style
18 | information, but other information is possible) over the Internet,
19 | similar to the way DNS (Domain Name System) information is propagated
20 | over the Internet.
21 | .
22 | This package contains all: server, clients, libraries and docs. It
23 | can be installed with openldap and openldap-devel. It provides tools
24 | from the LDAP Tool Box project:
25 | o Start/stop script
26 | o Logrotate script
27 |
28 | Package: openldap-ltb-dbg
29 | Architecture: any
30 | Section: debug
31 | Priority: extra
32 | Depends: openldap-ltb (= ${binary:Version})
33 | Description: Debugging symbols for openldap-ltb
34 | OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
35 | Protocol) applications and development tools. LDAP is a set of
36 | protocols for accessing directory services (usually phone book style
37 | information, but other information is possible) over the Internet,
38 | similar to the way DNS (Domain Name System) information is propagated
39 | over the Internet.
40 | .
41 | This package contains the debugging symbols for openldap-ltb
42 |
43 | Package: openldap-ltb-explockout
44 | Architecture: any
45 | Depends: openldap-ltb, libc6 (>= 2.4)
46 | Description: OpenLDAP exponential time password lockout overlay
47 | explockout.c is an OpenLDAP module for disabling user to bind to an LDAP
48 | directory for an exponential time based on the delay after which he has
49 | made a bind failure
50 | This module must be used in conjunction with the OpenLDAP password policy
51 | overlay, see slapo-ppolicy(5)
52 | This is provided by LDAP Tool Box project: http://www.ltb-project.org
53 |
54 | Package: openldap-ltb-contrib-overlays
55 | Architecture: any
56 | Depends: openldap-ltb, libc6 (>= 2.4), libcrack2
57 | Description: Overlays contributed to OpenLDAP
58 | Some overlays are not included in the OpenLDAP main package but provided
59 | as contributions. This package provide these ones:
60 | autogroup noopsrch nssov pw-pbkdf2 pw-sha2 smbk5pwd variant vc
61 | This is provided by LDAP Tool Box project: http://www.ltb-project.org
62 |
63 | Package: openldap-ltb-mdb-utils
64 | Architecture: any
65 | Depends: openldap-ltb, libc6 (>= 2.4)
66 | Description: utilities for mdb
67 | mdb utilities contain both mdb_stat and mdb_copy, and the associated
68 | documentation.
69 | This is provided by LDAP Tool Box project: http://www.ltb-project.org
70 |
71 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/copyright:
--------------------------------------------------------------------------------
1 | This work was packaged for Debian by:
2 |
3 | dcoutadeur on Wed, 04 Sep 2013 17:43:45 +0200
4 |
5 | It was downloaded from:
6 |
7 | http://ltb-project.org
8 |
9 | Upstream Author:
10 |
11 | dcoutadeur
12 |
13 | Copyright:
14 |
15 |
16 |
17 | License:
18 |
19 | The OpenLDAP Public License
20 | Version 2.8, 17 August 2003
21 |
22 | Redistribution and use of this software and associated documentation
23 | ("Software"), with or without modification, are permitted provided
24 | that the following conditions are met:
25 |
26 | 1. Redistributions in source form must retain copyright statements
27 | and notices,
28 |
29 | 2. Redistributions in binary form must reproduce applicable copyright
30 | statements and notices, this list of conditions, and the following
31 | disclaimer in the documentation and/or other materials provided
32 | with the distribution, and
33 |
34 | 3. Redistributions must contain a verbatim copy of this document.
35 |
36 | The OpenLDAP Foundation may revise this license from time to time.
37 | Each revision is distinguished by a version number. You may use
38 | this Software under terms of this license revision or under the
39 | terms of any subsequent revision of the license.
40 |
41 | THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS
42 | CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
43 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
44 | AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
45 | SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S)
46 | OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
47 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
48 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
49 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
50 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
52 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
53 | POSSIBILITY OF SUCH DAMAGE.
54 |
55 | The names of the authors and copyright holders must not be used in
56 | advertising or otherwise to promote the sale, use or other dealing
57 | in this Software without specific, written prior permission. Title
58 | to copyright in this Software shall at all times remain with copyright
59 | holders.
60 |
61 | OpenLDAP is a registered trademark of the OpenLDAP Foundation.
62 |
63 | Copyright 1999-2003 The OpenLDAP Foundation, Redwood City,
64 | California, USA. All Rights Reserved. Permission to copy and
65 | distribute verbatim copies of this document is granted.
66 |
67 | The Debian packaging is:
68 |
69 | Copyright (C) 2013 dcoutadeur
70 |
71 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/docs:
--------------------------------------------------------------------------------
1 | README
2 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-contrib-overlays.install:
--------------------------------------------------------------------------------
1 | # autogroup noopsrch nssov pw-pbkdf2 pw-sha2 smbk5pwd variant vc
2 | usr/local/openldap/libexec/openldap/autogroup.*
3 | usr/local/openldap/libexec/openldap/noopsrch.*
4 | usr/local/openldap/libexec/openldap/nssov.*
5 | usr/local/openldap/libexec/openldap/pw-pbkdf2.*
6 | usr/local/openldap/libexec/openldap/pw-sha2.*
7 | usr/local/openldap/libexec/openldap/smbk5pwd.*
8 | usr/local/openldap/libexec/openldap/variant.*
9 | usr/local/openldap/libexec/openldap/vc.*
10 |
11 | # man pages
12 | usr/local/openldap/share/man/man5/slapo-nssov.5
13 | usr/local/openldap/share/man/man5/slapo-smbk5pwd.5
14 | usr/local/openldap/share/man/man5/slapo-variant.5
15 | usr/local/openldap/share/man/man1/ldapvc.1
16 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-contrib-overlays.lintian-overrides:
--------------------------------------------------------------------------------
1 | # OpenLDAP-LTB is installed in /usr/local/
2 | openldap-ltb-contrib-overlays binary: dir-in-usr-local
3 | openldap-ltb-contrib-overlays binary: file-in-usr-local
4 | openldap-ltb-contrib-overlays binary: file-in-unusual-dir
5 |
6 | openldap-ltb-contrib-overlays binary: package-has-unnecessary-activation-of-ldconfig-trigger
7 |
8 | # modules are linked to private OpenLDAP-LTB shared libraries
9 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/autogroup.so.0.0.0 /usr/local/openldap/libexec/openldap
10 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/noopsrch.so.0.0.0 /usr/local/openldap/libexec/openldap
11 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/nssov.so.0.0.0 /usr/local/openldap/libexec/openldap
12 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/pw-sha2.so.0.0.0 /usr/local/openldap/libexec/openldap
13 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/smbk5pwd.so.0.0.0 /usr/local/openldap/libexec/openldap
14 |
15 |
16 | # ignore presence of ppm example configuration file in /usr
17 | openldap-ltb-contrib-overlays binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/ppm.example
18 |
19 | # ppm_test linked to private OpenLDAP-LTB shared libraries
20 | openldap-ltb-contrib-overlays binary: binary-or-shlib-defines-rpath usr/local/openldap/libexec/openldap/ppm_test .
21 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-contrib-overlays.postinst:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | BASEDIR=$(dirname $0)
6 | source $BASEDIR/openldap-ltb.vars
7 |
8 |
9 | # Change owner
10 | chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPSERVERDIR}/libexec/openldap/ppm*
11 | chmod +x "${LDAPSERVERDIR}/libexec/openldap/ppm_test"
12 |
13 | chown -R root:${LDAPGROUP} ${LDAPSERVERDIR}/etc/openldap/ppm.example
14 | chmod 640 ${LDAPSERVERDIR}/etc/openldap/ppm.example
15 |
16 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-explockout.install:
--------------------------------------------------------------------------------
1 | usr/local/openldap/libexec/openldap/explockout*
2 | usr/local/openldap/share/man/man5/slapo-explockout.5
3 |
4 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-explockout.lintian-overrides:
--------------------------------------------------------------------------------
1 | # OpenLDAP-LTB is installed in /usr/local/
2 | openldap-ltb-explockout binary: dir-in-usr-local
3 | openldap-ltb-explockout binary: file-in-usr-local
4 | openldap-ltb-explockout binary: file-in-unusual-dir
5 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-mdb-utils.install:
--------------------------------------------------------------------------------
1 | usr/local/openldap/share/man/man1/mdb_*
2 | usr/local/openldap/sbin/mdb_*
3 |
4 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-mdb-utils.lintian-overrides:
--------------------------------------------------------------------------------
1 | # OpenLDAP-LTB is installed in /usr/local/
2 | openldap-ltb-mdb-utils binary: dir-in-usr-local
3 | openldap-ltb-mdb-utils binary: file-in-usr-local
4 | openldap-ltb-mdb-utils binary: file-in-unusual-dir
5 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb-mdb-utils.postinst:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | BASEDIR=$(dirname $0)
6 | source $BASEDIR/openldap-ltb.vars
7 |
8 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.conffiles:
--------------------------------------------------------------------------------
1 | /usr/local/openldap/etc/openldap/slapd.conf
2 | /usr/local/openldap/etc/openldap/slapd-cli.conf
3 | /usr/local/openldap/etc/openldap/config-template-2.6.conf
4 | /usr/local/openldap/etc/openldap/config-template-2.6.ldif
5 | /usr/local/openldap/etc/openldap/data-template-2.6.ldif
6 | /usr/local/openldap/etc/openldap/lload.conf
7 | /usr/local/openldap/etc/openldap/ldap.conf
8 | /usr/local/openldap/etc/openldap/ppm.example
9 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.cron.d.ex:
--------------------------------------------------------------------------------
1 | #
2 | # Regular cron jobs for the openldap package
3 | #
4 | 0 4 * * * root [ -x /usr/bin/openldap_maintenance ] && /usr/bin/openldap_maintenance
5 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.doc-base.EX:
--------------------------------------------------------------------------------
1 | Document: openldap
2 | Title: Debian openldap Manual
3 | Author:
4 | Abstract: This manual describes what openldap is
5 | and how it can be used to
6 | manage online manuals on Debian systems.
7 | Section: unknown
8 |
9 | Format: debiandoc-sgml
10 | Files: /usr/share/doc/openldap/openldap.sgml.gz
11 |
12 | Format: postscript
13 | Files: /usr/share/doc/openldap/openldap.ps.gz
14 |
15 | Format: text
16 | Files: /usr/share/doc/openldap/openldap.text.gz
17 |
18 | Format: HTML
19 | Index: /usr/share/doc/openldap/html/index.html
20 | Files: /usr/share/doc/openldap/html/*.html
21 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.install:
--------------------------------------------------------------------------------
1 | usr/local/openldap/bin
2 | usr/local/openldap/etc/openldap/*.default
3 | usr/local/openldap/etc/openldap/*.ldif
4 | usr/local/openldap/etc/openldap/ldap.conf
5 | usr/local/openldap/etc/openldap/slapd.conf
6 | usr/local/openldap/etc/openldap/slapd-cli.conf
7 | usr/local/openldap/etc/openldap/config-template-2.6.conf
8 | usr/local/openldap/etc/openldap/config-template-2.6.ldif
9 | usr/local/openldap/etc/openldap/data-template-2.6.ldif
10 | usr/local/openldap/etc/openldap/lload.conf
11 | usr/local/openldap/etc/openldap/schema
12 | usr/local/openldap/include
13 | usr/local/openldap/lib*/lib*
14 | usr/local/openldap/libexec/slapd
15 | usr/local/openldap/sbin/slap*
16 |
17 | # man1 pages (all but ldapvc and mdb_stat, mdb_copy )
18 | usr/local/openldap/share/man/man1/ldapadd.1
19 | usr/local/openldap/share/man/man1/ldapcompare.1
20 | usr/local/openldap/share/man/man1/ldapdelete.1
21 | usr/local/openldap/share/man/man1/ldapexop.1
22 | usr/local/openldap/share/man/man1/ldapmodify.1
23 | usr/local/openldap/share/man/man1/ldapmodrdn.1
24 | usr/local/openldap/share/man/man1/ldappasswd.1
25 | usr/local/openldap/share/man/man1/ldapsearch.1
26 | usr/local/openldap/share/man/man1/ldapurl.1
27 | usr/local/openldap/share/man/man1/ldapwhoami.1
28 | usr/local/openldap/share/man/man3
29 |
30 | # man pages (all but slapo-lastbind slapo-nssov slapo-smbk5pwd slapo-variant slapo-explockout
31 | usr/local/openldap/share/man/man5/l*
32 | usr/local/openldap/share/man/man5/slapd*
33 | usr/local/openldap/share/man/man5/slapo-accesslog.5
34 | usr/local/openldap/share/man/man5/slapo-auditlog.5
35 | usr/local/openldap/share/man/man5/slapo-autoca.5
36 | usr/local/openldap/share/man/man5/slapo-chain.5
37 | usr/local/openldap/share/man/man5/slapo-collect.5
38 | usr/local/openldap/share/man/man5/slapo-constraint.5
39 | usr/local/openldap/share/man/man5/slapo-dds.5
40 | usr/local/openldap/share/man/man5/slapo-deref.5
41 | usr/local/openldap/share/man/man5/slapo-dyngroup.5
42 | usr/local/openldap/share/man/man5/slapo-dynlist.5
43 | usr/local/openldap/share/man/man5/slapo-homedir.5
44 | usr/local/openldap/share/man/man5/slapo-memberof.5
45 | usr/local/openldap/share/man/man5/slapo-otp.5
46 | usr/local/openldap/share/man/man5/slapo-pbind.5
47 | usr/local/openldap/share/man/man5/slapo-pcache.5
48 | usr/local/openldap/share/man/man5/slapo-ppolicy.5
49 | usr/local/openldap/share/man/man5/slapo-refint.5
50 | usr/local/openldap/share/man/man5/slapo-remoteauth.5
51 | usr/local/openldap/share/man/man5/slapo-retcode.5
52 | usr/local/openldap/share/man/man5/slapo-rwm.5
53 | usr/local/openldap/share/man/man5/slapo-sock.5
54 | usr/local/openldap/share/man/man5/slapo-sssvlv.5
55 | usr/local/openldap/share/man/man5/slapo-syncprov.5
56 | usr/local/openldap/share/man/man5/slapo-translucent.5
57 | usr/local/openldap/share/man/man5/slapo-unique.5
58 | usr/local/openldap/share/man/man5/slapo-valsort.5
59 | usr/local/openldap/share/man/man5/slappw-argon2.5
60 | usr/local/openldap/share/man/man5/slapm-ppm.5
61 | usr/local/openldap/etc/openldap/ppm.example
62 |
63 | usr/local/openldap/share/man/man8
64 | usr/local/openldap/var
65 | usr/share/lintian/profiles/debian/openldap-ltb.profile
66 | etc
67 | lib
68 |
69 | # modules (all but those in contrib-overlays)
70 | usr/local/openldap/libexec/openldap/accesslog*
71 | usr/local/openldap/libexec/openldap/argon2*
72 | usr/local/openldap/libexec/openldap/auditlog*
73 | usr/local/openldap/libexec/openldap/autoca*
74 | usr/local/openldap/libexec/openldap/back_asyncmeta*
75 | usr/local/openldap/libexec/openldap/back_dnssrv*
76 | usr/local/openldap/libexec/openldap/back_ldap*
77 | usr/local/openldap/libexec/openldap/back_mdb*
78 | usr/local/openldap/libexec/openldap/back_meta*
79 | usr/local/openldap/libexec/openldap/back_null*
80 | usr/local/openldap/libexec/openldap/back_passwd*
81 | usr/local/openldap/libexec/openldap/back_relay*
82 | usr/local/openldap/libexec/openldap/back_sock*
83 | usr/local/openldap/libexec/openldap/collect*
84 | usr/local/openldap/libexec/openldap/constraint*
85 | usr/local/openldap/libexec/openldap/dds*
86 | usr/local/openldap/libexec/openldap/deref*
87 | usr/local/openldap/libexec/openldap/dyngroup*
88 | usr/local/openldap/libexec/openldap/dynlist*
89 | usr/local/openldap/libexec/openldap/homedir*
90 | usr/local/openldap/libexec/openldap/lloadd*
91 | usr/local/openldap/libexec/openldap/memberof*
92 | usr/local/openldap/libexec/openldap/otp*
93 | usr/local/openldap/libexec/openldap/pcache*
94 | usr/local/openldap/libexec/openldap/ppolicy*
95 | usr/local/openldap/libexec/openldap/refint*
96 | usr/local/openldap/libexec/openldap/remoteauth*
97 | usr/local/openldap/libexec/openldap/retcode*
98 | usr/local/openldap/libexec/openldap/rwm*
99 | usr/local/openldap/libexec/openldap/seqmod*
100 | usr/local/openldap/libexec/openldap/sssvlv*
101 | usr/local/openldap/libexec/openldap/syncprov*
102 | usr/local/openldap/libexec/openldap/translucent*
103 | usr/local/openldap/libexec/openldap/unique*
104 | usr/local/openldap/libexec/openldap/valsort*
105 | usr/local/openldap/libexec/openldap/ppm*
106 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.lintian-overrides:
--------------------------------------------------------------------------------
1 | # ignore presence of configuration file in /usr
2 | openldap-ltb binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/check_password.conf
3 | openldap-ltb binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/slapd.conf
4 | openldap-ltb binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/slapd-cli.conf
5 | openldap-ltb binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/ldap.conf
6 | openldap-ltb binary: file-in-usr-marked-as-conffile usr/local/openldap/etc/openldap/ppm.example
7 | # vars is the common file owning variables for every other script
8 | openldap-ltb binary: unknown-control-file vars
9 | # OpenLDAP-LTB is installed in /usr/local/
10 | openldap-ltb binary: dir-in-usr-local
11 | openldap-ltb binary: file-in-usr-local
12 | openldap-ltb binary: file-in-unusual-dir
13 | openldap-ltb binary: package-has-unnecessary-activation-of-ldconfig-trigger
14 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.lintian.profile:
--------------------------------------------------------------------------------
1 | # The default profile for "openldap-ltb"
2 | Profile: debian/openldap-ltb
3 | # It has all the checks and settings from the "debian" profile
4 | Extends: debian/main
5 | #Disable-Tags-From-Check: file-in-usr-marked-as-conffile
6 |
7 | Tags: file-in-usr-marked-as-conffile
8 | Overridable: yes
9 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.postinst:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | BASEDIR=$(dirname $0)
6 | source $BASEDIR/openldap-ltb.vars
7 |
8 | # Create user and group
9 | if ! getent group ldap > /dev/null 2>&1 ; then
10 | addgroup --system ${LDAPGROUP}
11 | else
12 | if ! grep -q -E "^ldap:" /etc/group ; then
13 | echo "WARN: ${LDAPGROUP} group exists but is not a local group. This may cause slapd malfunction"
14 | fi
15 | fi
16 | if ! getent passwd ldap > /dev/null 2>&1 ; then
17 | adduser --system --no-create-home --home /usr/local/openldap --ingroup ${LDAPGROUP} ${LDAPUSER}
18 | else
19 | if ! grep -q -E "^ldap:" /etc/passwd ; then
20 | echo "WARN: ${LDAPGROUP} user exists but is not a local user. This may cause slapd malfunction"
21 | fi
22 | fi
23 |
24 | # Create some dirs and change owner
25 | mkdir -p ${LDAPDATADIR}
26 | mkdir -p ${LDAPBACKUPDIR}
27 | mkdir -p ${LDAPLOGDIR}
28 |
29 | # Globally set owner to root:root
30 | chown root:root ${LDAPSERVERDIR}
31 | chown -R root:root ${LDAPSERVERDIR}/bin
32 | chown -R root:root ${LDAPSERVERDIR}/etc/openldap/{ldap.conf,ldap.conf.default,schema,slapd.conf.default,slapd.ldif,slapd.ldif.default}
33 | chown -R root:root ${LDAPSERVERDIR}/include
34 | chown -R root:root ${LDAPSERVERDIR}/lib*
35 | chown -R root:root ${LDAPSERVERDIR}/libexec
36 | chown -R root:root ${LDAPSERVERDIR}/sbin
37 | chown root:root ${LDAPSERVERDIR}/var
38 |
39 | # Specifically adapt some files/directories owner and permissions
40 | chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPDATADIR}
41 | chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPBACKUPDIR}
42 | chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPSERVERDIR}/var/run
43 | chown -R root:${LDAPGROUP} ${LDAPSERVERDIR}/etc/openldap/slapd.conf
44 | chmod 640 ${LDAPSERVERDIR}/etc/openldap/slapd.conf
45 | chown -R root:${LDAPGROUP} ${LDAPSERVERDIR}/etc/openldap/lload.conf
46 | chmod 640 ${LDAPSERVERDIR}/etc/openldap/lload.conf
47 | chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPLOGDIR}
48 |
49 | # Add configuration directory if it does not exist
50 | mkdir -p ${LDAPCONFDIR}
51 | chown root:${LDAPGROUP} ${LDAPCONFDIR}
52 | chmod 770 ${LDAPCONFDIR}
53 |
54 | # Adapt slapd version number
55 | if ! grep -q -E "^SLAPD_VERSION=" ${SLAPD_CLI_CONF}; then
56 | printf 'SLAPD_VERSION=2.6' >> ${SLAPD_CLI_CONF}
57 | else
58 | sed -i -e 's/SLAPD_VERSION=.*$/SLAPD_VERSION=2.6/' ${SLAPD_CLI_CONF}
59 | fi
60 |
61 | # If this is a new install (not an upgrade)
62 | # and the configuration directory is empty
63 | # and SLAPD_CONF_DIR variable is defined
64 | if [ -z "${2}" ] && \
65 | [ -z "$( ls -A ${LDAPCONFDIR} )" ] && \
66 | grep -q -P '^SLAPD_CONF_DIR="?[^"]+"?' ${SLAPD_CLI_CONF} ; then
67 |
68 | # Import configuration from ldif template
69 | ${SLAPD_CLI_BIN} importldifconfigtemplate > /dev/null
70 |
71 | fi
72 |
73 |
74 | if ! type "systemctl" > /dev/null 2>&1; then
75 | # No SYSTEMD available
76 | # do not start on boot
77 | # do not start slapd process now
78 | echo && exit $?
79 | else
80 | # Assume SYSTEMD
81 |
82 | ###################
83 | # slapd-ltb service
84 | ###################
85 |
86 | STARTEDFLAG="/var/openldap-ltb-${SYSTEMD_SERVICE_NAME}-started"
87 |
88 | # Starting service on boot
89 | systemctl enable ${SYSTEMD_SERVICE_NAME}
90 |
91 | # $2 = previously installed version of package, or null
92 | if [ -z "${2}" ]; then
93 | # This is a first install
94 |
95 | # Start service
96 | # Use `invoke-rc.d` instead of `systemctl` for taking local admin policy into consideration
97 | invoke-rc.d ${SYSTEMD_SERVICE_NAME} start
98 |
99 | else
100 | # This is an upgrade
101 |
102 | # If STARTEDFLAG is present (means previous service was started)
103 | if [ -f ${STARTEDFLAG} ]; then
104 | # Start service
105 | # Use `invoke-rc.d` instead of `systemctl` for taking local admin policy into consideration
106 | invoke-rc.d ${SYSTEMD_SERVICE_NAME} start
107 | fi
108 | fi
109 | # delete STARTEDFLAG (will be set by prerm script)
110 | rm -f ${STARTEDFLAG}
111 |
112 |
113 | ###################
114 | # lload-ltb service
115 | ###################
116 |
117 | STARTEDFLAG="/var/openldap-ltb-${SYSTEMD_LLOAD_SERVICE_NAME}-started"
118 |
119 | # Don't start service on boot
120 | # systemctl enable ${SYSTEMD_LLOAD_SERVICE_NAME}
121 |
122 | # $2 = previously installed version of package, or null
123 | if [ -z "${2}" ]; then
124 | # This is a first install
125 |
126 | # Don't start service
127 | # Use `invoke-rc.d` instead of `systemctl` for taking local admin policy into consideration
128 | #invoke-rc.d ${SYSTEMD_LLOAD_SERVICE_NAME} start
129 | :
130 |
131 | else
132 | # This is an upgrade
133 |
134 | # If STARTEDFLAG is present (means previous service was started)
135 | if [ -f ${STARTEDFLAG} ]; then
136 | # Start service
137 | # Use `invoke-rc.d` instead of `systemctl` for taking local admin policy into consideration
138 | invoke-rc.d ${SYSTEMD_LLOAD_SERVICE_NAME} start
139 | fi
140 | fi
141 | # delete STARTEDFLAG (will be set by prerm script)
142 | rm -f ${STARTEDFLAG}
143 |
144 |
145 | fi
146 |
147 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.postrm:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | # clean remaining started when removing the service
6 | if [ "$1" != "upgrade" ]; then
7 | rm -f /var/openldap-ltb-*-started
8 | fi
9 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.prerm:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | BASEDIR=$(dirname $0)
6 | source $BASEDIR/openldap-ltb.vars
7 |
8 |
9 | remove_systemd_service()
10 | {
11 |
12 | SERV="${1}"
13 | STARTEDFLAG="/var/openldap-ltb-${SERV}-started"
14 |
15 | # Stop starting service on boot
16 | systemctl disable ${SERV} || echo "${SERV} already disabled"
17 |
18 | # return 0 if service is started, 3 if stopped, 4 if not known
19 | systemctl status ${SERV} >/dev/null 2>&1 && RES=$? || RES=$?
20 |
21 | # If this service is unknown
22 | if [ ${RES} -eq 4 ] ; then
23 | rm -f ${STARTEDFLAG} # foresee to keep the service stopped in the future
24 |
25 | # if service was started before
26 | elif [ ${RES} -eq 0 ]; then
27 | systemctl stop ${SERV} # stop the service
28 | touch ${STARTEDFLAG} # foresee to start the service automatically in the future
29 |
30 | # in all other cases (including service was stopped before)
31 | else
32 | rm -f ${STARTEDFLAG} # foresee to keep the service stopped in the future
33 | fi
34 |
35 | }
36 |
37 |
38 | if ! type "systemctl" > /dev/null 2>&1; then
39 | # No SYSTEMD available
40 | # do not disable service on boot
41 | # do not stop service process now
42 | echo && exit $?
43 | else
44 | # Assume SYSTEMD
45 |
46 | remove_systemd_service ${SYSTEMD_SERVICE_NAME}
47 | remove_systemd_service ${SYSTEMD_LLOAD_SERVICE_NAME}
48 |
49 | fi
50 |
51 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/openldap-ltb.vars:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | ################################################################################
6 | # OpenLDAP variables
7 | ################################################################################
8 | BUILD_DIR="$( pwd )"
9 | REAL_NAME="openldap"
10 | REAL_VERSION="2.6.10"
11 | INSTALL_DIR="${BUILD_DIR}/debian/tmp"
12 | _LIB="lib$( uname -m | grep -q -E '64$' && echo '64' || echo '' )"
13 |
14 | SYSTEMD_SERVICE_NAME=slapd-ltb
15 | SYSTEMD_LLOAD_SERVICE_NAME=lload-ltb
16 |
17 | LDAPDIR="/usr/local/openldap"
18 | LDAPSERVERDIR="${LDAPDIR}"
19 | LDAPDATADIR="${LDAPSERVERDIR}/var/openldap-data"
20 | LDAPCONFDIR="${LDAPSERVERDIR}/etc/openldap/slapd.d"
21 | LDAPBACKUPDIR="/var/backups/openldap"
22 | LDAPLOGDIR="/var/log/slapd-ltb"
23 | LDAPLOGFILE="${LDAPLOGDIR}/slapd.log"
24 |
25 | LDAPUSER="ldap"
26 | LDAPGROUP="ldap"
27 |
28 |
29 | ################################################################################
30 | # Other dependencies variables
31 | ################################################################################
32 |
33 | THIRD_PARTY_PATH="../3rdparty"
34 |
35 | # slapd-cli
36 | SLAPD_CLI_NAME="slapd-cli"
37 | SLAPD_CLI_VERSION="3.5"
38 | SLAPD_CLI_BIN="${LDAPSERVERDIR}/sbin/slapd-cli"
39 | SLAPD_CLI_CONF="${LDAPSERVERDIR}/etc/openldap/slapd-cli.conf"
40 | SLAPD_CLI_FLAT_CONFIG_TEMPLATE="${LDAPSERVERDIR}/etc/openldap/config-template-2.6.conf"
41 | SLAPD_CLI_LDIF_CONFIG_TEMPLATE="${LDAPSERVERDIR}/etc/openldap/config-template-2.6.ldif"
42 | SLAPD_CLI_DATA_TEMPLATE="${LDAPSERVERDIR}/etc/openldap/data-template-2.6.ldif"
43 | SLAPD_CLI_LLOAD_CONF="${LDAPSERVERDIR}/etc/openldap/lload.conf"
44 |
45 | # ppm
46 | PPM_NAME="ppm"
47 | PPM_VERSION="2.2"
48 | PPM_CONF="${LDAPSERVERDIR}/etc/openldap/ppm.example"
49 |
50 | # profile script
51 | OPENLDAP_PROFILE_FILE="openldap-profile.sh"
52 |
53 | # explockout
54 | EXPL_NAME="explockout"
55 | EXPL_VERSION="1.2"
56 |
57 | # Get debian version
58 | DEBIAN_VERSION=$( cat /etc/debian_version | sed -e 's/\..*$//' \
59 | -e 's/.*lenny.*/5/i' \
60 | -e 's/.*squeeze.*/6/i' \
61 | -e 's/.*wheezy.*/7/i' \
62 | -e 's/.*jessie.*/8/i' \
63 | -e 's/.*stretch.*/9/i' \
64 | -e 's/.*buster.*/10/i' \
65 | -e 's/.*bullseye.*/11/i' \
66 | -e 's/^.*[^0-9].*$/1/' )
67 |
68 |
69 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/patches/pw-sha2.patch:
--------------------------------------------------------------------------------
1 | --- contrib/slapd-modules/passwd/sha2/Makefile 2024-05-24 17:36:52.698368571 +0200
2 | +++ contrib/slapd-modules/passwd/sha2/Makefile.patch 2024-05-24 17:56:42.685677280 +0200
3 | @@ -9,7 +9,7 @@
4 | LIBTOOL = $(LDAP_BUILD)/libtool
5 | INSTALL = /usr/bin/install
6 | CC = gcc
7 | -OPT = -g -O2
8 | +OPT = -g -O2 -fno-strict-aliasing
9 | DEFS =
10 | #DEFS = -DSLAPD_SHA2_DEBUG
11 | INCS = $(LDAP_INC)
12 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/postbuild:
--------------------------------------------------------------------------------
1 | #!/bin/bash -x
2 |
3 | BASEDIR=$(dirname $0)
4 | source $BASEDIR/openldap-ltb.vars
5 |
6 |
7 | # create some directories
8 | mkdir -p "${INSTALL_DIR}/${LDAPDATADIR}"
9 | mkdir -p "${INSTALL_DIR}/etc/profile.d"
10 | mkdir -p "${INSTALL_DIR}/lib/systemd/system"
11 |
12 |
13 | # copy 3rd party files
14 |
15 | ## systemd
16 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/${SYSTEMD_SERVICE_NAME}.service" "${INSTALL_DIR}/lib/systemd/system/"
17 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/${SYSTEMD_LLOAD_SERVICE_NAME}.service" "${INSTALL_DIR}/lib/systemd/system"
18 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/${SYSTEMD_SERVICE_NAME}@.service" "${INSTALL_DIR}/lib/systemd/system/"
19 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/${SYSTEMD_LLOAD_SERVICE_NAME}@.service" "${INSTALL_DIR}/lib/systemd/system"
20 |
21 | ## profile
22 | install -m 755 "${THIRD_PARTY_PATH}/${OPENLDAP_PROFILE_FILE}" "${INSTALL_DIR}/etc/profile.d"
23 |
24 | ## slapd-cli
25 | install -m 755 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/slapd-cli" "${INSTALL_DIR}${SLAPD_CLI_BIN}"
26 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/slapd-cli.conf" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
27 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/config-template-2.6.conf" "${INSTALL_DIR}${SLAPD_CLI_FLAT_CONFIG_TEMPLATE}"
28 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/config-template-2.6.ldif" "${INSTALL_DIR}${SLAPD_CLI_LDIF_CONFIG_TEMPLATE}"
29 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/data-template-2.6.ldif" "${INSTALL_DIR}${SLAPD_CLI_DATA_TEMPLATE}"
30 | install -m 640 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/lload.conf" "${INSTALL_DIR}${SLAPD_CLI_LLOAD_CONF}"
31 | mkdir -p "${INSTALL_DIR}/etc/bash_completion.d/"
32 | install -m 644 "${THIRD_PARTY_PATH}/${SLAPD_CLI_NAME}-${SLAPD_CLI_VERSION}/slapd-cli-prompt" "${INSTALL_DIR}/etc/bash_completion.d/"
33 |
34 | # replace variables in slapd-cli.conf
35 | sed -i "s:^SLAPD_PATH.*:SLAPD_PATH=\"${LDAPDIR}\":" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
36 | sed -i "s:^SLAPD_USER.*:SLAPD_USER=\"${LDAPUSER}\":" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
37 | sed -i "s:^SLAPD_GROUP.*:SLAPD_GROUP=\"${LDAPGROUP}\":" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
38 | sed -i "s:^BACKUP_PATH.*:BACKUP_PATH=\"${LDAPBACKUPDIR}\":" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
39 | sed -i "s:^SLAPD_CONF_DIR.*:SLAPD_CONF_DIR=\"${LDAPCONFDIR}\":" "${INSTALL_DIR}${SLAPD_CLI_CONF}"
40 |
41 | # PATH modification
42 | sed -i "s:^OL_BIN.*:OL_BIN=\"${LDAPDIR}/bin\":" "${INSTALL_DIR}/etc/profile.d/${OPENLDAP_PROFILE_FILE}"
43 | sed -i "s:^OL_SBIN.*:OL_SBIN=\"${LDAPDIR}/sbin\":" "${INSTALL_DIR}/etc/profile.d/${OPENLDAP_PROFILE_FILE}"
44 |
45 | # Modify data directory in slapd.conf
46 | sed -i "s:^directory.*:directory\t\"${LDAPDATADIR}\":" "${INSTALL_DIR}${LDAPDIR}/etc/openldap/slapd.conf"
47 |
48 | ############################
49 | # Build other dependencies
50 | ############################
51 |
52 | # Compilation
53 |
54 | # explockout
55 | cd ${THIRD_PARTY_PATH}/${EXPL_NAME}-${EXPL_VERSION}
56 | make clean
57 | make "OLDAP_SOURCES=${BUILD_DIR}" "LIBDIR=${LDAPSERVERDIR}/libexec/openldap"
58 | cd ${BUILD_DIR}
59 |
60 | # ppm
61 | cd ${THIRD_PARTY_PATH}/${PPM_NAME}-${PPM_VERSION}
62 | make clean
63 | make LDAP_SRC=${BUILD_DIR} prefix=${LDAPSERVERDIR} libdir=${LDAPSERVERDIR}/lib64
64 | make doc prefix=${LDAPSERVERDIR}
65 | make test LDAP_SRC=${BUILD_DIR} prefix=${LDAPSERVERDIR} libdir=${LDAPSERVERDIR}/lib64
66 | cd ${BUILD_DIR}
67 |
68 | # contrib-overlays
69 | cd contrib/slapd-modules
70 | ## sha512
71 | cd passwd/sha2
72 | make clean
73 | make "prefix=${LDAPSERVERDIR}"
74 | cd ../..
75 | ## pbkdf2
76 | cd passwd/pbkdf2
77 | make clean
78 | make "prefix=${LDAPSERVERDIR}" "LDAP_LIB="
79 | cd ../..
80 | ## autogroup
81 | cd autogroup
82 | make clean
83 | make "prefix=${LDAPSERVERDIR}"
84 | cd ..
85 | ## smbk5pwd
86 | cd smbk5pwd
87 | make clean
88 | make "DEFS=-DDO_SAMBA -DDO_SHADOW" "HEIMDAL_LIB=" "LDAP_LIB=-L../../../libraries/liblber/.libs/ -L../../../libraries/libldap/.libs/ -lldap -llber" "prefix=${LDAPSERVERDIR}"
89 | cd ..
90 | ## nssov
91 | cd nssov
92 | make clean
93 | make "prefix=${LDAPSERVERDIR}"
94 | cd ..
95 | ## noopsrch
96 | cd noopsrch
97 | make clean
98 | make "prefix=${LDAPSERVERDIR}"
99 | cd ..
100 | # variant
101 | cd variant
102 | make clean
103 | make "prefix=${LDAPSERVERDIR}"
104 | cd ..
105 | # vc
106 | cd vc
107 | make clean
108 | make "prefix=${LDAPSERVERDIR}"
109 | cd ..
110 |
111 |
112 | cd ../..
113 |
114 | # mdb-utils
115 | cd libraries/liblmdb
116 | make clean
117 | make
118 | cd ../..
119 |
120 |
121 | # Installation
122 |
123 | # explockout
124 | cd ${THIRD_PARTY_PATH}/${EXPL_NAME}-${EXPL_VERSION}
125 | mkdir -p "${INSTALL_DIR}${LDAPSERVERDIR}/libexec/openldap"
126 | mkdir -p "${INSTALL_DIR}${LDAPSERVERDIR}/share/man/man5"
127 | make install "OLDAP_SOURCES=${BUILD_DIR}" "DSTDIR=${INSTALL_DIR}${LDAPSERVERDIR}/libexec/openldap"
128 | install -m 644 "slapo-explockout.5" "${INSTALL_DIR}${LDAPSERVERDIR}/share/man/man5"
129 | cd ${BUILD_DIR}
130 |
131 | cd ${THIRD_PARTY_PATH}/${PPM_NAME}-${PPM_VERSION}
132 | mkdir -p "${INSTALL_DIR}${PPM_CONF%/*}"
133 | make install "LDAP_SRC=${BUILD_DIR}" "prefix=${INSTALL_DIR}${LDAPSERVERDIR}" "libdir=${INSTALL_DIR}${LDAPSERVERDIR}/libexec/openldap"
134 | cp ppm_test "${INSTALL_DIR}${LDAPSERVERDIR}/libexec/openldap/"
135 | cd ${BUILD_DIR}
136 |
137 | # contrib-overlays
138 | cd contrib/slapd-modules
139 | cd passwd/sha2
140 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
141 | cd ../..
142 | cd passwd/pbkdf2
143 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
144 | cd ../..
145 | cd autogroup
146 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
147 | cd ..
148 | cd smbk5pwd
149 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
150 | cd ..
151 | cd nssov
152 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
153 | cd ..
154 | cd noopsrch
155 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
156 | cd ..
157 | cd variant
158 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
159 | cd ..
160 | cd vc
161 | make install "prefix=${INSTALL_DIR}${LDAPSERVERDIR}"
162 | cd ..
163 |
164 |
165 | cd ../..
166 |
167 | # mdb-utils
168 | cd libraries/liblmdb
169 | install -m 755 "mdb_copy" "${INSTALL_DIR}${LDAPSERVERDIR}/sbin"
170 | install -m 755 "mdb_stat" "${INSTALL_DIR}${LDAPSERVERDIR}/sbin"
171 | install -m 644 "mdb_copy.1" "${INSTALL_DIR}${LDAPSERVERDIR}/share/man/man1"
172 | install -m 644 "mdb_stat.1" "${INSTALL_DIR}${LDAPSERVERDIR}/share/man/man1"
173 | cd ../..
174 |
175 | # Install lintian profile
176 | mkdir -p ${INSTALL_DIR}/usr/share/lintian/profiles/debian
177 | cp debian/openldap-ltb.lintian.profile ${INSTALL_DIR}/usr/share/lintian/profiles/debian/openldap-ltb.profile
178 |
179 | # Clean dependency_libs field in every *.la file
180 | find ${INSTALL_DIR} -name '*.la' | xargs -I {} sed -i "/dependency_libs/ s/'.*'/''/" {}
181 |
182 | # Create link to ldapi socket
183 | ln -s "/var/run/slapd/ldapi" "${INSTALL_DIR}${LDAPSERVERDIR}/var/run/ldapi"
184 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 | # Sample debian/rules that uses debhelper.
3 | # This file is public domain software, originally written by Joey Hess.
4 | #
5 | # This version is for a hypothetical package that builds an
6 | # architecture-dependant package, as well as an architecture-independent
7 | # package.
8 |
9 | # Uncomment this to turn on verbose mode.
10 | export DH_VERBOSE=1
11 | # export DEB_BUILD_OPTIONS="nostrip"
12 |
13 | build: build-stamp
14 | build-stamp:
15 | dh_testdir
16 |
17 | # Add here commands to compile the package.
18 | debian/configure
19 | make depend
20 | make
21 |
22 | touch build-stamp
23 |
24 | clean:
25 | dh_testdir
26 | dh_testroot
27 | rm -f build-stamp
28 |
29 | # Add here commands to clean up after the build process.
30 | if [ -f Makefile ]; then make clean; fi
31 | if [ -f Makefile ]; then make distclean; fi
32 | find . -name "*.so.*" -o -name "*.so" -o -name "*.o" | xargs -I {} rm -f {}
33 | find . -name "*.la" -o -name "*.lo" -o -name "*.lai" -o -name "*.a" | xargs -I {} rm -f {}
34 | rm -f include/stamp-h*
35 | (cd libraries/liblmdb && make clean)
36 |
37 | dh_clean
38 | for oldap_patch in `pwd`/debian/patches/*.patch; do \
39 | if ! patch -R -p0 -s -f --dry-run < $$oldap_patch >/dev/null 2>&1; then \
40 | patch --forward -p0 < $$oldap_patch ; \
41 | fi \
42 | done
43 |
44 | install:
45 | install: build
46 | dh_testdir
47 | dh_testroot
48 | dh_prep
49 | dh_installdirs
50 |
51 | # Add here commands to install the package into debian/tmp.
52 | make DESTDIR=`pwd`/debian/tmp install STRIP_OPTS=""
53 | debian/postbuild
54 | mkdir -p `pwd`/debian/openldap-ltb/DEBIAN
55 | cp `pwd`/debian/openldap-ltb.vars `pwd`/debian/openldap-ltb/DEBIAN/vars
56 |
57 | dh_install
58 |
59 | # Build architecture-independent files here.
60 | binary-indep: build install
61 | dh_testdir -i
62 | dh_testroot -i
63 | dh_installchangelogs -i
64 | dh_installdocs -i
65 | dh_installexamples -i
66 | # dh_installmenu -i
67 | # dh_installdebconf -i
68 | # dh_installlogrotate -i
69 | # dh_installemacsen -i
70 | # dh_installcatalogs -i
71 | # dh_installpam -i
72 | # dh_installmime -i
73 | # dh_installinit -i
74 | # dh_installcron -i
75 | # dh_installinfo -i
76 | # dh_installwm -i
77 | # dh_installudev -i
78 | # dh_lintian -i
79 | # dh_undocumented -i
80 | dh_installman -i
81 | dh_link -i
82 | dh_compress -i
83 | dh_fixperms -i
84 | # dh_perl -i
85 | # dh_python -i
86 | dh_installdeb -i
87 | dh_gencontrol -i
88 | dh_md5sums -i
89 | dh_builddeb -i -- -Zxz
90 |
91 | # Build architecture-dependent files here.
92 | binary-arch: build install
93 | dh_testdir -a
94 | dh_testroot -a
95 | dh_installchangelogs -a
96 | dh_installdocs -a
97 | dh_installexamples -a
98 | dh_installmenu -a
99 | # dh_installdebconf -a
100 | # dh_installlogrotate -a
101 | # dh_installemacsen -a
102 | # dh_installcatalogs -a
103 | # dh_installpam -a
104 | # dh_installmime -a
105 | # dh_installinit -a
106 | # dh_installcron -a
107 | # dh_installinfo -a
108 | # dh_installwm -a
109 | # dh_installudev -a
110 | dh_lintian -a
111 | # dh_undocumented -a
112 | dh_installman -a
113 | dh_strip -a --dbg-package=openldap-ltb-dbg
114 | dh_link -a
115 | dh_compress -a
116 | dh_fixperms -a
117 | # dh_perl -a
118 | # dh_python -a
119 | dh_makeshlibs -a
120 | dh_installdeb -a
121 | dh_shlibdeps -a -l`pwd`/libraries/liblber/.libs:`pwd`/libraries/libldap/.libs
122 | dh_gencontrol -a
123 | dh_md5sums -a
124 | dh_builddeb -a -- -Zxz
125 |
126 | binary: binary-indep binary-arch
127 | .PHONY: build clean binary-indep binary-arch binary install
128 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (native)
2 |
--------------------------------------------------------------------------------
/openldap-ltb/debian/watch.ex:
--------------------------------------------------------------------------------
1 | # Example watch control file for uscan
2 | # Rename this file to "watch" and then you can run the "uscan" command
3 | # to check for upstream updates and more.
4 | # See uscan(1) for format
5 |
6 | # Compulsory line, this is a version 3 file
7 | version=3
8 |
9 | # Uncomment to examine a Webpage
10 | #
11 | #http://www.example.com/downloads.php openldap-(.*)\.tar\.gz
12 |
13 | # Uncomment to examine a Webserver directory
14 | #http://www.example.com/pub/openldap-(.*)\.tar\.gz
15 |
16 | # Uncommment to examine a FTP server
17 | #ftp://ftp.example.com/pub/openldap-(.*)\.tar\.gz debian uupdate
18 |
19 | # Uncomment to find new files on sourceforge, for devscripts >= 2.9
20 | # http://sf.net/openldap/openldap-(.*)\.tar\.gz
21 |
22 | # Uncomment to find new files on GooglePages
23 | # http://example.googlepages.com/foo.html openldap-(.*)\.tar\.gz
24 |
--------------------------------------------------------------------------------