Format lists of users by querying LDAP
Project description
dls_ldap_query
Format lists of users by querying LDAP
| 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 |
The following command gives details of the command line parameters:
dls_ldap_query --help
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 Emailin 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dls_ldap_query-0.5.1.tar.gz.
File metadata
- Download URL: dls_ldap_query-0.5.1.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e663ed50534a4fcbbc702e7248a0357207a218a14fadef4bf87df72f5537f20d
|
|
| MD5 |
984b732a44a913f24b377131db67447e
|
|
| BLAKE2b-256 |
a536fc035bea253f0e585595e33aabac949b5d0609d3f91299a0b248a1ab1b63
|
File details
Details for the file dls_ldap_query-0.5.1-py3-none-any.whl.
File metadata
- Download URL: dls_ldap_query-0.5.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eff64a1625c264b36f9aa83f0a1a6a78ba148eff003f0560dea3c4d34a7e6ab9
|
|
| MD5 |
b80f93f74562ae7f4e1a71568d20e4f8
|
|
| BLAKE2b-256 |
7b25d92fcf97fd474ffa32a1b5a03c1f4956ef6cd1b6f860da9d17c0d4f95705
|