I've tried put Impersonate="yes" and "no" into CustomAction tag. Still failed 
with the same err code.

I also noticed that there's a logging trace saying "Hello, I'm your 32bit 
Impersonated custom action server" no matter setting Impersonate to yes or no.

Any thought?


Regards!
 -ofox

----- Original Message -----
> From: "Kun Shi (ofox)" <s...@vmware.com>
> To: "General discussion for Windows Installer XML toolset." 
> <wix-users@lists.sourceforge.net>, "phil wilson"
> <phil.wil...@mvps.org>
> Sent: Sunday, November 11, 2012 3:39:12 PM
> Subject: Re: [WiX-users] ldap_open/ldap_connect in Custom Action
> 
> Hi Phil,
> 
> thanks for the info. Then how could I run my CA as user account? I'm
> really a newbie to Wix and ldap...
> 
> 
> Regards!
>  -ofox
> 
> ----- Original Message -----
> > From: "Phil Wilson" <phil.wil...@mvps.org>
> > To: "General discussion for Windows Installer XML toolset."
> > <wix-users@lists.sourceforge.net>
> > Sent: Sunday, November 11, 2012 2:01:16 AM
> > Subject: Re: [WiX-users] ldap_open/ldap_connect in Custom Action
> > 
> > Things like this are often related to the account that the CA is
> > running
> > with. If it's impersonation=no (and if that's the syntax) it's
> > running with
> > the system account and accessing localhost might count as "network
> > access"
> > that the system account usually cannot do. It works when you run
> > ldpa.exe
> > because presumably you run it with your user account.
> > 
> > Phil
> > 
> > -----Original Message-----
> > From: Kun Shi (ofox) [mailto:s...@vmware.com]
> > Sent: Saturday, November 10, 2012 5:05 AM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] ldap_open/ldap_connect in Custom Action
> > Importance: High
> > 
> > 
> > Hi guys,
> > 
> > 
> > I need to access LDAP when running a msi on a Windows server 2008 ,
> > so I
> > have to call LDAP APIs using CA. I tried 2 approaches, but both
> > failed with
> > error code 0x51 " Cannot contact the LDAP server ".
> > 
> > 
> > 1. ldap_open((PWCHR)"localhost", 389)
> > 2. ldap_init( (PWCHR)"127.0.01", 389 ), then ldap_connect(...)
> > 
> > 
> > I also tested with ldp.exe on the same machine, it could connect to
> > LDAP
> > server with localhost.
> > 
> > 
> > Am I doing anything wrong? Did anybody have similar experience?
> > 
> > 
> > Thanks!
> > -ofox
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ----------------------------------------------------------------------------
> > --
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_nov
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > 
> > 
> > 
> > ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_nov
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> > 
> 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to