473,324 Members | 2,248 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,324 software developers and data experts.

Active Directory 2003 bringt Fehler "Der Server ist nicht funktionstüchtig"

Hallo,

ich versuche nun seit einiger Zeit, auf einem Active-Directory Server
das Passwort eines Benutzers zu setzen. Hier der verwendete Quelltext:

------------
Dim entry As DirectoryEntry = New DirectoryEntry(_path,
_useranddomain, _UserPwd)
Dim search As DirectorySearcher = New DirectorySearcher(entry)
search.Filter = "(samaccountname=" & username & ")"
search.PropertiesToLoad.Add("cn")
Dim result As SearchResult = search.FindOne()

Dim usercn = CType(result.Properties("cn")(0), String)
entry = New DirectoryEntry(_path & "/cn=" & usercn & "," & _domain,
_username, _UserPwd, AuthenticationTypes.Secure Or
AuthenticationTypes.SecureSocketsLayer)

entry.Invoke("SetPassword", New Object() {password})
entry.CommitChanges()
entry.Close()
---------

Der Fehler wird in der Zeile entry.Invoke("SetPassword"... angezeigt.
Die Meldung lautet:

System.Runtime.InteropServices.COMException: Der Server ist nicht
funktionstüchtig

bzw.

[COMException (0x8007203a): Der Server ist nicht funktionstüchtig]

Das verrückte an der Sache ist, dass ich genau diesen Quelltext gegen
einen Win2000Server mit Active Directory laufen lassen kann, aber
gegen einen Win2003Server diese Fehlermeldung erscheint.

Meine bisherige Analyse hat folgendes ergeben:

- Es wird versucht, eine SSL-Verbindung zu öffnen, die vom server
jedoch nicht akzeptiert bzw. aufgebaut wird
- Ich habe bereits einen Zertifikatsserver installiert, einen
Schlüssel erzeugt, aber keine weiteren Einstellungen vorgenommen.
Ich wäre sehr dankbar über einen Tipp, welche Einstellung man am
Windows 2003 Server vornehmen muss, damit es auch funktioniert.

MfG
Marko
Nov 21 '05 #1
1 5935
* au******@hotmail.com (Marko G.) scripsit:
ich versuche nun seit einiger Zeit, auf einem Active-Directory Server
das Passwort eines Benutzers zu setzen. Hier der verwendete Quelltext:


Notice that this is an English language group. For questions in German
please turn to the following group:

<URL:news://news.microsoft.com/microsoft.public.de.german.entwicklet.dotnet.vb>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

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

Similar topics

2
by: Schrodiodo | last post by:
I need some help, please. Alphabetically: BizTalk Server
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
2
by: a | last post by:
I keep getting this message, "unable to get the project file from the web server" when I try to open a new project that I just copied. I created a virtual director with IIS 5 (VS2002). Trying to...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
6
by: Martin Eyles | last post by:
Hi, I have a page that contains the following <div runat="server" id="Pikea"> <object runat="server" id="PiTV" style="width:560px; height:560px"...
10
by: VB Programmer | last post by:
1. Is there an ASP.NET 2.0 version available yet? 2. Is there a VB.NET version available? 3. How do I install the source version on my dev machine (I have SQL Server 2000, VS.NET, IIS, etc...)...
3
by: Jim in Arizona | last post by:
Most of the asp.net learning I've done has been from books that were written during the 1.0 framework. I didn't have a copy of visual studio when I started reading them then I got a hold of VS 2005...
0
by: Glenn | last post by:
Hi All: I have written an Users Registration system that is working just fine when I point to an Active Directory running within a local VMWare instance. It's a very basic AD schema. But, when...
0
by: Chuck.Dieterle | last post by:
I have a very frustrating problem. I have a situation that works fine on some computers, but not on others. I have SQL Server Express 2005 and Access 2003 loaded on 4 computers. I have set up a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.