Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 20765 invoked from network); 3 Jun 2010 21:14:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 21:14:49 -0000 Received: (qmail 62118 invoked by uid 500); 3 Jun 2010 21:14:48 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 62095 invoked by uid 500); 3 Jun 2010 21:14:48 -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 62087 invoked by uid 99); 3 Jun 2010 21:14:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 21:14:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Jun 2010 21:14:46 +0000 Received: (qmail 20714 invoked from network); 3 Jun 2010 21:14:24 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by 127.0.0.1 with SMTP; 3 Jun 2010 21:14:24 -0000 Message-ID: <4C081B2E.4030704@apache.org> Date: Thu, 03 Jun 2010 23:14:22 +0200 From: Stefan Seelmann User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: users@directory.apache.org CC: jblaine@mitre.org Subject: Re: [ApacheDS]: New entry won't show up in DIT, but exists References: <4C0803CE.60702@mitre.org> In-Reply-To: <4C0803CE.60702@mitre.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Jeff, what LDAP server are you using? Is it an Apache Directory Server or another one (maybe a Sun server because you are using the cn=Directory Manager account)? Which version of the server? Can you please play with the search scope? For the CLI client this is the -s parameter with options base, one, and sub. Background: when you browse the DIT using Apache Directory Studio a search with scope "one" is sent to the server. On the other side the default scope of ldapsearch and the search dialog in Studio is "sub". Kind Regards, Stefan Jeff Blaine wrote: > I'm using ldapadd to add something. It works fine. I can > then query the server with ldapsearch fine to retrieve the > information. > > However, the information will not appear (except via a search) > when using Apache Directory Studio 1.5.3 (or 1.5.2 for that > matter). That is, if I traverse the tree as follows, it does > not show up alphabetically like the other entries: > > dc=rcf,dc=our,dc=org > ou=nis > ou=People > > I have reloaded various relevant portions of the DIT to no > avail. I have closed my connection and opened it again to > no avail. I have restarted ApacheDS to no avail. > > Any ideas? Please see below for the explicit details: > > ==== Adding the info =============================================== > /usr/bin/ldapadd -a -v -h ldap -D "cn=Directory Manager" -f > RCF-USER-TEMPLATE.ldif > Bind Password: > add objectClass: > top > shadowAccount > posixAccount > account > add cn: > Firstname Lastname > add gidNumber: > 999999999 > add homeDirectory: > /afs/rcf/user/username > add uid: > username > add uidNumber: > 999999999 > add description: > This is a template for an RCF UNIX user account. Copy this to a > new entry and modify it thoroughly to reflect the desired new user. > add gecos: > Firstname > Lastname,room,extension,deptcode,mailstop,acct-creator-username > add loginShell: > /usr/rcf/bin/some-shell > adding new entry uid=username,ou=People,ou=nis,dc=rcf,dc=our,dc=org > modify complete > > ==== Querying the info ============================================= > /usr/bin/ldapsearch -D "cn=Directory Manager" -b > "ou=People,ou=nis,dc=rcf,dc=our,dc=org" -h ldap uid=username > Bind Password: > uid=username,ou=People,ou=nis,dc=rcf,dc=our,dc=org > homeDirectory=/afs/rcf/user/username > gidNumber=999999999 > objectClass=top > objectClass=shadowAccount > objectClass=posixAccount > objectClass=account > gecos=Firstname > Lastname,room,extension,deptcode,mailstop,acct-creator-username > loginShell=/usr/rcf/bin/some-shell > description=This is a template for an RCF UNIX user account. Copy this > to a new entry and modify it thoroughly to reflect the desired new user. > cn=Firstname Lastname > uid=username > uidNumber=999999999 > > ==== ApacheDS "Search" that finds the entry ========================== > Search Base: ou=People,ou=nis,dc=rcf,dc=our,dc=org > Filter: (uid=username) >