![]() Printf("ldap_set_option succeeded - version set to 3\n") ReturnCode = ldap_set_option(pLdapConnection, Set the version to 3.0 (default is 2.0). Printf( "ldap_init failed with 0x%x.\n",hr) Set the HRESULT based on the Windows error code.Ĭhar hr = HRESULT_FROM_WIN32(GetLastError()) PLdapConnection = ldap_init(hostName, LDAP_PORT) Mbstowcs_s(convertedChars, wcstring, origsize, argv, _TRUNCATE) I have used this code with slight modifications from the Microsoft docs: // Verify that the user passed a hostname. I am trying to use LDAP to connect to Active Directory from a Windows client. I have setup Active Directory on a Windows Server 2019.
0 Comments
Leave a Reply. |