Skip to content

Commit

Permalink
Bug - bacula::director_name cannot be a CNAME
Browse files Browse the repository at this point in the history
While it's certainly possible to pass a CNAME to bacula::director_name,
doing so makes authentication fail between the Dir and SD since the Dir
only identifies itself by its canonical FQDN.  This commit changes the
Dir's identity to match the bacula::director_name so that either way is
possible.

See voxpupuli#138.

Signed-off-by: John Florian <[email protected]>
  • Loading branch information
John Florian committed Jul 5, 2019
1 parent d32e0fd commit 9708234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/bacula-dir-header.epp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Director { # define myself
Name = <%= $clientcert %>-dir
Name = <%= $bacula::director_name %>-dir
<% if $bacula::director::listen_address { -%>
DirAddresses = {
<%= epp('bacula/_listen.epp', { listen_address => $bacula::director::listen_address, port => $bacula::director::port }) %>
Expand Down

0 comments on commit 9708234

Please sign in to comment.