Question

LDAP: XP-SP2 client access to W2K DC server

Asked by: HStrix

Hello experts,
I experienced the following problem:
In an XP-SP2 client I logon into a domain on a W2K-DC (SP4).
The logon is successful.
Now I execute the following statement on the client:
   Set rootDSE = GetObject("LDAP://rootDSE")
The response is:The domain does not exist or a connection cannot be established.
As far as I use a client with XP-SP1 (or W2K Profi) in the same context everything is working.
Does anyone know what I need to change (in XP-SP2?) to make the environment working?
Thank you for any help.
HStrix

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-05-23 at 11:24:01ID21860973
Tags

ldap

,

getobject

,

rootdse

Topic

Windows Network Security

Participating Experts
1
Points
125
Comments
32

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. LDAP on W2K
    Need info on LDAP, concept, basics, how to enable, usage, benefits,etc....
  2. LDAP post
    Hi, I want to transfer a string with username, password, and other information on a string from a webpage on one domain to another website (asp) on another domain securely as a post if possible. I was pointed to LDAP. Anyone know how this could be accomplished using LDAP? A...
  3. Communicating LDAP from ASP
    Hi All, Is it possible to communicate from ASP to LDAP server which hosted in Solaris? Here i need to add/modify/delete user details in LDAP server from ASP page. Can anybody help me with sample code. Thanks and Regards, Jagan
  4. VB & LDAP problem
    I'm running a program that reads and changes values of attributes in the Active Directory. I run the following code: Dim objChild As Object Set objChild = GetObject("LDAP://" & path) objChild.badPwdCount = 0 objChild.lockOutTime = 0 objChild.SetInfo ...
  5. Ldap server
    how do i setup a ldap server on windows 2000 ?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mdiglioPosted on 2006-05-23 at 11:28:08ID: 16745022

Hello,
First comapre that the DNS entries on your xp SP2 machine to the other machines that are working.

 

by: HStrixPosted on 2006-05-23 at 11:35:05ID: 16745084

Thanks, I created the XP2-SP2 from a copy of the XP-SP1.
So, what to compare?
The computername has changed and added to the DC.
A DNS server is not installed. I use DHCP from a host.

 

by: HStrixPosted on 2006-05-23 at 11:36:34ID: 16745095

On the network neighborhood of XP-SP2 I can access the DC's share.

 

by: mdiglioPosted on 2006-05-23 at 12:01:59ID: 16745352

What are the lines around the one line you posted?

Generally I don't see or use this the way you are using it.
try something like

Set objRootLDAP = GetObject("LDAP://RootDSE")
strDomain = objRootLDAP.Get("DefaultNamingContext")

you have the same rootDSE to the left and right of the operator,
that could be causing the problem

 

by: HStrixPosted on 2006-05-23 at 12:09:29ID: 16745410

The caller ( a cmd file):
   cscript showInfo.vbs //NOLOGO
   pause >nul
The vbs file:
   on error resume next
   ' AD Domain:
   isADS = false
   Set rootDSE = GetObject("LDAP://rootDSE") ' <== here the error appears if I make the "On error" to comment
      actErr = Err.number
      If actErr = 0 Then
          isADS = true
       Else
         WScript.echo "AD does not exist"
      End If
      strADDomain = rootDSE.Get("defaultNamingContext")
   Set rootDSE = Nothing
   If isADS = true Then
       WScript.echo("AD:" + strADDomain)
   End If
   ...


 

by: mdiglioPosted on 2006-05-23 at 12:13:42ID: 16745441

test this out:


on error resume next
' AD Domain:

isADS = false
Set objRootLDAP = GetObject("LDAP://rootDSE") ' <== here the error appears if I make the "On error" to comment
actErr = Err.number
If actErr = 0 Then
      isADS = true
  Else
      WScript.echo "AD does not exist"
End If

strADDomain = objRootLDAP.Get("defaultNamingContext")
Set rootDSE = Nothing

If isADS = true Then
      WScript.echo("AD:" + strADDomain)
End If

 

by: HStrixPosted on 2006-05-23 at 12:27:00ID: 16745568

I get "AD does not exist"

 

by: HStrixPosted on 2006-05-23 at 12:48:47ID: 16745767

In addition I'm executing a logon script.
There the following appears:
...
C:\...\myadm>net send myserver "Hello from myadm on  clientXPSP2"
An error appeared during sending the message to myserver
The alias of the message on the network could not be found
For further help enter NET HELPMSG 2273
...
I think this situation has the same reason as the primary problem.

 

by: mdiglioPosted on 2006-05-23 at 13:04:47ID: 16745907

1) OK I have to get the DNS question out of my mind.
Can you run an ipconfig /all from the command line to verify?

2) Also in your script replace this line

   WScript.echo "AD does not exist"

with this

Wscript.echo err.number & vbtab & err.description

This will give a more detailed description.

3) check event viewer for errors on startup that might pertain to this situation

4) When you created this copy of the XP SP1 machine what utility did you use and do you use it often?
Basically want to see if you use something like GhostWalker to change the machine ID.

5) If this is a test machine then rejoin it to the domain using a different name

 

by: HStrixPosted on 2006-05-23 at 13:26:04ID: 16746105

Here is the ipconfig /all
---

C:\>ipconfig /all

Windows-IP-Konfiguration

        Hostname. . . . . . . . . . . . . : clientxpsp2
        Primäres DNS-Suffix . . . . . .: srvExchange.VMware
        Knotentyp . . . . . . . . . . . . . : Hybrid
        IP-Routing aktiviert. . . . . . . : Nein
        WINS-Proxy aktiviert. . . . . . : Nein
        DNS-Suffixsuchliste . . . . . .  : srvExchange.VMware
                                                   localdomain

Ethernetadapter LAN-Verbindung 2:

        Verbindungsspezifisches DNS-Suffix: localdomain
        Beschreibung. . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
        Physikalische Adresse . . . . .: 00-0C-29-9D-B4-5B
        DHCP aktiviert. . . . . . . . .  . : Ja
        Autokonfiguration aktiviert .  : Ja
        IP-Adresse. . . . . . . . . . .  .. : 192.168.146.147
        Subnetzmaske. . . . . . . . . .  : 255.255.255.0
        Standardgateway . . . . . . . . : 192.168.146.2
        DHCP-Server . . . . . . . . . . . : 192.168.146.254
        DNS-Server. . . . . . . . . . . . : 192.168.146.2
        Primärer WINS-Server. . . .  : 192.168.146.2
        Lease erhalten. . . . . . . . . . : Dienstag, 23. Mai 2006 22:10:09
        Lease läuft ab. . . . . . . .. . . : Dienstag, 23. Mai 2006 22:40:09

C:\>
---

 

by: HStrixPosted on 2006-05-23 at 13:48:38ID: 16746299

for 2) I get only -2147023541    <== no description
 

for 3) I get (translation from German):
--- System event:
The resource entries for Host(A) for the following network adapter couldn`t be registered:
   Adaptername : {61B348EB-5A5F-48DC-90FE-07492EB5A937}
   Hostname : clientxpsp2
   Primary Domain suffix : srvExchange.VMware
   DNS server list :
           192.168.146.2
   Server, to whom the Update has been send : <?>
   IP-Adresse(s) :
     192.168.146.147
The resource entries couldn't be registered because the DNS server has rejected the Update request.
Possible reasons are:
(a) You are not allowed to actualize the DNS domain name
(b) the authorized DNS server does not support dynamical DNS update
Further information can be received from http://go.microsoft.com/fwlink/events.asp.
--- Application event
The DC for your network could not be detected.
The given Domain does not exist or a connection couldn't be established.
The processing of the group directive has cancelled.

The automatic certificate registration for "local" Computer couldn't establish a connection to the Active Directory (0x8007054b).

The CRM protocol file has been created initially on a computer with another name. It has been actualized with the name of the current Computer.
If this warning is displayed after changing of a computername, no further action is required. clientxpsp1
---

 

by: HStrixPosted on 2006-05-23 at 13:58:42ID: 16746364

for 4) I'm using VMware, my process was as follows:
- copy the files of the VM containing XP-SP1
- start XP-SP1, change domain to workgroup
- start copied XP-SP1, change domain to workgroup, change computername, upgrade with SP2
  join XP-SP2 to domain
- join XP-SP1 to domain <== this VM one is working

for 5) it is a test machine so I could rejoin
  ==> then rejoin it to the domain using a different name
  What do you mean here?

 

by: mdiglioPosted on 2006-05-23 at 14:02:04ID: 16746382

Thanks-
Yes you were right the DNS Entries look fine

With this System Event you posted what is the Source and the EVENT ID ?

 

by: HStrixPosted on 2006-05-23 at 14:05:20ID: 16746406

The source is DnsApi, the Event ID is 11165.

 

by: mdiglioPosted on 2006-05-23 at 14:08:15ID: 16746431

Ooopps didn't see your last post...

I've never sued VMWare so I'm not sure about the procuderes.
Are you suppose to change the machines account ID somewhere in the process, the SID ?
Or is it done for you?

I wanted you to rejoin the computer using a different name to force a new object to be created in AD

sometimes I have better results with problems like this when I either
a) disjoin the computer from the domain and rename it so it joins the Domain as a new/different object
b) Disjoin the computer from the Domain then DELETE the computer in Active Directory Users and Computers

 

by: HStrixPosted on 2006-05-23 at 14:12:40ID: 16746459

What is disjoining a domain?
Is it equivalent to changing a domain to a workgroup?
I made using System-Computername on the client only.

 

by: HStrixPosted on 2006-05-23 at 14:15:24ID: 16746484

I cannot remember if I have been asked to change the SID?

 

by: mdiglioPosted on 2006-05-23 at 14:16:23ID: 16746495

Sorry about that, Yes that is right.
When I said disjoining it is the same as changing a domain to a workgroup

 

by: mdiglioPosted on 2006-05-23 at 14:23:30ID: 16746547

I've never used VMWare so only do what you are comfortable doing

 

by: HStrixPosted on 2006-05-23 at 14:37:55ID: 16746654

XP-SP2 client: I changed the domain to a workgroup
   restart
   logon
Server: I deleted the computer for XP-SP2
XP-SP2 client: the system is re-started
   the firewall is inactive
   I modified the computername to clientxp-sp2
   I rejoined the computer to the domain
   restart
   logon (not OK)
   logon (OK - without changes!)
   after this the new computername appears on the server in Computers
XP-SP2: the problem is still there

 

by: mdiglioPosted on 2006-05-23 at 14:58:43ID: 16746834

I've been trying to find info on that error message you posted. DnsApi, Event ID is 11165
Most articles say to make sure that your DNS is setup to allow dynamic updates

I can't imagine this being your problem but here is where to look...
Open DNS management > expand your server > forward lookup zones > you should see your dns zone.
Now right click on this > choose properties > on the General tab you will see 'Dynamic Updates'

There are plenty of articles out there that discuss this error message.
I'll try to find the better ones and post back. so far they all say the
same thing about allowing Dynamic Updates

 

by: HStrixPosted on 2006-05-23 at 15:33:20ID: 16747064


Dynamic Updates:  Only secured actualization  <== I could set this to Yes or No?

Typ:  Active Directory integrated

On the right side of the DNS window I see
  - the name of the server and its IP (DHCP one)
  - the name of the XP-SP1 client        ---  Host                  --- old IP
    old IP means that in the past the IP was fix and not DHCP based
 - (identical with higher-ranked folder) --- Host                  --- DHCP IP of the server
 - (identical with higher-ranked folder) --- Nameserver       --- AD-name
 - (identical with higher-ranked folder) --- Authority source --- AD-name, admin-AD-name

 

by: mdiglioPosted on 2006-05-23 at 16:35:48ID: 16747424

There should be 3 choices
1) None
2) non secure and secure
3) Secure

If you have it set for either 2 or 3 it should be fine
If you feel comfortable doing so choose number 2 for testing purposes

Is this the only XP SP2 machine in your environment?
Try this also
open 'network and internet connections' in control panel > click network connections >
right click your connection and choose 'repair'

When you were in DNS management what was the zone name where you saw the properties for Dynamic Updates... was it  srvExchange.VMware ?

In DNS Managemnt you will also see a DNS Event log under Event Viewer, is there anything in there that might help ?

Here is an article from MS that is pretty thorough but it seems a bit of an extreme step to take right now.

Information about configuring Windows for domains with single-label DNS names
http://support.microsoft.com/kb/300684

I would feel better if you can stop and restart the dns service for a test to see if that corrects anything before making any changes. Only if you can do so safely






 

by: mdiglioPosted on 2006-05-23 at 16:37:08ID: 16747435

In other words...do not follow the steps in that article yet.
Just read it and see if it applies to your situation

 

by: HStrixPosted on 2006-05-24 at 02:19:45ID: 16749543

Thank you mdiglio,
I'm checking the information you've supplied.
I'll keep you informed.

 

by: HStrixPosted on 2006-05-24 at 07:26:07ID: 16751647

In the meantime I made several checks
and - it is getting strange.
SP2 is still not working for LDAP.
SP1 works for a time and after a while it stops working for LDAP.
But now I changed also the W2K server (DNS, DHCP,...) ,
so I'm encountering problems having a usable environment;
fortunately the server still works as expected.
Because of this situation I'm going to close this question.
Your last comment looks good to me, so I'll accept this.
Sorry for the situation, and - thank you very much for your help.

HStrix

 

by: HStrixPosted on 2006-05-25 at 05:48:55ID: 16760289

FYI, I continued checking my environment
and I found the reason for the problem:
In my Tcp/IP properties I used "Obtain DNS server address automatically".
I changed this to "Use the following DNS server addresses"
and inserted the IP address of my W2K server.
And - voila it worked.
I don't understand why it worked for W2K clients before..
But I'm glad that it is now working.
Thank you again for your help.

 

by: mdiglioPosted on 2006-05-25 at 06:12:29ID: 16760470

Thats Great!
Was this the dns address that you used 192.168.146.2 ?

 

by: HStrixPosted on 2006-05-25 at 06:39:05ID: 16760692

That is the gateway address in the VMs.

On the host, the VMware8 IP is 192.168.146.1

On the VMs (it seems to be required using NAT)
 - the IPs are 192.168.146.x   (if they are based on DHCP)
 - the DHCP is 192.168.146.254
 - the Gateway is 192.168.146.2

 

by: mdiglioPosted on 2006-05-25 at 06:41:34ID: 16760708

Good job, I'm glad you got it figured out

 

by: HStrixPosted on 2006-05-25 at 06:44:58ID: 16760736

This also means
you've been right in thinking that the problem is DNS related!

I thought the system is doing it right,
but it didn't - it needed to be done manually.
So. I learned sonething,
and - it will not be the last one :-)

 

by: HStrixPosted on 2006-05-25 at 06:58:13ID: 16760839

Sorry, it looks that there was something in a clipboard ...

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...