Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F28BE18E43 for ; Wed, 30 Mar 2016 04:23:46 +0000 (UTC) Received: (qmail 83592 invoked by uid 500); 30 Mar 2016 04:23:46 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 83548 invoked by uid 500); 30 Mar 2016 04:23:46 -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 83536 invoked by uid 99); 30 Mar 2016 04:23:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2016 04:23:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A11B81802E7 for ; Wed, 30 Mar 2016 04:23:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=idfconnect-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id k-cxODGE9TG7 for ; Wed, 30 Mar 2016 04:23:44 +0000 (UTC) Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 039A85F3DC for ; Wed, 30 Mar 2016 04:23:43 +0000 (UTC) Received: by mail-qg0-f50.google.com with SMTP id w104so24241060qge.3 for ; Tue, 29 Mar 2016 21:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=idfconnect-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:subject; bh=TrGXN/EjEmiynGorvkcbkS0oJJlXjx7FWgx2fyGnJCM=; b=yO9Usmng/WWquVQhlWGwoCfRd6kTPRt+++nwkJJ3RH2oKOLx4ms01s6rEz7Ve23Sew AT+IqmaqdVT9IYw8fSayATNeBhYbv2LHrcSkH3uMvE9526EwF7w8B2oJj4qzgHZAJujH 1xnx2ufxo9I5Zf251C8ll01rH5z4mx5lJdob/WERzi05YqClRAKfV4J9jBiwIQuKOLLH quLGawbY9ikynHGyr5z5Wclfts7D1PdmCo6S3Mv3c1J3KJxwqrwN92Ly6Sp9j9ehXYGo K05ZbmNjRKJMQkMCEcXjWSUqRbODnji2YFILlzYAUiJfgZLia/t98iSbsw526D3q0lAY si5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject; bh=TrGXN/EjEmiynGorvkcbkS0oJJlXjx7FWgx2fyGnJCM=; b=mSbl1Cgq8cdHtkVoAZbEbg8Y9q0u1uwJ40Gg/I67lHovSGH/qMNk8VZ1k4ZHR8n1MT CT0x3KTcNxFvwvSm80Tjei0sM7QxRWNNNpcQiIkVyBm2VAVTUOzd4Vx6jOFGRomNNxO/ z+lVW1kdBdQ4KrRSQ5c7+XfD2RDkMlWro8h4gzxvMrowxBAnLb7zp5ktP3ywPJKKbda7 YyHPjtx+hm18KvGkLVliwoewL9gbyQYUgQFMpvWWguZfL9o5IKV6eB6l8BI3lDxYqU4l 6TsWc76IsUShsyiEdjVG2WpKoIWzboDu6VPyCqU5veZWx1nLKQI0O79EKuhEJqyrh0S6 gj5Q== X-Gm-Message-State: AD7BkJJKMnIZBic0IG4Sr0jAKKYTnUK/udPVSfWlZCoglxIIjDFkPH8jsTXKvHsKHvDxFpjP X-Received: by 10.140.233.135 with SMTP id e129mr7229370qhc.86.1459311817171; Tue, 29 Mar 2016 21:23:37 -0700 (PDT) Received: from Richards-MacBook-Pro.local (pool-96-227-84-70.phlapa.fios.verizon.net. [96.227.84.70]) by smtp.googlemail.com with ESMTPSA id b67sm966552qhd.11.2016.03.29.21.23.36 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2016 21:23:36 -0700 (PDT) Message-ID: <56FB54C6.4090706@idfconnect.com> Date: Wed, 30 Mar 2016 00:23:34 -0400 From: Richard Sand User-Agent: Postbox 4.0.4 (Macintosh/20150825) MIME-Version: 1.0 To: users@directory.apache.org Subject: GeneralizedTime attribute Content-Type: multipart/alternative; boundary="------------060201000002070100090900" --------------060201000002070100090900 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi all - using the latest SDK and Apache Directory, I'm having trouble populating a GeneralizedTime attribute. Any help appreciated, thanks! My code: GeneralizedTime gt = new GeneralizedTime(new SimpleDateFormat(BasicChecker.DATEFORMAT).parse(license.getExpiration())); entry.add(AdminService.LS_ATTR_START, gt.toGeneralizedTime()); When I run this, I get an exception: 016-03-30 00:06:14.407 [main] DEBUG org.glassfish.jersey.server.ServerRuntime$Responder - An exception mapping did not successfully produce and processed a response. Logging the exception propagated to the container. org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException: INVALID_ATTRIBUTE_SYNTAX: failed for MessageType : ADD_REQUEST Message ID : 21 Add Request : Entry dn[n]: cn=10001,ou=Licenses,dc=ls,dc=sand,dc=idfconnect,dc=lan objectclass: lsLicense member: postalCode: 19803 lsNotices: Copyright IDF Connect, Inc. lsLicensee: IDF Connect, Inc. c: US lsStartTimestamp: 20131231050000.000Z lsStartTimestamp: 20160101050000.000Z lsType: Development street: 2207 Concord Ave. #359 l: Wilmington st: Delaware lsBinding: 127.0.0.1 : ERR_04447_CANNOT_NORMALIZE_VALUE Cannot normalize the wrapped value ERR_04473_NOT_VALID_VALUE Not a valid value '20131231050000.000Z' for the AttributeType 'attributetype ( 1.3.6.1.4.1.2552.3.5 NAME 'lsStartTimestamp' DESC 'the start timestamp of the license' EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.53 USAGE userApplications )' at org.apache.directory.api.ldap.model.message.ResultCodeEnum.processResponse(ResultCodeEnum.java:2130) at org.apache.directory.ldap.client.api.LdapNetworkConnection.add(LdapNetworkConnection.java:838) at com.idfconnect.license.server.core.IssuedLicense.create(IssuedLicense.java:255) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAcces --------------060201000002070100090900--