RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^((CN=['\w\d\s\-\&]+,)+(OU=['\w\d\s\-\&]+,)*(DC=['\w\d\s\-\&]+[,]*){2,})$
Description
Matches the LDAP path of Microsoft Active Directory entry. Checks to ensure the ADsPath attribute is accurate.
Matches
CN=Joey O'Brenn,OU=Test & 1,OU=Test & 2,DC=support,DC=com
Non-Matches
CN=Laurie Brenn,CN=Users,DC=support
Author Rating: Not yet rated. Joey Brenn
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: DC RDN's should not allow sequential commas
Name: Richard
Date: 7/15/2009 6:30:25 AM
Comment:
It may help to end with [,]?{2,})$ instead of [,]*{2,})$ as this will catch an invalid dc rdn like ...dc=accounts,dc=co,,,dc-uk


Title: DC RDN's should not allow sequential commas
Name: Richard
Date: 7/15/2009 5:35:25 AM
Comment:
It may help to end with [,]?{2,})$ instead of [,]*{2,})$ as this will catch an invalid dc rdn like ...dc=accounts,dc=co,,,dc-uk


Title: Not bad but could be better
Name: Lobezno
Date: 11/5/2004 7:17:39 AM
Comment:
Not allows enter server and only allows paths for CN objects


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials