Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 75740 invoked from network); 23 Jul 2007 14:31:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2007 14:31:35 -0000 Received: (qmail 2235 invoked by uid 500); 23 Jul 2007 14:31:36 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 2190 invoked by uid 500); 23 Jul 2007 14:31:35 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 2175 invoked by uid 99); 23 Jul 2007 14:31:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2007 07:31:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.248.198.196] (HELO smtp.salfordsoftware.co.uk) (212.248.198.196) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2007 07:31:32 -0700 Received: from localhost (localhost [127.0.0.1]) by smtp.salfordsoftware.co.uk (Postfix) with ESMTP id 0FF275A48F for ; Mon, 23 Jul 2007 15:31:11 +0100 (BST) Received: from smtp.salfordsoftware.co.uk ([127.0.0.1]) by localhost (smtp.salfordsoftware.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25683-02 for ; Mon, 23 Jul 2007 15:31:09 +0100 (BST) Received: from groupwise.salfordsoftware.co.uk (unknown [146.87.2.34]) by smtp.salfordsoftware.co.uk (Postfix) with ESMTP id 235FD5A45C for ; Mon, 23 Jul 2007 15:31:09 +0100 (BST) Received: from SalfordSoftware-MTA by groupwise.salfordsoftware.co.uk with Novell_GroupWise; Mon, 23 Jul 2007 15:31:09 +0100 Message-Id: <46A4C982.9219.0044.0@salfordsoftware.co.uk> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Mon, 23 Jul 2007 15:30:58 +0100 From: "Martin Alderson" To: Subject: [ApacheDS] Internal directory operations Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: amavisd-new at smtp.salfordsoftware.co.uk X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm looking for some advice on how to interact with an embedded ApacheDS = server from a Quartz scheduled job. This job will periodically add/modify = an entry. I had been using something like DirectoryService.getInstance().getConfigura= tion().getPartitionNexus().modify(...) but I need this operation to go = through the interceptor chain. I think I need to get a JNDI context using (new InitialDirContext(env)) = where env contains some credentials. I guess I need the credentials of = the admin user for this. Is there any way for the server to know the = operation is coming from the same process so it can automatically use the = admin users credentials as stored in the directory? If not how should I = get the admin credentials? Thinking about it, I guess this is tied in to having the admin user = credentials specified in the configuration file which also seems bad to = me. Couldn't this be scrapped and have a way to authenticate as the admin = user automatically from within the same process? Thanks for any comments, Martin