OpenLDAP
Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest

Viewing Incoming/7261
Full headers

From: ashish@sendmail.com
Subject: ldapsearch with base specified does not return anything
Compose comment
Download message
State:
0 replies:
1 followups: 1

Major security issue: yes  no

Notes:

Notification:


Date: Wed, 25 Apr 2012 20:51:19 +0000
From: ashish@sendmail.com
To: openldap-its@OpenLDAP.org
Subject: ldapsearch with base specified does not return anything
Full_Name: Ashish Gawarikar
Version: 2.4.31
OS: Redhat 5.8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (63.211.143.38)


Configure slapd with multiple databases:

database        bdb
directory       /var/ldap/openldap-bdb24
suffix          "sendmailMTAMapName=virtuser,sendmailMTACluster=hub,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb24/log

database        bdb
directory       /var/ldap/openldap-bdb23
suffix          "sendmailMTAMapName=stduser,sendmailMTACluster=hub,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb23/log

database        bdb
directory       /var/ldap/openldap-bdb22
suffix          "sendmailMTAMapName=generics,sendmailMTACluster=hub,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb22/log

database        bdb
directory       /var/sendmail/ldap/openldap-bdb21
suffix          "sendmailMTAAliasGrouping=aliases,sendmailMTACluster=hub,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb21/log

database        bdb
directory       /var/ldap/openldap-bdb20
suffix          "sendmailMTACluster=hub,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb20/log

database        bdb
directory       /var/ldap/openldap-bdb13
suffix          "sendmailMTAMapName=b,sendmailMTACluster=QQQ,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb13/log

database        bdb
directory       /var/ldap/openldap-bdb12
suffix          "sendmailMTAMapName=E,sendmailMTACluster=QQQ,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb12/log

database        bdb
directory       /var/ldap/openldap-bdb11
suffix          "sendmailMTAMapName=Es,sendmailMTACluster=QQQ,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb11/log

database        bdb
directory       /var/ldap/openldap-bdb10
suffix          "sendmailMTACluster=QQQ,dc=example,dc=com"
subordinate     advertise
dbconfig        set_lg_dir /var/ldap/openldap-bdb10/log

database        hdb
directory       /var/ldap/openldap-bdb
suffix          ""


===
10 ldifs:

1.ldif
dn: sendmailMTAMapName=virtuser,sendmailMTACluster=hub,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: hub
sendmailMTAMapName: virtuser

2.ldif
dn: sendmailMTAMapName=stduser,sendmailMTACluster=hub,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: hub
sendmailMTAMapName: stduser

3.ldif
dn: sendmailMTAMapName=generics,sendmailMTACluster=hub,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: hub
sendmailMTAMapName: generics

4.ldif
dn: sendmailMTAAliasGrouping=aliases,sendmailMTACluster=hub,dc=example,dc=com
objectClass: sendmailMTAAlias
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTAAliasGrouping: aliases
sendmailMTACluster: hub

5.ldif
dn: sendmailMTACluster=hub,dc=example,dc=com
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: hub

6.ldif
dn: sendmailMTAMapName=b,sendmailMTACluster=QQQ,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: QQQ
sendmailMTAMapName: b

7.ldif
dn: sendmailMTAMapName=E,sendmailMTACluster=QQQ,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: QQQ
sendmailMTAMapName: E

8.ldif
dn: sendmailMTAMapName=Es,sendmailMTACluster=QQQ,dc=example,dc=com
objectClass: sendmailMTAMap
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: QQQ
sendmailMTAMapName: Es

9.ldif
dn: sendmailMTACluster=QQQ,dc=example,dc=com
objectClass: sendmailMTA
objectClass: top
objectClass: extensibleObject
sendmailMTACluster: QQQ

10.ldif
dn: dc=example,dc=com
objectClass: top
objectClass: extensibleObject
dc: example

dn: dc=com
objectClass: top
objectClass: extensibleObject

Add entries in the db using:
slapadd -w -l 1.ldif -b 
sendmailMTAMapName=virtuser,sendmailMTACluster=hub,dc=example,dc=com
slapadd -w -l 2.ldif -b 
sendmailMTAMapName=stduser,sendmailMTACluster=hub,dc=example,dc=com
slapadd -w -l 3.ldif -b
sendmailMTAMapName=generics,sendmailMTACluster=hub,dc=example,dc=com
slapadd -w -l 4.ldif -b
sendmailMTAAliasGrouping=aliases,sendmailMTACluster=hub,dc=example,dc=com
slapadd -w -l 5.ldif -b sendmailMTACluster=hub,dc=example,dc=com
slapadd -w -l 6.ldif -b

Message of length 16010 truncated

Followup 1

Download message
Date: Thu, 26 Apr 2012 11:02:30 -0700
From: ashish gawarikar <ashish@sendmail.com>
To: openldap-its@openldap.org
Subject: Re: (ITS#7261) ldapsearch with base specified does not return anything
dn: dc=com
objectClass: top
objectClass: extensibleObject

http://www.openldap.org/its/index.cgi/Incoming?id=7261  is not bug (at least not
reproducible with the data added). That is because I missed out the
objectClass: domain in the above entry.


Up to top level
Build   Contrib   Development   Documentation   Historical   Incoming   Software Bugs   Software Enhancements   Web  

Logged in as guest


The OpenLDAP Issue Tracking System uses a hacked version of JitterBug

______________
© Copyright 2013, OpenLDAP Foundation, info@OpenLDAP.org