Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
AnswerRe: converting array of byte to string in c# Pin
Andrew Kirillov7-Oct-05 1:34
Andrew Kirillov7-Oct-05 1:34 
GeneralRe: converting array of byte to string in c# Pin
tssp7-Oct-05 2:12
tssp7-Oct-05 2:12 
QuestionLDAP Pin
ramenk6-Oct-05 23:45
ramenk6-Oct-05 23:45 
AnswerRe: LDAP Pin
ehuysamer7-Oct-05 2:25
ehuysamer7-Oct-05 2:25 
Questionhow to run resgen utility from post build com Pin
Kaushik J6-Oct-05 23:22
sussKaushik J6-Oct-05 23:22 
QuestionPlease Help!! Pin
Dipendra Singh6-Oct-05 22:43
Dipendra Singh6-Oct-05 22:43 
AnswerRe: Please Help!! Pin
XRaheemX7-Oct-05 7:08
XRaheemX7-Oct-05 7:08 
Question.NET and LDAP Pin
ehuysamer6-Oct-05 21:04
ehuysamer6-Oct-05 21:04 
Hi
I was wondering if anyone could offer some advice on authenticating a .NET application with LDAP. The code seems to work fine with AD, but fails with LDAP. Also, I have a Java App that can do this just fine, but somehow the solution with .NET eludes me!

(extract)
DirectoryEntry entry = new DirectoryEntry("LDAP://testdomain/DC=testdomain", "testdomain/testuser", textPassword.Text);<br />
<br />
Object obj = entry.NativeObject;<br />
DirectorySearcher search = new DirectorySearcher(entry);<br />
search.Filter = "(SAMAccountName=testuser)";<br />
search.PropertiesToLoad.Add("cn");<br />
SearchResult result = search.FindOne();<br />
<br />
if (null == result)<br />
{<br />
.<br />
.<br />
.<br />
}


The test PC runs on a Windows XP box with .NET Framework 1.1, and is bound to whichever server we're testing on at the time.
The authentication server is a Mac OS X 10.4 server running LDAPv3 (I believe built on OpenLDAP, and should be similar in every way).

Any suggestions?
(or anyone with a Linux OpenLDAP domain out there?)
AnswerRe: .NET and LDAP Pin
leppie6-Oct-05 22:34
leppie6-Oct-05 22:34 
GeneralRe: .NET and LDAP Pin
ehuysamer6-Oct-05 22:41
ehuysamer6-Oct-05 22:41 
GeneralRe: .NET and LDAP Pin
leppie7-Oct-05 1:34
leppie7-Oct-05 1:34 
Questiongraphics Pin
unni_jeevan6-Oct-05 20:53
unni_jeevan6-Oct-05 20:53 
AnswerRe: graphics Pin
XRaheemX7-Oct-05 3:34
XRaheemX7-Oct-05 3:34 
Questionapplication wide events Pin
Dipendra Singh6-Oct-05 20:52
Dipendra Singh6-Oct-05 20:52 
AnswerRe: application wide events Pin
XRaheemX7-Oct-05 3:32
XRaheemX7-Oct-05 3:32 
QuestionRetrieving the terminal session id Pin
_Hacker6-Oct-05 20:50
suss_Hacker6-Oct-05 20:50 
AnswerRe: Retrieving the terminal session id Pin
mav.northwind7-Oct-05 0:23
mav.northwind7-Oct-05 0:23 
QuestionRe: Retrieving the terminal session id Pin
_Hacker7-Oct-05 1:00
suss_Hacker7-Oct-05 1:00 
AnswerRe: Retrieving the terminal session id Pin
mav.northwind7-Oct-05 3:36
mav.northwind7-Oct-05 3:36 
GeneralRe: Retrieving the terminal session id Pin
_Hacker7-Oct-05 3:43
suss_Hacker7-Oct-05 3:43 
GeneralC# Pin
momoo6-Oct-05 20:46
momoo6-Oct-05 20:46 
GeneralRe: C# Pin
David Stone6-Oct-05 21:36
sitebuilderDavid Stone6-Oct-05 21:36 
GeneralOT - Re: C# Pin
mav.northwind7-Oct-05 0:27
mav.northwind7-Oct-05 0:27 
QuestionLoading a image at runtime in Crystal report XI Pin
dhol6-Oct-05 19:06
dhol6-Oct-05 19:06 
Question2 Web Browser Problem Pin
erwinliong6-Oct-05 17:24
erwinliong6-Oct-05 17:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.