Hi,
I am trying to bind to an Active Directory server using the following snippet, but I always get a usre unknown or bad password error message.
DirectoryEntry de = new DirectoryEntry(LDAP://srv-dell.waysoft.local);
de.AuthenticationType = AuthenticationTypes.ServerBind;
de.Username = "administrator";
de.Password = "password";
string usr = de.Properties["DisplayName"].Value.ToString(); // the error message appears here
Any idea of what is wrong?
Thanks.
Mike 3 4527
As the message says, it means the user credentials are unknown.
You specified administrator as UserName, but this is a local administrator account, you need to specify a domain admin account.
Willy.
"Mike" <no****@nospam.com> wrote in message news:OD**************@tk2msftngp13.phx.gbl...
Hi,
I am trying to bind to an Active Directory server using the following snippet, but I always get a usre unknown or bad password error message.
DirectoryEntry de = new DirectoryEntry(LDAP://srv-dell.waysoft.local);
de.AuthenticationType = AuthenticationTypes.ServerBind;
de.Username = "administrator";
de.Password = "password";
string usr = de.Properties["DisplayName"].Value.ToString(); // the error message appears here
Any idea of what is wrong?
Thanks.
Mike
Thanks Willy. I can now see the various properties. Is there a possibility to query the Active Directory to gather some information about the user (group, phone, etc.)? How can I do that?
Thanks.
Mike
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message news:ue**************@TK2MSFTNGP11.phx.gbl...
As the message says, it means the user credentials are unknown.
You specified administrator as UserName, but this is a local administrator account, you need to specify a domain admin account.
Willy.
"Mike" <no****@nospam.com> wrote in message news:OD**************@tk2msftngp13.phx.gbl...
Hi,
I am trying to bind to an Active Directory server using the following snippet, but I always get a usre unknown or bad password error message.
DirectoryEntry de = new DirectoryEntry(LDAP://srv-dell.waysoft.local);
de.AuthenticationType = AuthenticationTypes.ServerBind;
de.Username = "administrator";
de.Password = "password";
string usr = de.Properties["DisplayName"].Value.ToString(); // the error message appears here
Any idea of what is wrong?
Thanks.
Mike
>Thanks Willy. I can now see the various properties. Is there a possibility to query the Active Directory to gather some information about the user (group, phone, etc.)? How can I do that?
Yes, of course - if you know what you're looking for, you can get
almost everything from AD ! ;-)
To get an understanding of the available properties etc., you can
either study the LDAP schema, or use something like my BeaverTail ADSI
browser to explore your objects.
BeaverTail is written in C#, available free of charge including source
code, from this link: http://adsi.mvps.org/adsi/CSharp/beavertail.html
Enjoy!
Marc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: dmcconkey |
last post by:
Hi folks,
I've been searching for a while and haven't found my specific question
anywhere else. If this has already been asked, please accept my
appologies and point me to the appropriate...
|
by: Amar |
last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap
does not have security as it returns only user demographic information.
i do not need to bind with a username or...
|
by: Angel |
last post by:
Hello all - I have a LDAP service running on a NT4 box (not a mbr of
my AD domain), I'd like to extract the users/attributes from that LDAP
service and populate my AD domain with those users and...
|
by: m96 |
last post by:
hi,
i'm trying to make a query to a ldap server (version v2 or v3 doen't
matter) with c#. the query works just fine but the problem is that i can't
read the custom attributes/fields, since .net...
|
by: Terry Miller |
last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box.
RHEL is configured to talk to LDAP for authenticaton besides the local
passwd file. I can verify this by executing an su...
|
by: duncan beaumont |
last post by:
Hi,
- SQLserver 2000
- Yellowfin 2.4
- Windows 2003 server
I have been asked to investigate seting up LDAP authentication to
access our
Yellowfin reporting.
|
by: Jed Parsons |
last post by:
Hi,
authenticates a user against our ldap server.: User types in name and
password, and module sees if name and password check out right with the
ldap server.
I see that it's pretty...
|
by: sallas |
last post by:
Hi,
I have a simple LDAPS script:
#!/usr/bin/python2.3
import sys
import ldap
if __name__ == '__main__':
ldap.set_option(ldap.OPT_DEBUG_LEVEL,255)
|
by: rbukkara |
last post by:
Hi,
I have got the following error while trying to add a user in the LDAP Directory.
javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu'
I have...
|
by: Sells, Fred |
last post by:
I'm running python 2.5 (or 2.4) in an XP environment.
I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |