title: Bareos error: Sorry, can not authenticate. Wrong username and/or password
body: <p>I wanted to give Bareos (Open Source Data Protection) a go to see how it works and performs. However I cannot even get past the basic installation and get it working...</p>
  
  <p>I followed the following installation tutorial (several times now): <a href="https://www.svennd.be/installing-bareos-on-centos-7/" rel="nofollow noreferrer">https://www.svennd.be/installing-bareos-on-centos-7/</a></p>
  
  <p>But I am getting every time the following error: Sorry, can not authenticate. Wrong username and/or password.</p>
  
  <p>I don't understand what I am doing wrong. I even tried using the previous version of Bareos 16.2, but that didn't make a difference and I experience the same issue. I am 200% sure the password and username are correct.</p>
  
  <p>I also consulted the logs:</p>
  
  <pre><code>17-Mar 13:00 bareos-dir JobId 0: Fatal error: Authorization key rejected by Console USERNAME.
  Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
  17-Mar 13:00 bareos-dir: ERROR in authenticate.c:283 Unable to authenticate console "USERNAME" at client:127.0.0.1:9101
  </code></pre>
  
  <p>I checked that page (also several times) and even made sure the (user)names/passwords were correct. But still I get the message "Sorry, can not authenticate. Wrong username and/or password." when I try to login on "bareos-webui".</p>
  
  <p>Probably I am doing something wrong, but I cannot disover what.</p>
  
  <p>I have the following files available. Maybe I need to make certain changes to those as well?</p>
  
  <ul>
  <li>/etc/bareos/bareos-dir.d/director/bareos-dir.conf</li>
  <li>/etc/bareos/bareos-fd.d/director/bareos-dir.conf</li>
  <li>/etc/bareos/bareos-sd.d/director/bareos-dir.conf</li>
  <li>/etc/bareos/bconsole.conf</li>
  <li>/etc/bareos/bareos-sd.d/storage/bareos-sd.conf</li>
  <li>/etc/bareos/bareos-dir.d/client/bareos-fd.conf</li>
  <li>/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf</li>
  </ul>
  
  <p>When I compared some files, they have different passwords in them?</p>
  
  <p>For example: /etc/bareos/bareos-fd.d/director/bareos-dir.conf</p>
  
  <pre><code>Director {
    Name = bareos-dir
    Password = "J36zN1mQVF5lLA/FP0kASo+X9wTo8D988nsVqZjx"
    Description = "Allow the configured Director to access this file daemon."
  }
  </code></pre>
  
  <p>And /etc/bareos/bareos-sd.d/director/bareos-dir.conf</p>
  
  <pre><code>Director {
    Name = bareos-dir
    Password = "PAU/ov3RvnFp0I59brd4d8u9m8ejRpkVE7P/4Qz3"
    Description = "Director, who is permitted to contact this storage daemon."
  }
  </code></pre>
  
  <p>And (one more example): /etc/bareos/bconsole.conf</p>
  
  <pre><code># Bareos User Agent (or Console) Configuration File
  
  Director {
    Name = bareos-dir
    address = localhost
    Password = "Fs5JnyO1ypBhcR0D9CNkx3gynPMa+jmp7sj9Ghst"
    Description = "Bareos Console credentials for local Director"
  }
  </code></pre>
  
  <p>They all have different passwords here? As I understand it, from the online docs, they should all be the same, right?</p>
  
  <p>Maybe that's the issue? Hopefully someone can explain things a bit better or advice me what to do in order to get this working... Maybe it's something simple that I may overlooked?</p>
  
  <p>FYI: I whitelisted all IP's and ports I use on this server.</p>
  
  <p>//small edit</p>
  
  <p>I re-read the documents once again and it says: "The default conﬁguration ﬁles are automatically deﬁned for correct authorization with random passwords. If you add to or modify these ﬁles, you will need to take care to keep them consistent."</p>
  
  <p>So if I didn't change a thing, it should have worked in the first place, right? So I think something else is wrong here?</p>