There is no such object on the server
- From: Joe V <jnv0529@xxxxxxxxx>
- Date: Mon, 19 May 2008 07:19:51 -0700 (PDT)
Hello,
I'm trying to write a script that will get me info on a user account.
But I'm having a problem with GetObject. Below is my entire script (2
lines), yes I know it doesn't do much. I'm just trying to figure out
what the problem is.
------
Set objUser = GetObject ("LDAP://
cn=username,ou=city,ou=users,dc=corp,dc=acme,dc=local")
Wscript.Echo "Password last changed: " & objUser.passwordLastChanged
------
I get a Windows Script Host error
Line: 1
Char: 1
Error: There is no such object on the server
Code: 80072030
Source: (null)
The username is spelled correctly. I have an OU for each city with an
office, and in each one there is another OU called "users". I tried
it both ways, ou=city,ou=users and ou=users,ou=city. Everything is
spelled correctly. What is the problem? Is it case sensitive, am I
missing a field, am I missing a space, what?
Please help.
Thanks,
Joe
.
- Follow-Ups:
- Re: There is no such object on the server
- From: Richard Mueller [MVP]
- Re: There is no such object on the server
- Prev by Date: Re: how to Open notepad with a command-line argument
- Next by Date: Re: how to Open notepad with a command-line argument
- Previous by thread: Re: VBScript not running
- Next by thread: Re: There is no such object on the server
- Index(es):
Relevant Pages
|
|