LDAP Login Error
Hi,
I have configured the LDAP connections and able to see Authentication Provider dropdown list (options: Default, LdapUsers)
However, when I tried to login using one of the Ldap users, I get the following error message:
[NullReferenceException: Object reference not set to an instance of an object.] DynamicModule.ns.Wrapped_LdapMembershipProvider_c07addffeabe48e49c0bcf486175618f.GetUser(String userName) +421 Telerik.Sitefinity.Security.SecurityManager.AuthenticateUser(String membershipProviderName, String userName, String password, Boolean persistent, User& user) +128 Telerik.Sitefinity.Security.Web.UI.LoginForm.LoginForm_Authenticate(Object sender, AuthenticateEventArgs e) +240 System.Web.UI.WebControls.Login.AttemptLogin() +166 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +78 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +52 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3410 |
Hello Chen Yong,
You should see the LDAP provider under Administration >> Users as a separate tab ( provider). Please restart the application after LDAP has been configured. You can also take a look at this thread.
It looks like the LDAP provider could not find the user you are trying to authenticate. You can try to create an instance of LdapMembershipProvider and call its GetUser( string username) method to see what would be returned from the query - you should get Telerik.Sitefinity.Security.Model.User object.
Greetings,
Ivan Dimitrov
the Telerik team