Hi, I'm trying to connect to TD server via CLIv2 console application using LDAP logon mechanism, but I get the following error: CLI2: BADLOGMECH(507): Requested logon mechanism is not available.
I have set up LDAP option by passing "LDAP" string to DBCAREA logmech_name variable:
Also, I can connect to the server without any problem using BTEQ and specifying:
Thanks for your time.
Ok, so I've got the answer. "LDAP" should be padded with blanks to have 8 characters:
sprintf(dbcarea.logmech_name, "LDAP ");
I should read manuals more carefully :)