Ldap Error Code 21 - Invalid Attribute Syntax Remaining Name
Contents |
API How LDAP Operations Map to JNDI APIs How LDAP Error Codes Map to JNDI Exceptions Security Modes of Authenticating to LDAP Authentication Mechanisms Anonymous Simple ldap error code 32 SASL Digest-MD5 SSL and Custom Sockets More LDAP Operations LDAP Compare Search ldap error code 81 Results LDAP Unsolicited Notifications Connection Management Creation Closing Pooling Configuration Frequently Asked Questions Trail: Java Naming and Directory Interface
Ldap Error Code 65 Object Class Violation
Lesson: Advanced Topics for LDAP Users Section: JNDI as an LDAP API Home Page > Java Naming and Directory Interface > Advanced Topics for LDAP Users «Previous•Trail•Next» How LDAP Error Codes Map to JNDI Exceptions The LDAP defines a set of status codes that are returned with LDAP responses sent by the LDAP server (see RFC 2251). In the JNDI, error conditions are indicated as checked exceptions that are subclasses of NamingException. See the Naming Exceptions section for an overview of the JNDI exception classes. The LDAP service provider translates the LDAP status code it receives from the LDAP server to the appropriate subclass of NamingException. The following table shows the mapping between LDAP status codes and JNDI exceptions. LDAP Status Code Meaning Exception or Action 0 Success Report success. 1 Operations error NamingException 2 Protocol error CommunicationException 3 Time limit exceeded. TimeLimitExceededException 4 Size limit exceeded. SizeLimitExceededException 5 Compared false. Used by DirContext.search(). Does not generate an exception. 6 Compared true. Used by DirContext.search(). Does not generate an exception. 7 Authentication method not supported. AuthenticationNotSupportedException 8 Strong authentication required. AuthenticationNotSupportedException 9 Partial results being returned. If the environment property "java.naming.referral" is set to "ignore" or the contents of the error do not contain a referral, throw a PartialResultException. Otherwise, use contents to build a referral. 10 Referral encountered. If the environment property "java.naming.referral" is set to "ignore", then ignore. If the property is set to "throw", throw ReferralException. If the property is set to "follow", then the LDAP provider processes the referral. If the "java.naming.ldap.referral.limit" property has been exceeded, throw LimitExceededException. 11 Administrative limit exceeded. LimitExceededException 12 Unavailable critical extension requested. OperationNotSupportedException 13 Confidentiality required. AuthenticationNotSuppo
"Kurt D. Zeilenga"
English » 6. Portal Framework Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an https://web.liferay.com/community/forums/-/message_boards/message/1010171 Answer Threads [ Previous | Next ] Openldap Mapping http://forum.spring.io/forum/spring-projects/data/ldap/73408-unable-add-uid-in-dn-while-creating-new-user-using-spring-ldap-1-2 Problem Thomas Kiener June 26, 2008 7:36 AM RE: Openldap Mapping Problem Guy-Noel MATHIEU June 27, 2008 7:07 AM RE: Openldap Mapping Problem Jörn Ebeling June 27, 2008 8:13 AM RE: Openldap Mapping Problems Thomas Kiener ldap error June 30, 2008 12:27 AM RE: Openldap Mapping Problems Jörn Ebeling July 1, 2008 6:35 AM RE: Openldap Mapping Problems Guy-Noel MATHIEU July 3, 2008 7:22 AM RE: Openldap Mapping Problems Jörn Ebeling July 3, 2008 7:47 AM RE: Openldap Mapping Problems Guy-Noel MATHIEU July ldap error code 10, 2008 2:28 AM RE: Openldap Mapping Problems hunter Hu July 11, 2008 7:37 PM RE: Openldap Mapping Problems Jörn Ebeling July 14, 2008 7:08 AM RE: Openldap Mapping Problems G P October 21, 2009 10:10 PM Openldap Mapping Problem June 26, 2008 7:36 AM Answer Thomas Kiener Rank: New Member Posts: 4 Join Date: June 18, 2008 Recent Posts HelloIf I create a new user in Liferay, and press to save, the following error occurs....08:53:31,179 ERROR [UserImpl:193] com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 1113908:53:31,188 ERROR [UserImpl:193] com.liferay.portal.NoSuchContactException: No Contact exists with the primary key 1113908:53:31,275 ERROR [jsp:52] com.liferay.portal.ModelListenerException: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - givenName: value #0 invalid per syntax]; remaining name 'cn=screen5,ou=People,dc=softcom,dc=ch' at com.liferay.portal.model.UserListener.onAfterCreate(UserListener.java:57) at com.liferay.portal.service.persistence.UserPersistenceImpl.update(UserPersistenceImpl.java:255) at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:264) at com.liferay.portal.service.impl.UserServiceImpl.addUser(UserServiceImpl.java:168) at com.liferay.portal.service.UserServiceUtil.addUser(UserServiceUtil.java:108) at com.liferay.portlet.enterpriseadmin.action.EditUserAction.updateUser(EditUserAction.java:291) at com.liferay.portlet.enterpriseadmin.action.EditUserAction.processAction(EditUserAction.java:94) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:170) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.j
map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor. Announcement Announcement Module Collapse No announcement yet. Unable add uid in DN while creating new user using Spring Ldap 1.2 Page Title Module Move Remove Collapse X Conversation Detail Module Collapse Posts Latest Activity Search Forums Page of 1 Filter Time All Time Today Last Week Last Month Show All Discussions only Photos only Videos only Links only Polls only Filtered by: Clear All new posts smruti Junior Member Join Date: Mar 2009 Posts: 5 #1 Unable add uid in DN while creating new user using Spring Ldap 1.2 Nov 27th, 2009, 09:11 AM Hi, I am unable add uid to DN while creating a new user using Spring LDAP 1.2.I am getting following error :- Error occured : javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - attribute 'uid' not allowed]; remaining name 'uid=smruti, ou=People, dc=jboss, dc=org' My ldif file consist of following code sniplet:- dn: uid=abhi,ou=People,dc=jboss,dc=org objectclass: top objectclass: uidObject objectclass: person uid: abhi cn: Bhijee sn: Patil userPassword: dont My springldap.xml contains following configuration:-