I have a scripted LDAP rpobe currently in use. It uses the anonymous bind authentication to work and it works just fine. However they want to go to a username and password instead for security reasons. So I used the script that was previously supplied on this forum to create the HEX. See below:
The string length maximum is 127 characters, you ended up with 128 somehow. The string you send is specific to a few things, like the server type, how the array is created, etc. You should check out this thread: https://supportforums.cisco.com/message/3613048#3613048 It has some decent information on it.