Ldap exception in c# DSID 0c090627

Posted by Rohik under Others on 7/13/2010 | Views : 2468 | Status : [Member] | Replies : 3
hi,

I am trying to do authentication for e-directroy
but while seraching records by username
I got an exception DSID 0c090627

what is that..?

plz help!!

Happy Programming!!
Rohi



Responses

Posted by: Deeraj on: 7/14/2010 [Member] Starter

Up
0
Down
Would you mind posting your code here?

Rohik, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neeks on: 7/16/2010 [Member] Bronze

Up
0
Down
There might be the issue for the DirectoryEntry path.

Are you trying to get the user details from the DirectoryEntry with proper user cardinals?

So when are you getting the error? at which place?

Can you please mention your the error line in your code?

Rohik, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rohik on: 7/19/2010 [Member] Starter

Up
0
Down
Hey thanks for replying.

I got that error.

now I am trying to search user role in e-directroy
because if it is admin i want to navigate on other page .
but i cant understand how to find it?
how to write query?
now i am finding in objectclass=inerorgPerson cn=user
but it returns true if I changed to cn=admin

for some security reason I don't have full info about directroy structure.
so is there any another way to check user role or any query to for searching?

again I want to ask is "sAMAccountname" available as in e-directroy as login name..?

is e-directroy structure is different ?
meanse value of cn, sn are different as directroy changes..?

please help.

Happy Programming!!
Rohi

Rohik, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response