Ldap Error Code 34 Invalid Dn
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss ldap error code 34 0000208f the workings and policies of this site About Us Learn more about ldap error code 34 - invalid dn syntax remaining name Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Ldap-error: Invalid Dn Syntax
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each
Javax.naming.invalidnameexception: Invalid Name
other. Join them; it only takes a minute: Sign up javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN] up vote 1 down vote favorite I'm a college student. Now, i'm doing a project that must use LDAP connection to authenticate the username and password of the user in log in process. So, my website is develop by use JSP. ldap error code 34 - could not decode search request I try to solve the error of code but i can't. Did I makes some mistake on it? <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ page import="java.util.*" %> <%@ page import="javax.naming.*" %> <%@ page import="java.util.regex.*" %> <%@ page import="javax.naming.directory.*" %> <%@ page import="java.util.Hashtable.*" %> <%@ page import="javax.naming.ldap.*" %>
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://serverfault.com/questions/243442/what-is-my-basedn-supposed-to-be-with-the-following-configuration-of-openldap and policies of this site About Us Learn more about Stack Overflow https://web.liferay.com/community/forums/-/message_boards/message/12851021 the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: ldap error Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top What is my BaseDN supposed to be with the following configuration of OpenLDAP? up vote 2 down vote favorite I have the following in my OpenLDAP configuration. Using the latest version OpenLDAP on Centos 5.3. Installed using yum. From my /etc/openldap/slapd.conf database bdb ldap error code suffix "dc=company,dc=com" rootdn "cn=Manager,dc=company,dc=com" From my /etc/openldap/ldap.conf BASE dc=company,dc=com I have successfully added an entry with ldapadd and retrieved it with ldapsearch from a local bash shell on the box. Now I am trying to get a Graphical Editor to connect to this server remotely so I can enter people from my laptop. But I am having no luck. I tried JXplorer, and it connects with Anonymous bind without me having to specify a BaseDN but I can't edit anything that way. If I try and give it a user name and password, using Manager and my rootpw I have in clear text just for testing, every GUI Client on my remote laptop complains about my BaseDN not being the correct format when I enter dc=company,dc=com and I tried cn=Manager,dc=company,dc=com. Error opening connection: [LDAP: error code 34 - invalid DN] I have tried multiple clients and all of them connect as anonymous, none let me connect authenticated where I can actually create or edit anything. I am using Manager as my username and the password from rootpw, is that correct? authentication ldap
English » 2. Using Liferay » General Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an Answer Threads [ Previous | Next ] LDAP Error 34 - Where is the problem? Robert Mueller March 6, 2012 3:49 AM RE: LDAP Error 34 - Where is the problem? ahmad abuoun March 11, 2012 1:12 AM RE: LDAP Error 34 - Where is the problem? Robert Mueller March 14, 2012 1:57 AM RE: LDAP Error 34 - Where is the problem? Hitoshi Ozawa March 14, 2012 4:36 AM RE: LDAP Error 34 - Where is the problem? ahmad abuoun March 14, 2012 7:27 AM RE: LDAP Error 34 - Where is the problem? Robert Mueller March 15, 2012 12:48 AM LDAP Error 34 - Where is the problem? March 6, 2012 3:49 AM Answer Robert Mueller Rank: New Member Posts: 5 Join Date: September 21, 2011 Recent Posts Hi there.For a while I'm getting a LDAP-Error 34 when I try to login.If an user tries to login the first time, he gets the message, that his logindata is wrong.After trying a second time he can login. All attributes are imported. Now he can login like "normal".But in the logfile I get an exception, if a user logs in:111:31:47,158 ERROR [LDAPAuth:318] Problem accessing LDAP server2javax.naming.InvalidNameException: ou=T-EST,dc=TEST: [LDAP: error code 34 - Invalid DN Syntax]; remaining name 'ou=T-EST,dc=TEST'3 at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2943)4 at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)5 at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1812)6 at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1735)7 at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)8 at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)9 at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)10 at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)11 at com.liferay.portal.security.ldap.PortalLDAPUtil.searchLDAP(PortalLDAPUtil.java:608)12 at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importGroups(PortalLDAPImporterImpl.java:526)13 at com.liferay.portal.security.ldap.PortalLDAPImporterImpl.importLDAPUser(PortalLDAPImporterImpl.java:207)14 at com.liferay.portal.security.ldap.PortalLDAPImporterUtil.importLDAPUser(PortalLDAPImporterUtil.java:48)15 at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:289)16 at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:356)17 at com.liferay.portal.security.auth.LDAPAuth.authenticateByScreenName(LDAPAuth.java:90)18 at com.liferay.portal.security.auth.AuthPipeline._authe