• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

LDAP Search String in windows2003

i have an active directory domain
abc.com  within i have ou=usa under that ou=ny then siite ou=nyc

i put this seach string as below
ou=nyc,ou=ny,ou=usa,DC=abc,DC=com

some reason the printer finds some users by both first and last name, but can not find fw users by first name. it finds the user by last name.

all the users are in same OU
how do i fix this?
0
pdsmicro
Asked:
pdsmicro
1 Solution
 
arnoldCommented:
What is your complete query?
you need to surround the name with *nametobefound* as the search parameter
dsquery user -name *name* "ou=nyc,ou=ny,ou=usa,DC=abc,DC=com"
0
 
pdsmicroAuthor Commented:
i do not know much about LDAP and left it as it is .
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now