Searching for Objects by SID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using LDP.exe to search the directory for objects using the SID. I have connected and bound to the directory.

In the search dialogue box I enter the SID in the format:

<SID= S-15-52ADEB9D-404331A9-74B49FF8-45D>

with the filter set to "objectclass=*"

the scope has been set to Base,One Level and Subtree without success, in Options the Attributes field is set to "*"

I get the following error:

***Searching...
ldap_search_s(ld, "<SID=S-15-52ADEB9D-404331A9-74B49FF8-45D>", 2, "objectClass=*", attrList, 0, &msg)
Error: Search: Naming Violation. <64>
Result <64>: 00000057: LdapErr: DSID-0C090563, comment: Error processing name, data 0, v893
Matched DNs:
Getting 0 entries:

Any thoughts?
 
use filter like

(&(objectslass=*)(objectSID=......))

--
Regards

Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
(e-mail address removed), (e-mail address removed)
http://ladava.com

Mark said:
Hi,

I am using LDP.exe to search the directory for objects using the SID. I
have connected and bound to the directory.
In the search dialogue box I enter the SID in the format:

<SID= S-15-52ADEB9D-404331A9-74B49FF8-45D>

with the filter set to "objectclass=*"

the scope has been set to Base,One Level and Subtree without success, in
Options the Attributes field is set to "*"
I get the following error:

***Searching...
ldap_search_s(ld, "<SID=S-15-52ADEB9D-404331A9-74B49FF8-45D>", 2,
"objectClass=*", attrList, 0, &msg)
 
00000057: LdapErr: DSID-0C090563, comment: Error processing name, data 0, v893

Hi,
I am also facing the same issue. Modified my code like
.Filter = (&(objectslass=*)(objectSID=......)) . even though it was not working. Please suggest.

Any help would be greatly appreciated.

Error Message : There is a naming violation.

ExtendedErrorMessage : 00000057: LdapErr: DSID-0C090563, comment: Error processing name, data 0, v893


Thanks & Regards,
Sriman.
icon7.gif

 
Back
Top