Talk About Network

Google





Software > ADSI General > Querying last n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5286 of 5437
Post > Topic >>

Querying last name with space

by Aaron Prohaska <mohaaron@[EMAIL PROTECTED] > May 27, 2008 at 10:24 AM

Hello all,

I'm having a problem with a query I've created to find users by first
name, last name, and/or the combination. This worked until I found a
user who has a space in their last name and the search doesn't find
them. Can anyone tell me why the following LDAP query won't find a
user with a space in their last name?

string firstName = "MyName";
string lastName = "Da Rosa";
"(&(objectClass=User)(objectCategory=person)(!userAccountControl:
1.2.840.113556.1.4.803:=2)(givenName=" + firstName + "*)(sn=" +
lastName + "*))"
 




 4 Posts in Topic:
Querying last name with space
Aaron Prohaska <mohaar  2008-05-27 10:24:49 
Re: Querying last name with space
"Joe Kaplan" &l  2008-05-27 12:45:35 
Re: Querying last name with space
Aaron Prohaska <mohaar  2008-05-27 11:46:13 
Re: Querying last name with space
Aaron Prohaska <mohaar  2008-06-11 10:04:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 18:44:29 PST 2009.