Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > ADSI - The server is not operational

Reply
Thread Tools Display Modes

ADSI - The server is not operational

 
 
Gordon Rose
Guest
Posts: n/a

 
      10-07-2009
Hi, I have installed a W2K3 domain controller and have installed Certificate Services on the computer. I have also installed the CA's root certificate in the Trusted Root Certification Authorities folder of a remote, non-domain member computer.

When I run the following simple VBS script on the DC, it works fine. When I run it on the non-domain member computer, it fails with the message "The service is not operational". Anyone have ideas?

set objOU = objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local", _
"", _
"Password1", _
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)

WScript.Echo objOU.Get("cn")

Thanks,

Gordon

EggHeadCafe - Software Developer Portal of Choice
SAPI 5.1: Voice - Enabled Applications With VB
http://www.eggheadcafe.com/tutorials...--enabled.aspx
 
Reply With Quote
 
 
 
 
Gordon Rose
Guest
Posts: n/a

 
      10-07-2009
Here is the code again

ADS_SECURE_AUTHENTICATION = 1
ADS_USE_SSL = 2

set objLDAP = GetObject("LDAP:")


set objOU = objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local", _

"", _

"Password1", _
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)

WScript.Echo objOU.Get("cn")




Gordon Rose wrote:

ADSI - The server is not operational
07-Oct-09

Hi, I have installed a W2K3 domain controller and have installed Certificate Services on the computer. I have also installed the CA's root certificate in the Trusted Root Certification Authorities folder of a remote, non-domain member computer.

When I run the following simple VBS script on the DC, it works fine. When I run it on the non-domain member computer, it fails with the message "The service is not operational". Anyone have ideas?

set objOU = objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local", _
"", _
"Password1", _
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)

WScript.Echo objOU.Get("cn")

Thanks,

Gordon

EggHeadCafe - Software Developer Portal of Choice
VB.NET Event Managment / Logging through Publisher / Subsriber Pattern
http://www.eggheadcafe.com/tutorials...anagment-.aspx
 
Reply With Quote
 
Gordon Rose
Guest
Posts: n/a

 
      10-07-2009
ADS_SECURE_AUTHENTICATION = 1
ADS_USE_SSL = 2

set objLDAP = GetObject("LDAP:")


set objOU = objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local", _
"", _
"Password1", _
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)

WScript.Echo objOU.Get("cn")




Gordon Rose wrote:

Oops - code didn't paste correctly
07-Oct-09

Here is the code again

ADS_SECURE_AUTHENTICATION = 1
ADS_USE_SSL = 2

set objLDAP = GetObject("LDAP:")


set objOU = objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local", _

"", _

"Password1", _
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)

WScript.Echo objOU.Get("cn")

EggHeadCafe - Software Developer Portal of Choice
ASP.NET DataList and DataRepeater Controls
http://www.eggheadcafe.com/tutorials...-and-data.aspx
 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      10-09-2009


"Gordon Rose" wrote in message news:...
> ADS_SECURE_AUTHENTICATION = 1
> ADS_USE_SSL = 2
>
> set objLDAP = GetObject("LDAP:")
>
>
> set objOU =
> objLDAP.OpenDSObject("LDAP://myserver.MyDomain.local:636/cn=users,dc=MyDomain,dc=local",
> _
> "", _
> "Password1", _
> ADS_SECURE_AUTHENTICATION + ADS_USE_SSL)
>
> WScript.Echo objOU.Get("cn")
>


I replied a few days ago, but since I still don't see it, I'll try again. My
suggestion was to try ADS_SERVER_BIND instead of ADS_USE_SSL. For example:
===========
' ADS Authentication constants that can be used.
Const ADS_SECURE_AUTHENTICATION = &H1
Const ADS_SERVER_BIND = &H200

Set objOU =
objLDAP.OpenDSObject("LDAP://MyServer/cn=users,dc=MyDomain,dc=local", _
, "Password1", _
ADS_SECURE_AUTHENTICATION Or ADS_SERVER_BIND)

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the server is not operational Simon Active Directory 2 08-13-2009 09:06 AM
Server not operational Nathan Server Networking 2 04-29-2008 12:35 PM
Server is not operational! Tom Windows Server 9 09-29-2004 05:45 PM
The Server Is Not Operational Jesse Villa Active Directory 2 06-22-2004 04:39 PM
Server not Operational Jaime Active Directory 4 05-25-2004 03:24 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59