FAQWindows-Expert.com Forum Index  •   FAQFAQ  •  SearchSearch
Windows-Expert.com
Find Windows Problems and Solutions
 
ADSI - The server is not operational
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Windows-Expert.com Forum Index -> Server Scripting
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Oct 07, 2009 1:06 pm    Post subject: ADSI - The server is not operational Reply with quote

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", _
"administrator@mydomain.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/aspnet/f4fbf671-5b70-45b3-ab58-90633f7ae7e4/sapi-51-voice--enabled.aspx
Back to top
Guest
Guest



Posts
Location

PostPosted: Wed Oct 07, 2009 1:06 pm    Post subject: Google Ads Reply with quote

Back to top
Guest






PostPosted: Wed Oct 07, 2009 1:08 pm    Post subject: Oops - code didn't paste correctly Reply with quote

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", _

"administrator@mydomain.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", _
"administrator@mydomain.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/aspnet/9734b345-d1a5-4898-8192-bfdf6fef6500/vbnet-event-managment-.aspx
Back to top
Guest






PostPosted: Wed Oct 07, 2009 1:09 pm    Post subject: One more try! Reply with quote

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", _
"administrator@mydomain.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", _

"administrator@mydomain.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/aspnet/d89d1d96-03f1-4784-bbb2-a3db1af393f5/aspnet-datalist-and-data.aspx
Back to top
Richard Mueller [MVP]
Guest





PostPosted: Fri Oct 09, 2009 6:43 pm    Post subject: Re: One more try! Reply with quote

"Gordon Rose" wrote in message news:200910711943gordon@activecert.com...
Quote:
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",
_
"administrator@mydomain.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", _
administrator@mydomain.local, "Password1", _
ADS_SECURE_AUTHENTICATION Or ADS_SERVER_BIND)

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Windows-Expert.com Forum Index -> Server Scripting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Topic Links: syslog
Powered by phpBB © 2001, 2005 phpBB Group