Commit Graph

34 Commits

Author SHA1 Message Date
ajacoutot
f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00
sthen
629118de95 update to OpenLDAP 2.6.2
- BDB/HDB are no longer supported in 2.5+, if you're using these you
need to move to MDB (MDB is supported in the 2.4.x version already in
ports).

*Before* upgrading use slapcat to dump your database to an ldif file.
(You should be doing this regularly anyway)

Update your database configuration to use mdb instead of bdb.
Note that if you are using the on-line configuration database (cn=config)
rather than slapd.conf it can be fiddly to change in an existing
configuration; you may prefer to regenerate the configuration too.

Reload your database from the ldif file using slapadd (or if you are
updating a read-only replica you can let syncrepl pick it up).

- The port has switched to a modular build. The most important backends
and overlays (in particular mdb and syncrepl) are still compiled into
slapd so in those cases you don't need to make any changes to adapt to
this. If using more exotic configuration then you may need to load
the relevant modules (for OLC see "olcModuleLoad", for slapd.conf see
"moduleload").

- Switch from BUILD_DEPENDS on groff (only soelim is used) to an awk
script.

Next commit will adjust other ports to cope.
2022-05-14 15:33:58 +00:00
sthen
d2fdbde7c8 a bit of port tidying for databases/openldap, and disable some of the
not-so-useful modules that aren't available in newer versions
2022-03-25 22:06:12 +00:00
sthen
a98e0e6666 remove rcs IDs in ports that I maintain 2022-03-07 21:36:41 +00:00
sthen
a4a666f9b4 oops, previous commit which was supposed to just add an @pkgpath marker
was from a tree with a WIP openldap 2.5.x diff that's not yet ready.
reinstate 2.4.x.
2021-09-10 20:44:27 +00:00
sthen
b05cd25e7b remove the old openldap-2.3 server-only package, merge into 2.4.
if you were using the old one to avoid bdb, note that lmdb is now supported
in 2.4.x.
2021-09-10 18:20:30 +00:00
landry
9e1a0c69de databases/openldap: fix -server installs
@sample /var/openldap-data/ earlier (before /var/openldap-data/DB_CONFIG)
otherwise pkg_add complains that the file could not be installed.

ok sthen@ (MAINTAINER)
2021-07-28 07:23:34 +00:00
sthen
2d27c66046 openldap; replace most of the custom post-install target (which moved
config files from PREFIX/etc to PREFIX/share/examples) with overriding
sysconfdir in FAKE_FLAGS. Simpler, and installs the sample ldif files
to share/examples which should help new users. Req by Stefan Kapfhammer.
2020-06-18 17:42:56 +00:00
sthen
3d9308e89b update to OpenLDAP 2.4.48. while there, patch away -release in libtool args to
stop using SONAME of libldap-2.4.so.XXX (but maintain symlinks for now as other
ports are using these names).
2019-07-25 22:07:47 +00:00
sthen
c27718f7d9 update to openldap-2.4.47
- adjust the MDB writemap patch, inspired by databases/mdb, to force
writemap to be enabled (as required on OpenBSD) if not already set.
simpler to use and this allows the patches for the test suite to be removed.
2019-01-07 23:10:13 +00:00
jca
c6268faeb4 Fix @extraunexec
from Raf Czlonka, ok sthen@ (maintainer)
2018-08-25 18:22:51 +00:00
sthen
33ed5f6623 update to openldap 2.4.46 2018-03-29 19:32:12 +00:00
sthen
04bf98420e - Enable the MDB backend now that the writemap-enforcing patch has been
fixed. Document the writemap requirement in DESCR-server. Add a patchset
from Paul B. Henson to use writemap in the test suite.

- Don't @sample slapd.conf. This config backend has been deprecated for
some time and will be removed in a future OpenLDAP release. Their
recommended configuration engine is slapd-config(5), see
http://www.openldap.org/doc/admin24/slapdconf2.html

- Do @sample /etc/openldap/slapd.d, the default location for slapd-config(5)
storage. Also add accompanying @extraunexec.

- @sample some schema files that were missed in the update to 2.4.23
several years ago. Better late than never :-)
2017-08-26 12:10:55 +00:00
sthen
45533ce218 Some manpages were in the wrong subpackage; move to the correct one
and update @conflict.

This is an old bug, but only noticed after the switch to mandoc which
means that rather than rendering the manuals with groff (dereferencing
symlinks *before* packaging, so all files were present), the files
were installed directly, resulting in symlinks in the package. This
resulted in -client having symlinks to files which are in -main,
causing problems with pkg_add -u as reported by aja@.
2017-06-19 09:12:04 +00:00
espie
1d55a231e7 add is-branch to all trivial ports that exist as multiple branches. 2016-06-29 16:14:38 +00:00
pea
d8e2f5d8db *MAJOR UPGRADE*
Upgrade to OpenLDAP 2.4.23.
Important things to know:

+ ldbm backend has been removed
+ bdb is the default backend
+ slurp has been removed

Backup all your data before this upgrade !!

Tested in a bulk by landry@
Lot of help/comments/ideas/tests from ajacoutot@, jasper@, landry@, sthen@, stephan@

ok ajacoutot@, landry@, jasper@, stephan@
2011-01-07 10:24:30 +00:00
ajacoutot
d83da7798d Protect slapd.conf as it may contain passwords and/or other sensitive
informations.

"makes a lot of sense" sthen@
"ja ja" landry@
ok jasper@
2009-08-21 13:21:19 +00:00
brad
69fa2c3543 Update to OpenLDAP 2.3.42. bug fix release.
ok mbalmer@
2008-07-15 18:25:53 +00:00
landry
897eaf2c75 Install @sample /var/openldap-* as owned by unpriviledged user _openldap, and
add a pkg/MESSAGE-server teaching the user how to launch slapd in rc.local as
_openldap user.

english 'looks fine' jmc@, and ok ajacoutot@ mbalmer@ (maintainer)
2008-02-13 09:45:54 +00:00
mbalmer
9e2dae9adb Create required data directories when installing the -server subpackage and
install a sample configuration file in there.

discussed with bernd
2007-01-23 12:57:32 +00:00
mbalmer
47a7621857 slapacl and slapauth are symbolic links to slapd which is in -server, not
-client, so move them to the right PLIST.  clean up the Makefile while here.

from Mikolaj Kucharski <eth0@o2.pl>
2007-01-13 13:37:33 +00:00
bernd
288e4b31fa Three manpages went to the wrong package during the 2.3.x update.
Move them back to the -server package.

This makes updates from 3.8 conflict-free.

found by steven@, help from espie@

ok pvalchev@
2006-02-28 16:27:52 +00:00
mbalmer
ffedc5c32f Move some files from the client to the server package and bump the
package name.

hint by wilfried@, thanks!
2005-11-12 18:12:06 +00:00
mbalmer
1b612625c9 Update to OpenLDAP 2.3.11 and take maintainership.
Support for sasl2 is now built by default.

ok bernd@
2005-11-07 15:59:08 +00:00
msf
4450fd5adb - install the configuration files at install time with @sample
- bump PKGNAME

ok jakob@
2005-06-29 13:25:19 +00:00
jakob
268bf99efc create _ldapldap user and group 2005-05-02 12:19:51 +00:00
jakob
a2ca11be9e OpenLDAP v2.2.24 2005-03-22 09:13:47 +00:00
biorn
bfc9881693 Move dyngroup.schema to PLIST-server and add some directories.
ok MAINTAINER
2004-11-08 20:27:34 +00:00
jakob
ac69bf42d2 upgrade to OpenLDAP 2.2.17 2004-10-18 06:44:18 +00:00
espie
a42df1be61 new plist.
Lots of config files noted as bogus, to look at later...
2004-08-08 16:34:32 +00:00
jakob
a533afb053 update to OpenLDAP v2.1.25; work by claudio@ and myself
major port changes:

- enable IPv6
- disable kerberos
- enable meta, monitor, null and perl backends by default
- add berkley db flavour (bdb)
- remove SQL flavour (sql)
2003-12-26 10:44:10 +00:00
jakob
67d78223aa update to OpenLDAP 2.0.20; recommended security update 2002-01-15 08:35:52 +00:00
brad
989dbdae80 fix PLIST, this @dirrm tag shouldn't be here. 2001-12-19 01:15:55 +00:00
jakob
45a54217a3 split into -client and -server packages 2001-09-28 17:56:09 +00:00