Skip to content

Commit

Permalink
Merge pull request #669 from robinportigliatti/master
Browse files Browse the repository at this point in the history
Adding the possibility to put conf file inside the directory /etc/lda…
  • Loading branch information
bersace authored Oct 17, 2024
2 parents c0d1af5 + a315cdb commit 43c2f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions internal/config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 43c2f11

Please sign in to comment.