Skip to main content

Query sending permissions on a Zimbra server

Project description

Zimbra Permissions Inspector

This CLI utility allows you to query sending permissions on a Zimbra server.

You can retrieve sending permissions for a particular Zimbra Distribution List (ZDL) or get a complete list of 'Send as' permissions. The most basic query, list all the existing ZDLs (both dynamic and static).

Requirements

Make sure you meet the following requirements:

Tested on Zimbra v8.8.12

Installation

You can install it with pip:

pip install zimbra-permissions-inspector

Usage

Help output:

usage: zimbra-permissions-inspector.py [-h] [-l ZDL] [-sa] [-v]
                                       SERVER BASEDN LDAP_ADMIN

Query sending permissions on a Zimbra server

positional arguments:
  SERVER             URI formatted address of the Zimbra server
  BASEDN             Specify the searchbase or base DN of the Zimbra LDAP
                     server
  LDAP_ADMIN         Admin user of the Zimbra LDAP server

optional arguments:
  -h, --help         show this help message and exit
  -l ZDL, --zdl ZDL  Query which Zimbra accounts have permissions to send
                     mails to the given ZDL
  -sa, --sendas      Query 'send as' permissions on both Zimbra accounts and
                     ZDLs
  -v, --version      Show current version

Note that positional arguments are mandatory!.

Usage examples

If no optional arguments are given, it'll list all the existing ZDLs (both dynamic and static):

zimbra-permissions-inspector ldap://zimbra.somecorp.com dc=somecorp,dc=com uid=zimbra,cn=admins,cn=zimbra 

Query which Zimbra accounts have permissions to send mails to a ZDL ("Zimbra Distribution Lists") named "my-zdl-list":

zimbra-permissions-inspector ldap://zimbra.somecorp.com dc=somecorp,dc=com uid=zimbra,cn=admins,cn=zimbra -l zdl-list 

Get a list of "send as" permissions:

zimbra-permissions-inspector ldap://zimbra.somecorp.com dc=somecorp,dc=com uid=zimbra,cn=admins,cn=zimbra -sa 

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zimbra-permissions-inspector-0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zimbra_permissions_inspector-0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file zimbra-permissions-inspector-0.1.tar.gz.

File metadata

  • Download URL: zimbra-permissions-inspector-0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.3

File hashes

Hashes for zimbra-permissions-inspector-0.1.tar.gz
Algorithm Hash digest
SHA256 a0f2872aa0a1c5bb8fce23833c26c8b4a86b52fd71108475b6169b19df329fd0
MD5 89caaf9ee0a8ad82d271bbde720a6df8
BLAKE2b-256 186542a0ea2f1e5be79353ee68cb2bd87ba309e73ef0b5f0d9270bd4fa4d2a73

See more details on using hashes here.

File details

Details for the file zimbra_permissions_inspector-0.1-py3-none-any.whl.

File metadata

  • Download URL: zimbra_permissions_inspector-0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.3

File hashes

Hashes for zimbra_permissions_inspector-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25a09ef2dd72ced19b8fb025e1ea0e99888ff068d765d221849190af79868935
MD5 17ac4667172012ace3f19ca19998db54
BLAKE2b-256 207271762508d4328db12fdced4a3f0ff812e3fd2ca3d1c20becbe77211e0483

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page