Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Can I create an LDAP query against AD, that means SamAccountName must be at least 6 characters

$
0
0

Hello

Can someone please help me with a question, I want to use an LDAP filter (I do not want to use PowerShell cmdlet)

if I have two users whose SamAccountName  are Fred another user Anthony

I know I can use an LDAP filter like  SamAccountName=*   but is there a filter to say SamAccountName must be at least 6 characters ?

For example with RegEx query I could do

".{6)" 
The above meaning must be at least characters long (any character) is something similar possible with LDAP queries ?

Thanks all in advance

CXMelga


Viewing all articles
Browse latest Browse all 31638

Trending Articles