Smart Deals - promotions, discount codes and sales

Filters Ldap Active Directory Generator

Fast, accurate and free online filters ldap active directory generator tool running directly in your browser.

Secure (SSL)
Client-Side Processing
100% Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}
Filtr LDAP
(&(&(objectCategory=person)(objectClass=user))(sAMAccountName=j.smith*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
Polecenie PowerShell
Get-ADObject -LDAPFilter '(&(&(objectCategory=person)(objectClass=user))(sAMAccountName=j.smith*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))'
PowerShell command
Get-ADObject -LDAPFilter '(&(&(objectCategory=person)(objectClass=user))(sAMAccountName=j.smith*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))'

Rate this tool:

Related tools

Other tools you may find useful

Creating search queries in an LDAP database or Microsoft Active Directory directory service can be a challenge due to the specific prefix syntax. Our professional LDAP filter generator will help you prepare an error-free, advanced filter query in just a few seconds.

Principle of operation and syntax of LDAP filtering queries

LDAP (Lightweight Directory Access Protocol) is a standard network protocol for managing and accessing directory services. LDAP filters are used to search for specific objects in the directory database based on their attributes. The filter syntax is based on Polish (prefix) notation, which means that logical operators are placed before the arguments, not between them, for example: (&(objectClass=user)(cn=John*)).

Understanding and manually writing such queries can be complex, especially when combining multiple logical conditions and exclusions. Each bracket must be closed exactly, and a mistake in one character prevents the query from being executed correctly. Our generator eliminates the risk of syntax errors by offering a friendly graphical interface for building filters.

Constructing Filters for Users, Groups, and Computers in Active Directory

In an Active Directory (AD) environment, LDAP filters are commonly used to retrieve lists of objects with specific properties. For example, to find all users, the filter (objectCategory=person)(objectClass=user) is applied. In turn, the rule (objectCategory=computer) is useful to search for computers.

More advanced queries allow you to filter objects by specific features, such as belonging to a department (department attribute), having an e-mail address (mail), or account status. The generator makes it easy to quickly select these attributes and combine them into logical formulas without having to remember the exact technical names of the fields in the AD schema.

Logical operators in LDAP: AND (&), OR (|) and NOT (!) in practice

LDAP filters support three basic logical operators. The AND operator (&) requires that all specified conditions be met simultaneously. The OR operator (|) returns objects that meet at least one of the conditions. The NOT (!) operator is used to negate and exclude objects that meet a given criterion, e.g. to exclude disabled user accounts.

For example, if you are looking for users with a name starting with A who work in the IT department but are not administrators, your filter must combine the & and ! operators. Our generator allows you to add terms hierarchically and automatically arranges them into a correctly formatted query with appropriately spaced brackets.

Practical use of LDAP filters in PowerShell integrations and scripts

The generated LDAP filters have a very wide range of applications in the everyday work of IT administrators and system integrators. They are used when configuring Single Sign-On (SSO) integration in external applications (e.g. Jira, Confluence, Gitlab), where they determine which users have the right to log in to the system.

Moreover, these filters are invaluable in scripts automating tasks in PowerShell (e.g. using the Get-ADUser -LDAPFilter command) and when configuring group policies or network monitoring tools. Thanks to our generator, you can quickly prepare a filter, copy it and paste it directly into the configuration of any system.

FAQ

What is prefix syntax in LDAP filters and how to read it?

In prefix syntax, logical operators (e.g. &, |) are placed at the beginning of an expression, before parentheses containing conditions. For example, the query (&(A)(B)) means that both conditions A and B must be true.

How to filter only active (enabled) users in Active Directory?
Install Webp.pl Have the tools in your own pocket!