
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
ldap-attributes-selector
Advanced tools
This command line program, allows you to query an LDAP server and retrieve a custom set of provided attributes.
This program offers the following features:
Make sure you meet the following requirements:
You can install it with pip:
pip install ldap-attributes-selector
First, some aspects of this tool to take into account:
None value is set, instead!.ldapsearch tool, this program should work as well!.Here's the complete help output:
usage: ldap-attributes-selector [-h] [-u USERDN] [-S SIZELIMIT] [-f FILTER]
[-w WRITETOCSV] [-v]
SERVER BASEDN ATTRIBUTES
Get a CSV formatted list, based on a custom set of LDAP attributes
positional arguments:
SERVER URI formatted address (IP or domain name) of the LDAP
server
BASEDN Specify the searchbase or base DN of the LDAP server
ATTRIBUTES A set of comma separated LDAP attributes to list
optional arguments:
-h, --help show this help message and exit
-u USERDN, --userdn USERDN
Distinguished Name (DN) of the user to bind to the
LDAP directory
-S SIZELIMIT, --sizelimit SIZELIMIT
The amount of per-page entries to retrieve (Default:
500)
-f FILTER, --filter FILTER
Specify an LDAP filter (Default: 'objectClass=*')
-w WRITETOCSV, --writetocsv WRITETOCSV
Write results to a CSV file!.
-v, --version Show current version
In the following example, an encrypted LDAP query (note the ldaps:// when specifying the LDAP server) is made, and the attributes name, mail and ipPhone are retrieved. Also, LDAP filter objectClass=person is set:
ldap-attributes-selector ldaps://somecorp.com "dc=somecorp,dc=com" -u "cn=Joe,ou=Users,dc=somecorp,dc=com" "name,mail,ipPhone" -f objectClass=person
Unlike the previous example, on the following one, the query isn't encrypted and a different LDAP filter is used:
ldap-attributes-selector ldap://somecorp.com "dc=somecorp,dc=com" -u "uid=zimbra,cn=admins,cn=zimbra" "givenName,mail,zimbraAccountStatus" -f 'objectClass=inetOrgPerson'
This one is similar to the first one except that, this time, the retrieved results, are gonna be exported to a CSV file!:
ldap-attributes-selector ldaps://somecorp.com "dc=somecorp,dc=com" -u "cn=joe,ou=Users,dc=somecorp,dc=com" "name,mail,ipPhone" -f objectClass=person -w users.csv
If no user identity (in DN format!) is specified (-u argument), an anonymous LDAP query is performed, as in the following example:
ldap-attributes-selector ldap://somecorp.com "dc=somecorp,dc=com" "sn,givenName,mail"
This program is licensed under the GPLv3.
FAQs
Get a CSV formatted list, based on a custom set of LDAP attributes.
We found that ldap-attributes-selector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.