Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 75822 invoked from network); 2 Jun 2009 13:45:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 13:45:25 -0000 Received: (qmail 88694 invoked by uid 500); 2 Jun 2009 13:45:37 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 88658 invoked by uid 500); 2 Jun 2009 13:45:37 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 88648 invoked by uid 99); 2 Jun 2009 13:45:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 13:45:37 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of imavroukakis@gameaccount.com does not designate 83.244.222.83 as permitted sender) Received: from [83.244.222.83] (HELO mail1.gameaccount.com) (83.244.222.83) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 13:45:29 +0000 Received: from localhost ([127.0.0.1] helo=[192.168.30.116]) by mail1.gameaccount.com with esmtp (Exim 4.66) (envelope-from ) id 1MBUIc-0001fa-4H for users@directory.apache.org; Tue, 02 Jun 2009 14:45:06 +0100 Received: from [192.168.30.116] ([192.168.30.116] helo=[192.168.30.116]) by ASSP.nospam; 2 Jun 2009 14:45:06 +0100 Message-ID: <4A252CD7.10202@gameaccount.com> Date: Tue, 02 Jun 2009 14:44:55 +0100 From: Yiannis Mavroukakis Organization: GameAccount User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: Weird error when modifying a single attribute References: <49EF2408.3060204@gameaccount.com> <49EF3121.9090307@gameaccount.com> <49EF331C.9030701@gameaccount.com> <4A252812.40508@gameaccount.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mega slow email, sorry for the late reply, Here is the code that does the modify (used to work under OpenLDAP) LdapContext ctx = JNDIUtils.lookup( LdapContext.class , "external/ldap/gameaccount" ); LdapRecord record = null; LdapContext dir = JNDIUtils.lookup( ctx , "ou=Player" ); Attributes attrs = new BasicAttributes(); BasicAttribute oc = new BasicAttribute( "objectClass" ); oc.add( "top" ); oc.add( "person" ); oc.add( "organizationalPerson" ); oc.add( "inetOrgPerson" ); oc.add( "gaPlayer" ); attrs.put( oc ); put( attrs , "cn" , alias ); attrs.put( "userPassword", password.getBytes() ); dir.modifyAttributes( createLdapName( new Rdn( "cn", alias ) ), LdapContext.REPLACE_ATTRIBUTE, attrs ); I also have another issue, this is on startup only, I get the following in my logs 13:19:25,482 INFO [DefaultDirectoryService] ApacheDS shutdown hook has been registered with the runtime. 13:19:26,732 ERROR [DefaultAttributeTypeRegistry] attributeType w/ OID 2.5.4.16 not registered! 13:19:26,890 ERROR [DefaultAttributeTypeRegistry] attributeType w/ OID 1.3.6.1.4.1.32882.1.1.4 not registered! 13:19:26,892 ERROR [DefaultAttributeTypeRegistry] attributeType w/ OID 1.3.6.1.4.1.32882.1.1.4 not registered! 13:19:26,894 ERROR [DefaultAttributeTypeRegistry] attributeType w/ OID 1.3.6.1.4.1.32882.1.1.3 not registered! 13:19:27,091 INFO [EventInterceptor] Initializing ... 13:19:27,093 INFO [EventInterceptor] Initialization complete. 13:19:27,231 INFO [LdapService] Successful bind of an LDAP Service (10389) is complete. 13:19:27,231 INFO [LdapService] Ldap service started. 1.3.6.1.4.1.32882 is our OID, IANA registered..however 2.5.4.16 is postalAddress...Eventhough the OID's say they are not registered on startup I don't have any issues, so far.. Emmanuel Lecharny wrote: > I will look at the issue. > > What exactly are you doing? Replacing the password with a new one ? > > 2009/6/2 Yiannis Mavroukakis : > >> Hello fellow listers :-) >> >> I've come across an odd issue, while trying to modify a single attribute in >> LDAP. >> If I do a wholemeal change of every attribute in my entry it works fine. >> However if I only try to change >> the userPassword then it blows up with the following error >> >> 3:20:36,026 ERROR [UserActionBean] javax.naming.NamingException: [LDAP: >> error code 80 - OTHER: failed for Modify Request >> Object : >> '2.5.4.3=imavroukakis,2.5.4.11=player,0.9.2342.19200300.100.1.25=gameaccount,0.9.2342.19200300.100.1.25=com' >> Modification[0] >> Operation : replace >> Modification >> objectClass: top >> objectClass: person >> objectClass: organizationalPerson >> objectClass: inetOrgPerson >> objectClass: gaPlayer >> Modification[1] >> Operation : replace >> Modification >> userPassword: '0x22 ...' >> Modification[2] >> Operation : replace >> Modification >> cn: imavroukakis >> : null: <-- not sure why this is null!! >> >> Any ideas? I am using the latest trunk. >> >> Thanks, >> >> Yiannis >> >> > > > >