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" <[email protected]> > To: "General discussion for Windows Installer XML toolset." > <[email protected]> > 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:[email protected]] > Sent: Saturday, November 10, 2012 5:05 AM > To: [email protected] > 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 > [email protected] > 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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

