# Configuration in pandora

**Console installation**

To register the plugin, from the console, go to the "register plugin" section.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/ipMimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/ipMimage.png)

Click on select file.

[![plugin registration.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/dvVplugin-registration.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/dvVplugin-registration.png)

The .pspz2 file to be uploaded will be selected.

[![register2_ldap.png](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/scaled-1680-/register2-ldap.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2022-04/register2-ldap.png)

A message will appear informing that you have successfully registered.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/pC0image.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/pC0image.png)

Once the plugin is registered, we will see it in the plugins section.

[![ver plugin.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/ver-plugin.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/ver-plugin.png)

The plugin menu can be accessed by clicking on the plugin title

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/i4iimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/i4iimage.png)

In parameters we will see the macro used by the plugin, this is not necessary to touch it

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/9y4image.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/9y4image.png)

In the Default value field, we must enter the path to our .conf file.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/Scnimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/Scnimage.png)

**Manual installation**

The best way to manage server plugins in Pandora is from "/usr/share/pandora\_server/util/plugin" so we will send it by pscp to that path:

<div id="bkmrk--7"></div>[![image-1628163722703.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1628163722703.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1628163722703.png)

Then we will move to the folder where we have put it ("/usr/share/pandora\_server/util/plugin" is the recommended one").

**Remember: You have to install the dependencies that the python ldap module needs in your system, it is explained in the configuration section.**

We move from home with :

```
cd /usr/share/pandora_server/util/plugin/
```

We run the plugin to see that it works:

```
python3 pandora_ldap.py -s <server> -b <binding> -p <password> -a <agent> [--as_agent_plugin] [ -g <group> ] [ --data_dir <data_dir > ]
```

[![image-1628163800459.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1628163800459.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1628163800459.png)

With as\_agent\_plugin 1 we will be able to see an XML with the data that will be shown in the console:

[![image-1628163832028.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1628163832028.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1628163832028.png)

If we execute it in the first way, without "as\_agent\_plugin 1", we will have created an agent with the name we have given it in the -a parameter with all the modules.

Anyway, if you prefer to install it manually from the console, the process would be as follows:

**As a server plugin**

<div id="bkmrk-the-best-way-to-mana-0"><div>We will go to servers &gt; plugins:</div><div>  
</div></div>[![ver plugin.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/ver-plugin.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/ver-plugin.png)

click in "add":

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/T1cimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/T1cimage.png)

We put in the name and description of your choice:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/Z6Bimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/Z6Bimage.png)

We enter as command the path to the plugin, and as parameters the ones we have entered by executing the plugin, the "\_field\_" fields are macros defined below.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/cyYimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/cyYimage.png)

We put for each macro the description of your choice and as value the data of your ldap server.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/hHAimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/hHAimage.png)

then click on the “create” button.

**As agent plugin**   
We should enable the remote configuration, to enable it we have to open the pandora\_agent.conf file:

```
vim /etc/pandora/pandora_agent.conf
```

Inside we look for the remote\_config line, to enable it we set it to 1.

[![image-1628164126735.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1628164126735.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1628164126735.png)

And after that we restart the agent :

```
/etc/init.d/pandora_agent_daemon restart
```

The remote configuration will have been activated, go to the agents menu and click on the remote configuration icon, which is as follows:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/zXPimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/zXPimage.png)

Then we go to plugin menu :

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/3aEimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/3aEimage.png)

We enter the command, click in add:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/scaled-1680-/bDdimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-07/bDdimage.png)

Example:

```
python3 /usr/share/pandora_server/util/plugin/pandoraversion_ldap.py -s ldap://localhost.localdomain:389 -b cn=ldapadm,dc=sanchez,dc=com -p redhat -a ldapserver --as_agent_plugin 1
```

A new plugin will have been created:

[![image-1628164348935.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/image-1628164348935.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/image-1628164348935.png)

Once this is done, we restart the agent:

```
/etc/init.d/pandora_agent_daemon restart
```

And if we go to the agent with the remote configuration, the ldap modules will have been created.

<div id="bkmrk--29"></div>