Skip to main content

LevelBlue Completes Acquisition of Cybereason.  Learn More

LevelBlue Completes Acquisition of Cybereason.  Learn More

Services
Cyber Advisory
Managed Cloud Security
Data Security
Managed Detection & Response
Email Security
Managed Network Infrastructure Security
Exposure Management
Security Operations Platforms
Incident Readiness & Response
SpiderLabs Threat Intelligence
Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft Security
Unlock the full power of Microsoft Security
Securing the IoT Landscape
Test, monitor and secure network objects
Why LevelBlue
About Us
Awards and Accolades
LevelBlue SpiderLabs
LevelBlue Security Operations Platforms
Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Loading...
Loading...

HOWTO: Filtering Active Directory LDAP users based on email domain

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG)

Question:

  • How do I import email addresses from LDAP for only one domain?

Procedure:

By default a MailMarshal SMTP LDAP connector imports all email addresses in the Mail and proxyAddresses attributes of records. 

You can create a customized LDAP connector that imports only addresses in a certain domain. The instructions below assume that the desired domain is not the primary email address entry for the user records.      

  1. Create a new LDAP connector.
  2. Edit the connector and navigate to the "User Attributes" tab (in some versions, this is found under LDAP Server | Advanced).
  3. In the Email address attributes section, delete the entry mail
  4. Edit the proxyAddresses entry:
    • Match: smtp:(.*)@domain-wanted.com
    • Value: $1@domain-wanted.com
    • (substitute the desired domain name for "domain-wanted.com")
  5. Apply the changes.

Any groups imported through this connector will only include entries which have a secondary ("proxy") SMTP address in the specified domain.

Notes:

  • If you need to include users' primary addresses, you can perform similar filtering on the mail attribute.
  • You can use more than one LDAP connector.

To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.