* Validate "simple" LDAP authentication when the user already exists but does not contains LDAP profile object.
*/
public void testAuthenticateWhenNonLDAPUserAlreadyExists() throws XWikiException
{
XWikiDocument userDoc = getDocument("XWiki." + LDAPTestSetup.HORATIOHORNBLOWER_CN);
userDoc.newObject(this.userClass.getName(), getContext());
saveDocument(userDoc);
assertAuthenticate(LDAPTestSetup.HORATIOHORNBLOWER_CN, LDAPTestSetup.HORATIOHORNBLOWER_PWD,
LDAPTestSetup.HORATIOHORNBLOWER_DN);
}