# General plugin parameters

**Binary execution**

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

**Running python version (test only)**

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

If the execution is correct we will see a 1, when executing the plugin :

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

If we want to run it as an agent plugin we will do it using the optional parameter "as\_agent\_plugin" with a "1" which will return an xml with the data of our server:

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