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 March 11th, 2004, 03:39 AM
sachinp sachinp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 sachinp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Connection to SunONE Directory Server 5.2 through LDAP in C# code

Hi,

I am trying to connect to SunOne Directory Server 5.2 through LDAP in C# code. SunONE server is installed in the Win2000 Server m/c.

I am using the following connection string:

string adPath = "LDAP://IP Address of the Sun server";
LdapAuthentication adAuth = new LdapAuthentication(adPath);

string domainAndUsername = domain + "\\" + username;

DirectoryEntry entry = new DirectoryEntry( _path, domainAndUsername, pwd);

// Bind to the native AdsObject to force authentication.
Object obj = entry.NativeObject;

After this line this code throws error "The server is not operational"

Can somebody help me in resolving this problem

Reply With Quote
  #2  
Old March 11th, 2004, 07:51 AM
ldap4u's Avatar
ldap4u ldap4u is offline
Chris Larivee
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72 ldap4u User rank is Private First Class (20 - 50 Reputation Level)ldap4u User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
Send a message via MSN to ldap4u
You may need to specify the port ... also - as in my post on the other site - I am not sure you can use the concept of AD domain and username to bind - as SunONE doesn't really utilize this for binds ...

Reply With Quote
  #3  
Old March 11th, 2004, 10:31 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,845 Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level)Viper_SB User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 20 h 16 m 27 sec
Reputation Power: 634
Not to be a pain but it says in the error "The server is not operational" so you may want to make sure the server is accessable by that computer.

Reply With Quote
  #4  
Old March 12th, 2004, 06:05 AM
sachinp sachinp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 sachinp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by ldap4u
You may need to specify the port ... also - as in my post on the other site - I am not sure you can use the concept of AD domain and username to bind - as SunONE doesn't really utilize this for binds ...



Hi,

I think that the server is not able to bind with the SunONE server as it is not able to create the Object.

Object obj = entry.NativeObject;

I have done further R&D and come to know that this method is only for ADSI(Microsoft). I don't know how to do it for Sun Server.

Can u please help me in knowing how to connect to SunServer through LDAP in C# or JAVA.

Waitinfg for ur reply.

Regds,
Sachinp

Reply With Quote
  #5  
Old March 26th, 2004, 05:49 AM
riggers riggers is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 riggers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try this link

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Connection to SunONE Directory Server 5.2 through LDAP in C# code

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