Dears,
I have a problem with belows code:

mySearcher.Filter = "(&(objectClass=user)
        (|(cn=" + objectName + ")(sAMAccountName=" + objectName + ")))";

i receive errors: NEWLINE IS CONSTANT.
Can you tell me whats wrong with that code?

THX in advance!

Stupid me:
line break should be removed ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.