XWall LDAPQuery.vbs

Questions about Wine on Linux
Locked
dresc
Newbie
Newbie
Posts: 2
Joined: Tue Sep 16, 2014 9:22 am

XWall LDAPQuery.vbs

Post by dresc »

Hi,


I have a problem getting work visual basic script, it's in attatchment. It's a script from Xwall spamfilter which does query to active directory to know does e-mail address exists, if it dosen't it don't send e-mail to mail server.

I got error message

Code: Select all

C:\XWall>c:\windows\system32\cscript.exe c:\xwall\ldapquery.vbs [email protected] ee-camel.random.com -u random\sventest07 -pSventest07
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1
err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1
E-Mail: [email protected]
   DNC: random\sventest07
   SQL: Select cn,adspath,ProxyAddresses from 'GC://random\sventest07' where ProxyAddresses='SMTP:[email protected]'
 Error: The connection cannot be used to perform this operation. It is either closed or invalid in this context.

C:\XWall>

What i have done so far:
* sh winetricks wsh56
* ./winetricks vcrun6
* sh winetricks mdac28
* apt-get install libwine-ldap
* sh winetricks --force jet40 mdac28
* sh winetricks ie6


Can anyone please help!
Attachments
LDAPQuery.zip
LDAPQuery.vbs
(1.73 KiB) Downloaded 144 times
dresc
Newbie
Newbie
Posts: 2
Joined: Tue Sep 16, 2014 9:22 am

Re: XWall LDAPQuery.vbs

Post by dresc »

Okay i got little different and informative error message now, i used old wine 1.4 before, i updated it to 1.6.2
What i did:
* su root
* nano /etc/apt/sources.list

Code: Select all

deb http://cdn.debian.net/debian/ testing main
* sudo apt-get update
* apt-get install wine
* wget http://winetricks.org/winetricks
* chmod +x winetricks
* apt-get install zenity
* apt-get install cabextract
* rm -Rf /root/.wine
* winetricks jet40 mdac28 vcrun6 wsh56
* wine cmd
* C:\windows\system32\cscript.exe C:\LDAPQuery.vbs [email protected]

Code: Select all

C:\>C:\windows\system32\cscript.exe C:\LDAPQuery.vbs [email protected]
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1
fixme:ole:CLSIDFromProgIDEx L"ADODB.Connection",0x33ef50: semi-stub
err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} could be created for context 0x1
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ole:CLSIDFromProgIDEx L"ADODB.Command",0x33ef50: semi-stub
E-Mail: 
   DNC: lion1.random.com
  User: random\test
    PW: test
   SQL: Select cn,adspath,ProxyAddresses from 'GC://lion1.random.com' where ProxyAddresses='SMTP:'
 Error: The connection cannot be used to perform this operation. It is either closed or invalid in this context.

C:\>

User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: XWall LDAPQuery.vbs

Post by dimesio »

Never run Wine as root. Delete root's wineprefix and start over as a normal user.
Locked