Re: [Dspace-tech] LDAP Authentication (Hierarchical) - Dspace 3.0 (No DN found for user)
Thanks Helix as this resolved my query. --- On Thu, 1/17/13, helix84 heli...@centrum.sk wrote: From: helix84 heli...@centrum.sk Subject: Re: [Dspace-tech] LDAP Authentication (Hierarchical) - Dspace 3.0 (No DN found for user) To: mErRYo merryob...@yahoo.com Cc: dspace-tech@lists.sourceforge.net Date: Thursday, January 17, 2013, 5:57 PM The first strange thing from the get-go is that LDAPHierarchicalAuthentication which you're using is no longer in DSpace 3.0, its functionality has been integrated into LDAPAuthentication. So you probably used the old class with the new code. This should work, assuming you compiled it (LDAPHierarchicalAuthentication.java) in the new codebase. If you decide to go use the new LDAPAuthentication class, you should set search.anonymous = false (I'm not sure what the default is if it's not set). About no DN found for user - this is printed when the admin user's DN cannot be found in the LDAP directory. This means that either search.user/search.password is wrong or connection to LDAP couldn't be established (provider_url et al). Try the new LDAPAuthentication class first. Details are in the upgrading notes. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] LDAP Authentication (Hierarchical) - Dspace 3.0 (No DN found for user)
Hi, I am using Dspace 3.0 jspui with two authentication mechanism i.e. password base and ldap base. My password is working fine but my ldap is throwing me warning that No DN found for user. I checked my dspace log and there is no other exception. See my log details below: * 2013-01-17 17:03:32,196 INFO org.dspace.authenticate.PasswordAuthentication @ anonymous:session_id=BB57212BD7445A506852117C01FC7F34:ip_addr=myclientip:authenticate:attempting password auth of user=myu...@abc.com 2013-01-17 17:03:32,196 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query select * from eperson where email = ? with parameters: myu...@abc.com 2013-01-17 17:03:32,290 INFO org.dspace.authenticate.LDAPHierarchicalAuthentication @ anonymous:session_id=BB57212BD7445A506852117C01FC7F34:ip_addr=myclientip:auth:attempting trivial auth of user=myu...@abc.com 2013-01-17 17:03:32,290 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query select * from eperson where netid = ? with parameters: myu...@abc.com 2013-01-17 17:03:32,321 INFO org.dspace.authenticate.LDAPHierarchicalAuthentication @ anonymous:session_id=BB57212BD7445A506852117C01FC7F34:ip_addr=myclientip:failed_login:no DN found for user myu...@abc.com 2013-01-17 17:03:32,321 INFO org.dspace.app.webui.servlet.PasswordServlet @ anonymous:session_id=BB57212BD7445A506852117C01FC7F34:ip_addr=myclientip:failed_login:email=myu...@abc.com, result=2 2013-01-17 17:03:32,321 DEBUG org.dspace.app.webui.util.JSPManager @ anonymous:session_id=BB57212BD7445A506852117C01FC7F34:ip_addr=myclientip:view_jsp:/login/incorrect.jsp ** my authentication-ldap.cfg details are as follows: enable = true # LDAP AutoRegister Settings # autoregister = false provider_url = ldap://serverip:389/ id_field = cn object_context = cn=users,DC=abc,DC=com search_context = cn=users,DC=abc,DC=com email_field = mail surname_field = sn givenname_field = givenName phone_field = telephoneNumber #login.specialgroup = group-name # Hierarchical LDAP Settings # search_scope = 2 # search.anonymous = false search.user = cn=administrator,cn=users,dc=abc,dc=com search.password = mypass #netid_email_domain = @example.com -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] LDAP Authentication (Hierarchical) - Dspace 3.0 (No DN found for user)
The first strange thing from the get-go is that LDAPHierarchicalAuthentication which you're using is no longer in DSpace 3.0, its functionality has been integrated into LDAPAuthentication. So you probably used the old class with the new code. This should work, assuming you compiled it (LDAPHierarchicalAuthentication.java) in the new codebase. If you decide to go use the new LDAPAuthentication class, you should set search.anonymous = false (I'm not sure what the default is if it's not set). About no DN found for user - this is printed when the admin user's DN cannot be found in the LDAP directory. This means that either search.user/search.password is wrong or connection to LDAP couldn't be established (provider_url et al). Try the new LDAPAuthentication class first. Details are in the upgrading notes. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette