Thanks for your response.
Yeah firstly i was passing plain text but as the credentilas field of LDAP is of type "guided string" so it was gicing the above error.
But when I try with the encrypted value then i am getting incorrect credentilas meggase because the encrypted value of a plain text
is genarated dynamically.
Well, in that case it's the format of the encrypted string that is wrong I suppose since it's not keeping the length right.
just interpreting the error message it seems it want specific lengths, not really my area this.