LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 4th, 2011, 07:29 AM
davers davers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 2 davers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 56 sec
Reputation Power: 0
Connect to LDAP using C# entry.Guid exception

Hey gang! I'm trying to connect to an ldap server using C#. So far, none of the examples I've found in any of my google or bing searches has worked. I'm starting to think it's a security thing I don't know how to program for. I'm able to connect to the ldap file using JXplorer, Softerra LDAP Admin, so I know I have the correct rights. I also created my own username and password for it. Here's where I think the problem is. The username and password I created is for a "trusted server" and requires I enter either my IP address, or computer name. I "think" that might be the problem. Maybe my IP isn't getting pushed across in my C# code? Here's what I'm trying to use to connect:

Code:
DirectoryEntry entry = new DirectoryEntry("LDAP://10.2.13.10:389/ou=people,dc=avaya", 
                    "cn=DaveAPC,dc=avaya", "quicken1", AuthenticationTypes.None);


The error I get is:

Code:
'entry.Guid' threw an exception of type 'System.Runtime.InteropServices.COMException'


Which when I drill down, shows this:

Code:
base {System.SystemException} = {"Exception from HRESULT: 0x8000500D"}


and this:

Code:
_exceptionMethod = {System.String get_GUID()}


No one on the C# forum I belong to even tried to touch this one...

Does anyone here have any idea why I can't connect to the ldap server..

Thanks for any help!

Dave

Reply With Quote
  #2  
Old August 4th, 2011, 01:26 PM
davers davers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 2 davers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 56 sec
Reputation Power: 0
Figured it out...basically fixed my AuthenticationTypes. Set it to Delegation and it worked.

Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Connect to LDAP using C# entry.Guid exception

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap