diff --git a/docs/config.md b/docs/config.md index 4801415d..7b235003 100644 --- a/docs/config.md +++ b/docs/config.md @@ -18,6 +18,7 @@ ldap2pg searches for configuration file in the following order : 1. `ldap2pg.yml` in current working directory. 2. `~/.config/ldap2pg.yml`. 3. `/etc/ldap2pg.yml`. +4. `/etc/ldap2pg/ldap2pg.yml`. If `LDAP2PG_CONFIG` or `--config` is set, ldap2pg skips searching the standard file locations. diff --git a/internal/config/file.go b/internal/config/file.go index 303ac383..e82e201c 100644 --- a/internal/config/file.go +++ b/internal/config/file.go @@ -41,6 +41,8 @@ func FindConfigFile(userValue string) string { path.Join(home, "/.config/ldap2pg.yaml"), "/etc/ldap2pg.yml", "/etc/ldap2pg.yaml", + "/etc/ldap2pg/ldap2pg.yml", + "/etc/ldap2pg/ldap2pg.yaml", } return FindFile(userValue, candidates) }