Modern versions of slapd(8) include an early implementation of draft-zeilenga-ldap-entrydn-xx.txt, a work in progress.
At 02:58 PM 9/26/2006, François Beretti wrote: >Hi, > >I don't know if it has something to do with the initial question, but >sometimes I want to make a search such as: >filter: >(|(dn=uid=user1,ou=users,dc=domain)(dn=uid=user2,ou=users,dc=domain)(dn=uid=user3,ou=users,dc=domain)) >attributes: some attribute > >so I get in one request all the values of the attribute for the three users >(maybe this example is not a good one, but in my software I really need such >a thing, believe me) > >in openldap it seems not to be possible, while it is possible on other LDAP >servers, that allow me to use a special attribute, like entrydn on iPlanet, >or distinguishedName on Active Directory. > >am I wrong ? > >Regards, > >François > >2006/9/26, Ralf Haferkamp <[EMAIL PROTECTED]>: >> >>On Tuesday 26 September 2006 12:50, Moire wrote: >>[..] >>> Am 20.09.2006 um 19:19 schrieb Darko Delinac: >>> > Limit the search scope to base (-s base) and as a base use the DN, >>> > something like this: >>> > >>> > ldapsearch -x -h my_ldap_server -b "cn=Michael >>> > Voss,ou=Eng,o=Firm,dc=domain,dc=org" -s base >>> >>> Also Delinac's suggestion would found not just one >>> entry if there are some childs ... >>You missed the "-s base" option to limit the search scope to just the base >>object. >> >>> ldapsearch -x -b "cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm" >>> # extended LDIF >>> # >>> # LDAPv3 >>> # base <cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm> with >>> scope sub >>> # filter: (objectclass=*) >>> # requesting: ALL >>> # >>> >>> # MyGivenname MySurname, Privat, Adressen.afm >>> dn: cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm >>> objectClass: top >>> objectClass: inetOrgPerson >>> objectClass: person >>> objectClass: organizationalPerson >>> objectClass: pilotPerson >>> displayName: MyGivennameMySurname >>> givenName: MyGivenname >>> ou: Sciences >>> personalTitle:: TXIuIA== >>> telephoneNumber: +00000000000 >>> description: et cetera >>> sn: MySurname >>> cn: MyGivenname MySurname >>> labeledURI: http://www.void.org >>> >>> # test, MyGivenname MySurname, Privat, Adressen.afm >>> dn: ou=test,cn=MyGivenname MySurname,ou=Privat,dc=Adressen,dc=afm >>> objectClass: top >>> objectClass: inetOrgPerson >>> objectClass: person >>> objectClass: organizationalPerson >>> objectClass: pilotPerson >>> sn: testchild >>> cn: testchild >>> >>> # search result >>> search: 2 >>> result: 0 Success >>> >>> # numResponses: 3 >>> # numEntries: 2 >>> >>> >>> Thanks >>> >>> Moire >> >>-- >>Ralf >
