Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-11 Thread Kun Shi (ofox)
to yes or no. Any thought? Regards! -ofox - Original Message - > From: "Kun Shi (ofox)" > To: "General discussion for Windows Installer XML toolset." > , "phil wilson" > > Sent: Sunday, November 11, 2012 3:39:12 PM > Subject: Re: [WiX-users] lda

Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Kun Shi (ofox)
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 wit

Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Jeremy Farrell
Assuming the code is C or similar ... I know nothing about these APIs, but the way you're calling them doesn't make sense. If they expect to receive a pointer to a wide character as their first parameter, then they presumably expect that pointer to point to a wide character string - taking a poi

Re: [WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Phil Wilson
rks 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 Act

[WiX-users] ldap_open/ldap_connect in Custom Action

2012-11-10 Thread Kun Shi (ofox)
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 ), t