Trying to connecto to an LDAP server, keep getting the following error:

ERROR: {"lde_message":"80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839\u0000","lde_dn":null}

Turns out the server wants the Full Name in the CN= instead of the username.

I was trying to login using something like this:

cn=gone,ou=Admin,dc=goliaton,cd=io

Lets say the user gone belongs to the user Goliat One (in the form first last name).

This worked:

cn=Goliat One,ou=Admin,dc=goliaton,cd=io

Btw, I'm using activedirectory2