// to display images directly on GitHub
ifdef::env-github[]
:encoding: UTF-8
:lang: en
:doctype: book
:toc: left
:imagesdir: ../../images
endif::[]

////

    This file is part of the PacketFence project.

    See PacketFence_Installation_Guide.asciidoc
    for authors, copyright and license information.

////

//=== Barracuda

==== Configuration of the Barracuda in PacketFence

Go to *Configuration -> Integration -> Firewall SSO -> Add Firewall -> Barracuda*.

[options="compact"]
* *Hostname or IP Address*: IP of your Barracuda
* *Firewall type*: Barracuda (Barracuda = SSH requests)
* *Password*: secret
* *Port*: 22
* *Roles*: add the roles that you want to do SSO

image::doc-barracuda-cfg_sso_pf.png[scaledwidth="100%",alt="Create the SSO agent in Barracuda"]

==== Step 2: Verification

For our example, when the user registers on the portal it will be registered and the role staff will be assigned. The PacketFence server will send a request to the Barracuda database.

If you want to see if it's working, open an SSH access to your Barracuda and run this command following commands:

  acpfctrl auth show

You will get that:

  [root@baracudafw:~]# acpfctrl auth show
  1 entries
  172.20.20.152/0
  origin=PacketFence
  service=PacketFence
  user=Jdoe
