Socket
Book a DemoInstallSign in
Socket

dls-ldap-query

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dls-ldap-query

Format lists of users by querying LDAP

0.5.1
pipPyPI
Maintainers
0

CI Coverage PyPI License

dls_ldap_query

Format lists of users by querying LDAP

Sourcehttps://github.com/DiamondLightSource/dls-ldap-query
PyPIpip install dls-ldap-query
Dockerdocker run ghcr.io/diamondlightsource/dls-ldap-query:latest
Releaseshttps://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 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)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.