Commit graph

529 commits

Author SHA1 Message Date
Quanah Gibson-Mount
4feb73d349 Happy New Year! 2021-01-11 19:32:31 +00:00
Ondřej Kuzník
d3cccc3580 ITS#8731 General Debug() related fixes 2020-10-15 17:58:31 +00:00
Quanah Gibson-Mount
f64ee2ee33 ITS#9308 - ensure "i" is initialized 2020-08-05 23:07:57 +00:00
Quanah Gibson-Mount
e40678626e ITS#9275 -- Update wording to remove slave and master terms, consolidate on provider/consumer 2020-06-22 19:11:40 +00:00
Quanah Gibson-Mount
07e2929cec Issue#9248 - Fix default prefix value 2020-06-01 16:38:48 +00:00
Ryan Tandy
ba50189b0b ITS#9203 Remove default values from slapd-pw-argon2.5
The defaults vary by crypto library and possibly even version, so it's
not worth trying to keep them accurate.
2020-04-21 19:40:55 +00:00
Ryan Tandy
59bed7e646 ITS#9206 Use argon2id default values explicitly 2020-04-21 19:40:49 +00:00
Ryan Tandy
0740563682 ITS#9206 Convert libsodium default memlimit to KiB 2020-04-21 19:40:45 +00:00
Ryan Tandy
511ad09878 ITS#9206 Initialize libsodium before calling its functions 2020-04-21 19:40:42 +00:00
Peter Marschall
8ff8163187 ITS#9206 contrib/passwd/argon2: consolidate libsodium implementation
* use 'crypto_pwhash_str_alg(..., crypto_pwhash_ALG_ARGON2ID13)' to set
  the algorithm to Argon2.
  According to libsodium's documentation, the original 'crypto_pwhash_str()'
  only guarantees a "memory-hard, CPU-intensive hash function", but not
  necessarily Argon2.  Although in released versions of libsodium Argon2 is
  the only implemented backend, this may chane in the future.
* multiply the 'memory' parameter by 1024 to align it with the libargon2
  implementation. The objective is to have consistent configuration in
  OpenLDAP's pw-argon2 module no matter what backend implementation is used.

Signed-off-by: Peter Marschall <peter@adpm.de>
2020-04-21 19:40:38 +00:00
Ryan Tandy
0ff54ddf1a ITS#9203 slapd-argon2 -> pw-argon2
Based on initial patch by Peter Marschall.
2020-04-21 19:40:33 +00:00
Peter Marschall
997ff449f0 ITS#9203 contrib/passwd/argon2: add manual page
Add manual page slapd-pw-argon2.5 and make sure it gets installed.

Signed-off-by: Peter Marschall <peter@adpm.de>
2020-04-21 19:40:30 +00:00
Ondřej Kuzník
b643f7fc9d ITS#8575 Accept parameters for hashing new passwords 2020-04-21 19:40:24 +00:00
Ondřej Kuzník
793f6ecdfd ITS#8575 Add a libsodium based implementation 2020-04-21 19:40:21 +00:00
Simon Levermann
2210a3bd84 ITS#8575 Implement argon2 password hashing as a module
This change implements argon2, which won the Password Hashing
Competition (https://password-hashing.net/) as a contrib-module in order
to provide a modern password hashing alternative in openldap. The
currently available password hashing algorithms are relatively old, and
modern hardware, especially GPUs can compute quite a few (ranging from
tens of thousands to millions) of hashes per second. Argon2 was designed
to withstand such attacks.

This implementation uses the default work factors used in the argon2
command line client, but the resulting hashes are stored in a way that
would allow retroactive changes to these values, or even exposing them
as configuration in the module.
2020-04-21 19:40:16 +00:00
Quanah Gibson-Mount
826e5580ea ITS#7855 - Update config.guess and config.sub for ldapc++ contrib module
Update config.guess and config.sub from official upstream project at https://savannah.gnu.org/projects/config/

    Specifically in this case, commit 5256817ace8493502ec88501a19e4051c2e220b0 for the date Wed Jan 1 19:36:58 2020 +1100
2020-02-03 19:13:43 +00:00
Quanah Gibson-Mount
ea3194a644 Happy New Year! 2020-01-09 17:39:19 +00:00
ck@test-centos64.cksoft.de
bbce32ed3c ITS#7721 - Allow authTimestamp updates to be forwarded via updateref 2019-06-17 18:44:31 +00:00
Quanah Gibson-Mount
37e4d827db Happy New Year! 2019-01-14 18:49:30 +00:00
Ondřej Kuzník
110409ea82 ITS#8878 Include the first character in the transformation 2018-11-08 14:56:48 +00:00
Quanah Gibson-Mount
eebf662409 Happy New Year 2018-03-22 15:41:52 +00:00
Quanah Gibson-Mount
0b70535007 ITS#8583 - Fix C++ LDAP Control structure 2017-10-11 12:42:23 -07:00
Quanah Gibson-Mount
7d2f7f0073 ITS#8587 - Fix typos 2017-03-29 11:53:37 -07:00
Emily Backes
4dbecbd15a ITS#8569 Add a manpage for slapo-autogroup 2017-01-18 12:46:07 -08:00
Quanah Gibson-Mount
691dab11a0 Happy New Year! 2017-01-03 12:38:07 -08:00
Emmanuel Dreyfus
5b3869b329 Use newer DES API so that smbk5pwd loads with newer OpenSSL
OpenSSL removed old DES API which used des_* functions.
24956ca00f

In order to link with libcrypto from recent OpenSSL releases, we need
to replace the older API des_* functions by the newer API DES_* functions.

Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
2016-11-29 09:38:18 -08:00
Hallvard Furuseth
80d341aafd Fix contrib prototypes - add ConfigReply* 2016-11-04 15:38:40 -07:00
Devin J. Pohly
c0787b698a ITS#6826 conversion scripts
These were provided as part of the original ITS but not previously committed.
Perl scripts to convert between Apache and OpenLDAP hash formats.
2016-10-17 10:28:45 -07:00
Quanah Gibson-Mount
9b5972dc9e Happy New Year! 2016-01-29 13:33:10 -06:00
Howard Chu
8c68d8dc0e ITS#8294 more for prev commit 2015-10-29 15:52:26 -05:00
Howard Chu
a634df5bef ITS#8294 avoid symbol clash with other crypto libs 2015-10-29 15:52:21 -05:00
Ryan Tandy
ad38d17290 ITS#8235 fix compiler warnings 2015-09-11 12:01:49 -05:00
Ryan Tandy
dc0d001a43 ITS#8198 use #elif instead of #else for gnutls cases
Reserve #else for actual fallback cases.
2015-08-31 10:31:01 -05:00
Luca Bruno
3e5b02540e ITS#8198 Optionally use libnettle instead of OpenSSL for crypto
OpenLDAP can be configured to be either built with OpenSSL or
GnuTLS. This commit adds support for building pw-pbkbdf2 module
without OpenSSL, by using PBKDF2 crypto primitives provided by
libnettle.
Closes hamano/openldap-pbkdf2#2

Signed-off-by: Luca Bruno <luca.bruno@rocket-internet.de>
2015-08-31 10:30:55 -05:00
Luca Bruno
137748e4b4 ITS#8198 Fix an always-true check
Fixed asprintf return value check, in order to properly catch
error conditions. This has been caught by clang -Wtautological-compare:

pw-pbkdf2.c:132:17: warning: comparison of unsigned expression < 0 is always false
        if(msg->bv_len < 0){
           ~~~~~~~~~~~ ^ ~

Signed-off-by: Luca Bruno <luca.bruno@rocket-internet.de>
2015-08-31 10:30:51 -05:00
Howard Chu
40dc951c29 Fix cfg OID typos 2015-07-28 10:46:55 -05:00
Ryan Tandy
5378877361 ITS#8097 nssov: clean up some compiler warnings 2015-04-17 13:18:30 -05:00
Ryan Tandy
99e6232914 ITS#8097 nssov: update to protocol version 2
This updates nssov for the protocol changes in nss-pam-ldapd commits
5f55781 and 6a74d8d. The protocol was changed to network byte order,
uid_t and gid_t were changed to int32_t, and the READ_TYPE and
WRITE_TYPE macros were removed. The PAM protocol was restructured to
drop the DN field and to use a common basic set of fields for all
requests.
2015-04-17 13:18:26 -05:00
Ryan Tandy
b7cb27a56c ITS#8097 nssov: update nss-pam-ldapd files to 0.9.4 2015-04-17 13:18:23 -05:00
Howard Chu
24eae911b4 ITS#8080 nssov: use old pwd if it's given 2015-03-23 11:18:36 -05:00
Ryan Tandy
a01fd59acc ITS#8080 nssov: allow user pwmod without pwdmgr configured 2015-03-23 11:18:31 -05:00
Ryan Tandy
9f50911265 ITS#8080 nssov: only allow root to become pwdmgr 2015-03-23 11:18:27 -05:00
Ryan Tandy
44e7c30eb2 ITS#8080 nssov: require old password unless pwdmgr 2015-03-23 11:18:24 -05:00
Ryan Tandy
94cd2653a0 ITS#8079 nssov: fix compare for usergroup
More for 5c527bc49e
2015-03-16 15:57:30 -05:00
Howard Chu
a90b03b001 ITS#8065 more for syncrepl compat
Use opextra to detect our own internal ops, not a public control
2015-03-09 22:07:58 -05:00
Howard Chu
b161e7caae ITS#8065 don't log/replicate internal ops 2015-03-09 22:07:49 -05:00
Howard Chu
e0522cd4e1 ITS#8006 more rootdn privs 2015-02-26 12:49:28 -06:00
Howard Chu
9a3cddf1ef More for prev commit 2015-02-26 12:46:11 -06:00
Howard Chu
106f5f3dbc More for ITS#6970
modrdn had the same bug
2015-02-26 12:45:59 -06:00
Quanah Gibson-Mount
b60820ee69 Happy New Year 2015-02-11 15:37:51 -06:00