Commit graph

1097 commits

Author SHA1 Message Date
Alexandre Aubin
d516cf8ed2 We need to be able to run postinstall without authenticating ... otherwise we can't run the postinstall from the webadmin 2019-08-13 00:34:34 +02:00
Alexandre Aubin
6f48d1d855 Get rid of those sudo's ... otherwise, because sudo is in fact sudo-ldap, might create weird errors or stuck situation where everything is broken because slapd is stopped and the regenconf can't restart it 2019-08-12 11:16:07 +02:00
Alexandre Aubin
0a2d1c7eb6 We need this also to have proper permissions on certs 2019-08-12 11:16:04 +02:00
Alexandre Aubin
dde3a19350 Fix some critical permissions issues with ssl / slapd configuration 2019-08-12 01:56:24 +02:00
Bram
376cce4f53
Merge pull request #752 from YunoHost/fix_getopts
[fix] Fix values starting by - in getopts
2019-08-05 11:25:03 +02:00
Alexandre Aubin
5409351096
Merge pull request #755 from yalh76/openldap-tls
[enh] Add OpenLDAP TLS support
2019-08-04 00:24:38 +02:00
Alexandre Aubin
10f1651022
Moving to the post-regen part because the pre-regen part should touch as little as possible of the actual system config 2019-08-03 21:00:44 +02:00
yalh76
bae6fe86f3 spelling 2019-08-01 22:28:55 +02:00
Bram
ea443495eb
Merge pull request #749 from YunoHost/enh-debian-vendor
[enh] Dpkg vendor set to YunoHost
2019-07-28 06:10:30 +02:00
Maniack Crudelis
0ad8daa6ae
Remove escape character in getopts 2019-07-21 18:35:19 +02:00
Alexandre Aubin
7e99541064 Fix legit variable getting caught as an info to be redacted by the core 2019-07-18 18:16:46 +02:00
yalh76
577d8f477f Add openldap user in the ssl-cert grou 2019-07-14 14:25:09 +02:00
yalh76
ca95035f72 Adding openldap TLS support 2019-07-14 12:26:59 +02:00
Alexandre Aubin
46310dbb6c Misc fixes in helpers comments to fix/improve autogenerated doc 2019-07-11 22:51:41 +02:00
Maniack Crudelis
3a8d312ed2
[fix] Fix values starting by - in getopts 2019-07-09 20:06:16 +02:00
ljf
a2759b76dc [enh] Dpkg vendor set to YunoHost 2019-07-07 22:09:38 +02:00
Alexandre Aubin
59e2db99ba
Merge branch 'stretch-unstable' into group_permission 2019-07-05 20:59:10 +02:00
Alexandre Aubin
fbfa249ff5 Remove binding to IPv6 ::1 as it makes ipv4-only instances crash... (unable to bind to ::1) 2019-07-05 20:50:13 +02:00
Alexandre Aubin
3c0e0ca6c9
Merge pull request #742 from YunoHost/redact-secrets-from-logs
[enh] Redact secrets from logs
2019-07-02 22:02:03 +02:00
Alexandre Aubin
8917238159
Merge pull request #739 from YunoHost/proper-return-interface-for-app-config
[mod] Proper return interface for app config
2019-07-02 22:01:18 +02:00
Alexandre Aubin
aa25fff70a
Merge pull request #741 from YunoHost/less-madness-in-debug-log-from-script-progression
Use set +x / -x to hide the whole ynh_script_progression computation
2019-06-30 00:30:33 +02:00
Alexandre Aubin
5f1988c2ca Change the variable name so that it's catched by the redacting mechanism 2019-06-27 03:31:03 +02:00
Alexandre Aubin
5c7bad8472 Why not use the global variable here ... 2019-06-27 03:18:08 +02:00
Alexandre Aubin
b9197b6269 Fix 'unable to write random state in SSL init (same patch as for yunohost-admin) 2019-06-27 00:57:28 +02:00
Alexandre Aubin
8f72860e78
Use set +x / -x to hide the whole ynh_script_progression computation 2019-06-19 22:39:31 +02:00
Alexandre Aubin
5262b52cff Add a helper to easily return stuff in config script 2019-06-18 16:03:00 +02:00
Alexandre Aubin
3e75957f96
Merge pull request #731 from YunoHost/do_not_backup_data
Add exception for data backup
2019-06-17 14:23:46 +02:00
Maniack Crudelis
01e3be24da
Update data/helpers.d/backup
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2019-06-14 22:31:47 +02:00
Alexandre Aubin
e93526321a
Merge pull request #733 from YunoHost/ynh_print_off
Fix ynh_print_OFF when set -x is used in other helpers
2019-06-07 22:10:03 +02:00
Alexandre Aubin
d8b086a06a [fix] Running slapindex seems to fix the previous issues about LDAP indexing stuff 2019-06-06 19:26:49 +02:00
Alexandre Aubin
e63d3986b2 [fix] This need quotes because this can be sourced by another program 2019-06-05 17:33:53 +02:00
Alexandre Aubin
7ecd606d04 [fix] Do not index cn,mail and virtualdomain as it's causing some weird issues in the mail stack ... 2019-06-05 16:25:25 +02:00
Alexandre Aubin
769ba5771d Indexing gidNumber / uidNumber trigger weird issues when logging in through SSH (or the 'I have no name' shell when loggin in as admin) 2019-06-04 15:09:09 +02:00
Alexandre Aubin
61a9790978
Merge pull request #724 from YunoHost/unecessary-log-messages
Remove unecessary log messages
2019-06-04 00:14:05 +02:00
Maniack Crudelis
dcc493934c
Fix ynh_print_OFF when set -x is used in other helpers 2019-06-01 22:47:22 +02:00
Alexandre Aubin
ad3ebceff6 Fix old 'auth' thing in app helpers 2019-05-31 18:45:21 +02:00
Alexandre Aubin
24cfc15536 Merge branch 'stretch-unstable' into group_permission 2019-05-31 18:15:09 +02:00
Maniack Crudelis
68c30a943a
Add exception for data backup 2019-05-29 12:57:31 +02:00
Josué Tille
f839ec5153
Improve restoration mecanisme for LDAP integrity 2019-05-26 00:54:57 +02:00
MCMic
a1ab50dcf1
Add indexes for fields listed by slapd in the logs
I get lots of suggestion of indexes by slapd in my logs:

 <= mdb_equality_candidates: (cn) not indexed
 <= mdb_equality_candidates: (gidNumber) not indexed
 <= mdb_equality_candidates: (mail) not indexed
 <= mdb_equality_candidates: (member) not indexed
 <= mdb_equality_candidates: (memberUid) not indexed
 <= mdb_equality_candidates: (sudoUser) not indexed
 <= mdb_equality_candidates: (uidNumber) not indexed
 <= mdb_equality_candidates: (uniqueMember) not indexed
 <= mdb_equality_candidates: (virtualdomain) not indexed
 <= mdb_substring_candidates: (sudoUser) not indexed

Since Yunohost makes it hard to edit LDAP server configuration (see https://github.com/YunoHost/issues/issues/1350), the default configuration should contain indexes for the fields used by Yunohost a lot.
2019-05-23 14:49:27 +00:00
Alexandre Aubin
b3d29238c4
Merge pull request #721 from YunoHost/authenticate-as-root
[enh] Simplify the whole LDAP interface thing
2019-05-22 17:51:04 +02:00
Alexandre Aubin
6cdffe77a7
Merge pull request #687 from YunoHost/crash_debugger
Dump ynh log if an app script fails
2019-05-22 17:42:58 +02:00
Maximilien Thiel
d31c81b18d [fix] Update censurfridns ipv6
Previous Unicast IPV6 for censurfridns,dk was out of date
2019-05-21 16:35:52 +01:00
Alexandre Aubin
81c7d121d5
Merge pull request #720 from YunoHost/helpers_sso_settings
Add helpers for sso config
2019-05-21 15:07:28 +02:00
Alexandre Aubin
a61f956a03
Set minimum version for these new helpers 2019-05-21 15:07:13 +02:00
Alexandre Aubin
f14d5c4543
Merge pull request #723 from YunoHost/optimize-script-progression
Optimize ynh_script_progression
2019-05-21 15:06:10 +02:00
Alexandre Aubin
6376b05b60 Add a small tempo to avoid the next message being mixed up with other DEBUG messages 2019-05-18 19:29:18 +02:00
Alexandre Aubin
899d3d4f10 Improve ynh_exit_properly detection for case where failure happens right at the beginning 2019-05-18 18:46:46 +02:00
Alexandre Aubin
95d2c8f799 Inject a new environment variable YNH_INTERFACE to test inside helpers if we're using Yunohost from the CLI or API 2019-05-18 18:31:02 +02:00
Maniack Crudelis
ee33e60ab3 Set min version to 3.5.0 for helpers 2019-05-18 11:47:50 +02:00