Ldap Error Code 17 - Undefined Attribute Type
adding member to a group MU&G; group; group management; member; membership; new member; CWWIM4520E Technote (troubleshooting) Problem In the Manage Users and Groups portlet of the IBM WebSphere Portal Administration UI, when you select a user and try to add this user to a group, it fails and the following error message is recorded in the Portal log: Exception caught: javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - Undefined Attribute Type]; remaining name 'cn=users,dc=mycompany,d=com' What causes this issue and how to resolve it? Symptom (See the references section for trace strings to enable.) With traces enabled, the trace.log shows that a JNDI call is made to the LDAP: com.ibm.ws.wim.adapter.ldap.LdapConnection JNDI_CALL search(String, String, Object[], SearchControls) ENTRY cn=users,dc=mycompany,d=com (&(objectClass=inetorgperson)(uid=*)) which leads to the LDAP error code 17: javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - Undefined Attribute Type]; remaining name 'cn=users,dc=mycompany,d=com' ... com.ibm.websphere.wim.exception.WIMSystemException: CWWIM4520E The 'javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - Undefined Attribute Type]; remaining name 'cn=users,dc=mycompany,d=com'; resolved object com.sun.jndi.ldap.LdapCtx@4a224a22' naming exception occurred during processing. Cause This issue was caused by a typo with the searchBases for the PersonAccount entity in the wimconfig.xml.
Site Leaders Articles Blogs What's New? FAQ Advanced Search Forum PRODUCT RELATED DISCUSSIONS IDENTITY & ACCESS MANAGEMENT eDirectory eDir: Unix [LDAP: error code 17 - Undefined Attribute Type] You can view the discussions, but you must login before you can post. Click the LOGIN link in the forum header to proceed. To start viewing messages, select the forum that you want to visit from the selection below. If this is your first visit, be sure to check out the FAQ by clicking the link above. http://www.ibm.com/support/docview.wss?uid=swg21572193 Results 1 to 5 of 5 Thread: [LDAP: error code 17 - Undefined Attribute Type] Thread Tools Show Printable Version Subscribe to this Thread… Display Switch to Linear Mode Switch to Hybrid Mode Threaded Mode Threaded View 25-Feb-2013,06:34 PM #1 r meghnagi NNTP User [LDAP: error code 17 - Undefined Attribute Type] Hello guys, I have a problem, I would like https://forums.novell.com/showthread.php/496274-LDAP-error-code-17-Undefined-Attribute-Type to know if it is possible to insert in eDirectory an Ldap attribute with "_" (underscore). I've created a custom Class:vaOrgPerson, in the class there is a list of attributes with the underscore (the customer has a system that supports these values and I have to copy it on the Identity Manager system). When I add an attribute with an LDAP Name, containing the "underscore" character in a class of "Directory Abstraction Layer", the designer gives me this error: \"VAORGPERSON.GENERE\": THE LDAP NAME \"VA_GENERE\" CONTAINS AN INVALID UNDERSCORE CHARACTER. and the User Application when I add a user give me this error: ERRORE: JAVAX.NAMING.DIRECTORY.INVALIDATTRIBUTEIDENTIFIERE XCEPTION: [LDAP: ERROR CODE 17 - UNDEFINED ATTRIBUTE TYPE]; Also, when I add the attribute with the value underscore within the schema, he makes me add without error but, when i try to add this attribute inside the LDAP browser or inside the user (whit iManager), the attribute is written whitout "_". I meke an example: "va_genere" is written "vaGenere". There's a possible solution for this problem? Thanks -- r_meghnagi ------------------------------------------------------------------------ r_meghnagi's Profile: https://forums.netiq.com/member.php?userid=4207 View this thread: https://forums.netiq.com/s
here for http://stackoverflow.com/questions/11964825/error-when-add-use-to-ldap-ldap-error-code-17-javaserializeddata-attribute a quick overview of the site Help Center http://www.openldap.org/lists/openldap-software/200308/msg00798.html Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or ldap error posting ads with us Stack Overflow 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 other. Join them; it only ldap error code takes a minute: Sign up Error when add use to ldap [LDAP: error code 17 - javaSerializedData: attribute type undefined] up vote 0 down vote favorite I use this code snippets to add user to ldap **public DirContext getLDAPDirContext() throws NamingException { final Hashtable envValues = new Hashtable(); // Assign the JNDI environment values in Map envValues.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); envValues.put(Context.PROVIDER_URL, url); envValues.put(Context.SECURITY_PRINCIPAL,dn); // specify the username envValues.put(Context.SECURITY_CREDENTIALS,password); // specify the password return new InitialDirContext(envValues); } public static void main(String arg[]) throws NamingException { LdapNew ldapNew = new LdapNew(); String groupDN ="ou=user,dc=ldap,dc=***,dc=***"; BasicAttributes myAttrs = new BasicAttributes(true); //Basic Attributes myAttrs.put("uid","chamils"); myAttrs.put("objectClass","top"); myAttrs.put("objectClass","dcObject"); myAttrs.put("objectClass","organization"); myAttrs.put("objectClass", "inetOrgPerson"); myAttrs.put("cn","FNAME LNAME"); myAttrs.put("displayname", "FNAME LNAMEE"); myAttrs.put("givenname","Chamilseeee"); myAttrs.put("sn","Thanthrimudaliged"); myAttrs.put("mail","*******"); DirContext ctx = ldapNew.getLDAPDirContext(); ctx.bind("uid=chamils,ou=user,dc=ldap,dc=****,dc=***",myAttrs); }** But it gives
Aug 2003 06:54:17 +0200 Hi! I have tried to do the quick start example but it fails with this printout "ldapadd: update failed: dc=domain,dc=com ldap_add: Undefined attribute type (17)". I send slapd.conf an my.ldif file and should appreciate if somebody could tell me what is wrong. Regards Lars Holm ldapadd -v -x -D "cn=Manager,dc=domain,dc=com" -W -f /var/lib/ldap/my.ldif ldap_initialize(