473,395 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Directory Services, LDAP Path

Does anyone know if there is a way to not use the server name in an LDAP
path statement, like LDAP://SomeServer/... . We have multiple domain
controllers and want the system to get an active domain controller, in the
event one is not available.

John

Nov 16 '05 #1
3 10778
Yes, use server-less binding. Check the MSDN doc's on ADSI for more info.

Willy.

"John" <no****@SendNoSpamToMe.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
Does anyone know if there is a way to not use the server name in an LDAP
path statement, like LDAP://SomeServer/... . We have multiple domain
controllers and want the system to get an active domain controller, in the
event one is not available.

John

Nov 16 '05 #2
LDAP://<domainname> works so it will pickup any available domain controller.

-Walden

"John" wrote:
Does anyone know if there is a way to not use the server name in an LDAP
path statement, like LDAP://SomeServer/... .

Nov 16 '05 #3
>Does anyone know if there is a way to not use the server name in an LDAP
path statement, like LDAP://SomeServer/... . We have multiple domain
controllers and want the system to get an active domain controller, in the
event one is not available.


If you run your LDAP queries in a Winforms app environment under an
account that's member of the domain, you do not necessarily need to
specify the server to be used - AD will pick the "best" server for
your query.

DirectoryEntry deUser = new DirectoryEntry("LDAP://cn=John
Doe,cn=Users,dc=fabrikam,dc=com");

This so-called server-less binding doesn't work nicely in ASP.Net and
other hosted environments, though, since you're not running under a
domain account.

Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
0
by: David | last post by:
Hi. My company is using iPlanet's LDAP directory. I developed a web service that authenticates users against ldap and returns certain attributes back. I am using directory services library for...
0
by: Shawn Melton | last post by:
I am trying to do in order Create an Use Commit Change Set Passwor *Set Password No Expir *Set Cant Change Passwor Commit Change *Enable Use Commit Change
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
4
by: jmDesktop | last post by:
Can someone tell me why I get this error? System.DirectoryServices.DirectoryServicesCOMException was unhandled Message="An operations error occurred.\r\n" Source="System.DirectoryServices"...
1
by: mfsiddiq | last post by:
HI i am trying to connect my java client to Microsoft active directoy using secure ssl,but when i try enable ssl support i get the following error but it works fine with apache studio,which is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.