Skip to main content

CI Coverage PyPI License

dls_ldap_query

Overview

Create formatted lists of users by querying LDAP

A DLS Internal tool.

Links

Source https://github.com/DiamondLightSource/dls-ldap-query
PyPI pip install dls-ldap-query
Docker docker run ghcr.io/diamondlightsource/dls-ldap-query:latest
Releases https://github.com/DiamondLightSource/dls-ldap-query/releases

Temporary deployment

This will be deployed as an environment module. But for the moment you can access it at DLS using this path:

/dls_sw/work/python3/dls-ldap-query --help

Example Usage

Get the email addresses of everyone in group dcs

dls-ldap-query --group dcs

Get the fedids of all the users in GitHub Members. (this requires access to the github-members GitLab repository)

dls-ldap-query --repo --output fedid

Get the fedids of all the users in Diamond Beamline Controls Outlook distribution list.

  • Click New Email in outlook and start typing the DL name, hit enter once the correct DL is highlighted
  • Click on the + to the left of the DL name - this expands it into its members
  • Ctrl-A Ctrl-C (select all names and copy to clipboard)
  • paste these names into a file e.g. /tmp/names.txt and save it
dls-ldap-query --email --file /tmp/names.txt
# OR
dls-ldap-query --email '"Knap, Giles (DLSLtd,RAL,LSCI)" <giles.knap@diamond.ac.uk>; "Cob ... '

NOTE: you can paste the email members directly to the command line but you must enclose them in single quotes and remove any apostrophes in names! (which is why the file approach is easier)

Metadata

Release files for dls-ldap-query 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dls-ldap-query 0.5.2
File Size Uploaded Provenance
dls_ldap_query-0.5.2.tar.gz 76.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dls-ldap-query 0.5.2
File Interpreter ABI Platform
dls_ldap_query-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 91.7 kB

Release files / dls_ldap_query-0.5.2.tar.gz

Download URL dls_ldap_query-0.5.2.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
10d9787e93a12f37c695859beeec643ce643aab95d291ba3f3fddcbaef8ba0a4
BLAKE2b-256 checksum
How to use checksums
bed3bf458005601a77fe3f57ace203dfc1f4a1b725657fa757e581e266a425e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / dls_ldap_query-0.5.2-py3-none-any.whl

Download URL dls_ldap_query-0.5.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80d0bd5af03921783163e30dbb9ba28a8c2651b39de9871c3656348ea420e364
BLAKE2b-256 checksum
How to use checksums
cce0b61036c8fe0e4177a2d30fbec9ac8c53886b906f6875179a0bbd9d035309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Security for dls-ldap-query 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page