Page 1 of 1 1
Topic Options
#162471 - 2006-05-25 07:22 PM Problem with TranslateName()
dlisterjr Offline
Fresh Scripter

Registered: 2003-05-12
Posts: 19
Loc: East Chicago, IN
I am running translate name on a number of workstations with success, but on two machines 1 xp and 1 2k, I get the following error: COM exception error "Init" ((null) - (null)) [-2147352567/80020009].

Any ideas?

Top
#162472 - 2006-05-25 07:33 PM Re: Problem with TranslateName()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What part of the UDF is throwing the error? There are four places where @error is checked.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#162473 - 2006-05-26 02:15 PM Re: Problem with TranslateName()
dlisterjr Offline
Fresh Scripter

Registered: 2003-05-12
Posts: 19
Loc: East Chicago, IN
It happens here:

$DN = TranslateName (1, @LDomain, 3, @LDOMAIN + "\" + @USERID, 1)
? "Server Error: " + @SERROR

I am using TranslateName() 2.0

Top
#162474 - 2006-05-26 02:32 PM Re: Problem with TranslateName()
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The "Init" method is failing.

Code:
;PARAMETERS       $InitType (Required)
; - Integer value
; 1 = ADS_NAME_INITTYPE_DOMAIN
; Initializes a NameTranslate object by setting the domain that the object will bind to.
;
; 2 = ADS_NAME_INITTYPE_SERVER
; Initializes a NameTranslate object by setting the server that the object will bind to.
;
; 3 = ADS_NAME_INITTYPE_GC
; Initializes a NameTranslate object by locating the global catalog that the object will bind to.
;



You are attempting to bind to a domain using the value of @Ldomain. Have you validated that the macro is populated on these two computer? You should log the the value of @Ldomain to insure that you have a valid value. Also, these two computers may be suffering from some form of name resolution failure and can not resolve the domain name. These computers have to be part of the forest where @Ldomain resides.

Have you tried to use a different binding parameter? If not try each value and check the result on these computers.

Make a small test script of just the line TranslateName() line and the UDF for testing on your problem computers.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#162475 - 2006-05-26 10:00 PM Re: Problem with TranslateName()
dlisterjr Offline
Fresh Scripter

Registered: 2003-05-12
Posts: 19
Loc: East Chicago, IN
I have done all you suggested. I included output for all parameters I am using in the script. Everything checks out fine. All @ variables are showing. This script is running on about 5000 machines fine. It's only 2 so far that exhibit these symptoms.
Top
#162476 - 2006-05-26 10:14 PM Re: Problem with TranslateName()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
2 out of 5000 is not bad odds. Blame the user for having installed spyware and drop a new image on the 2 and be done with them.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#162477 - 2006-05-26 10:15 PM Re: Problem with TranslateName()
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
you did not provide any usable information in your last post...

Did you check the macro values on the 2 computer that failed?
Did you run the test script on the 2 computers that failed?
In your test script did you use each of the different bind values?
What were the results from those 2 failing computers for each of the bind values?

Without specific information about the failues we can not offer any assistance.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.061 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org