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

Reply via email to