Director:

Director {                            # define myself
  Name = smitty
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/etc/bacula/"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
  Password = "test"         # Console password
  Messages = Daemon
}
#
#JobDefs {
#  Name = "RegularUsers"
#  Type = Backup
#  Level = Incremental
#  FileSet = "cubert-test"
#  Schedule = "test"
#  Storage = File
#  Messages = Standard
#  Pool = Default
#  Priority = 10
#}
#

#
# Define the main nightly save backup job
#   By default, this job will back up to disk in
Job {
  Name = "cubert-test"
  Client = "cubert-fd"
  Type = "Backup"
  Messages = "Test"
  Schedule = "cubert-test"
  Pool = "test"
  Storage = "smitty-sd"
  FileSet = "cubert-test"
  Write Bootstrap = "/etc/bacula//cubert-fd.bsr"
}

#Job {
#  Name = "Client2"
#  Client = smitty2-fd
#  JobDefs = "DefaultJob"
#  Write Bootstrap = "/etc/bacula//Client2.bsr"
#}

# Backup the catalog database (after the nightly save)
#Job {
#  Name = "BackupCatalog"
#  JobDefs = "DefaultJob"
#  Level = Full
#  FileSet="Catalog"
#  Schedule = "WeeklyCycleAfterBackup"
#  # This creates an ASCII copy of the catalog
#  RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
#  # This deletes the copy of the catalog
#  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
#  Write Bootstrap = "/etc/bacula//BackupCatalog.bsr"
#  Priority = 11                   # run after main backup
#}

#
# Standard Restore template, to be changed by Console program
#  Only one such job is needed for all Jobs/Clients/Storage ...
#
#Job {
#  Name = "RestoreFiles"
#  Type = Restore
#  Client=smitty-fd
#  FileSet="Full Set"
#  Storage = File
#  Pool = Default
#  Messages = Standard
#  Where = /bacula-restores
#}


# List of files to be backed up
FileSet {
  Name = "cubert-test"
  Include {
    Options {
       WildFile = "*.obj"
       WildFile = "*.exe"
      signature = MD5
    }
    File = "c:/Documents and Settings\administrator.MLC\My Documents"
  }
}

#
# When to do the backups, full backup on first sunday of the month,
#  differential (i.e. incremental since full) every other sunday,
#  and incremental backups other days
Schedule {
  Name = "cubert-test"
  Run = Full mon at 12:15
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

# This is the backup of the catalog
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /etc/bacula//bacula.sql
  }
}

# Client (File Services) to backup
Client {
  Name = cubert-fd
  Address = cubert.themusiclink.neti
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Id0WKutp//7VQfKMYteTipwo0/Ga7pWE0wUkb35W3ixp"          #
password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

#
# Second Client (File Services) to backup
#  You should change Name, Address, and Password before using
#
#Client {
#  Name = smitty2-fd
#  Address = smitty2
#  FDPort = 9102
#  Catalog = MyCatalog
#  Password = "Id0WKutp//7VQfKMYteTipwo0/Ga7pWE0wUkb35W3ixp2"         #
password for FileDaemon 2
#  File Retention = 30 days            # 30 days
#  Job Retention = 6 months            # six months
#  AutoPrune = yes                     # Prune expired Jobs/Files
#}


# Definition of file storage device
Storage {
  Name = smitty-sd
# Do not use "localhost" here
  Address = smitty.themusiclink.net                # N.B. Use a fully
qualified name here
  SDPort = 9103
  Password = "PgUs/XTUk7swX5/Wdn765nq2zf9Kyb6kXOJfJDwjiWuC"
  Device = FileStorage
  Media Type = File
}



# Definition of DDS tape storage device
#Storage {
#  Name = DDS-4
#  Do not use "localhost" here
#  Address = smitty                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "PgUs/XTUk7swX5/Wdn765nq2zf9Kyb6kXOJfJDwjiWuC"          #
password for Storage daemon
#  Device = DDS-4                      # must be same as Device in Storage
daemon
#  Media Type = DDS-4                  # must be same as MediaType in
Storage daemon
#  Autochanger = yes                   # enable for autochanger device
#}

# Definition of 8mm tape storage device
#Storage {
#  Name = "8mmDrive"
#  Do not use "localhost" here
#  Address = smitty                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "PgUs/XTUk7swX5/Wdn765nq2zf9Kyb6kXOJfJDwjiWuC"
#  Device = "Exabyte 8mm"
#  MediaType = "8mm"
#}

# Definition of DVD storage device
#Storage {
#  Name = "DVD"
#  Do not use "localhost" here
#  Address = smitty                # N.B. Use a fully qualified name here
#  SDPort = 9103
#  Password = "PgUs/XTUk7swX5/Wdn765nq2zf9Kyb6kXOJfJDwjiWuC"
#  Device = "DVD Writer"
#  MediaType = "DVD"
#}


# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Test
  Mail = [EMAIL PROTECTED] = all
  operator = [EMAIL PROTECTED] = mount
  append = "/etc/bacula/log" = all
}
#
# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
#  What this does is, it sets the email address that emails would display
#  in the FROM field, which is by default the same email as they're being
#  sent to.  However, if you send email to more than one address, then
#  you'll have to set the FROM address manually, to a single address.
#  for example, a '[EMAIL PROTECTED]', is better since that tends to
#  tell (most) people that its coming from an automated source.

#
#  mailcommand = "/etc/bacula//bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula: %t %e of %c %l\" %r"
# E operatorcommand = "/etc/bacula//bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
#  mail = [EMAIL PROTECTED] = all, !skipped
#  operator = [EMAIL PROTECTED] = mount
#  console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
#  append = "/etc/bacula//log" = all, !skipped
#}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
#
  mail = [EMAIL PROTECTED] = all, !skipped
  console = all, !skipped, !saved
  append = "/etc/bacula//log" = all, !skipped
}




# Default pool definition
Pool {
  Name = test
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle
Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
}

# Scratch pool definition
Pool {
  Name = Scratch
  Pool Type = Backup
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = smitty-mon
  Password = "test"
  CommandACL = status, .status
}

CONSOLE:

#
# Bacula User Agent (or Console) Configuration File
#

Director {
  Name = smitty
  DIRport = 9101
  address = 23.23.23.4
  Password = "test"
}


-----Original Message-----
From: John Drescher [mailto:[EMAIL PROTECTED]
Sent: Friday, February 15, 2008 10:05 AM
To: Justin Francesconi; bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] bconsole failing authorization with director


On Fri, Feb 15, 2008 at 11:51 AM, Justin Francesconi
<[EMAIL PROTECTED]> wrote:
>
>
>
> Hi.
>
> OS: CentOS 5.1
> Bacula Version: 2.28
> SQL: PostgreSQL
> Issue: I believe I have finally got bacula mostly configured.  Mostly
> because I still have on last issue.  I am able to start all the daemons,
> thats all fine, but I can't connect to the director via console.
>
> So, I go ./bconsole, and I get this in return:
>
> Connecting to Director 23.23.23.xx:9102
> Director authorization problem.
> Most likely the passwords do not agree.
> If you are using TLS, there may have been a certificate validation error
> during the TLS handshake.
>
> Here's what I HAVE tried:
> -restarted bacula services (./bacula restart)
> -changed each .conf file (console, dir, sd, fd) so the password was
"test".
I assume you restarted all the services after changing the config
files. Also did you change the password in the /etc/bconsole.conf file

> -verified all IP settings/name settings are correct
>
Although this should not matter in your case, but I assume you are not
using 127.0.0.1 anywhere.

Can you post your configs?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to