quanah(a)OpenLDAP.org wrote:
Full_Name: Quanah Gibson-Mount
Version: 2.4.35
OS: Linux 2.6
URL:
ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.58.125)
If the root of the primary database is "", and you try and export a base that
doesn't exist via slapcat, the entire database is exported (i.e., it acts like
you specified "" as the base):
Works as designed. -b selects the backend that matches the DN you provided. A
backend with suffix "" matches anything that nothing more specific matched. If
you wanted to filter down to a specific branch, you should have used -s.
Closing this ITS.
[root@zcs724 ldap]# /opt/zimbra/openldap/sbin/slapcat -b cn=ThisDoesntExist -F
/opt/zimbra/data/ldap/config -l /tmp/q.test
dn: cn=zimbra
objectClass: organizationalRole
description: Zimbra Systems Application Data
cn: zimbra
structuralObjectClass: organizationalRole
entryUUID: 1f75edee-6b87-1032-961f-b17f0b52f5bc
creatorsName: cn=config
createTimestamp: 20130617104800Z
entryCSN: 20130617104800.311168Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20130617104800Z
dn: cn=admins,cn=zimbra
objectClass: organizationalRole
description: admin accounts
cn: admins
structuralObjectClass: organizationalRole
entryUUID: 1f7d451c-6b87-1032-9620-b17f0b52f5bc
creatorsName: cn=config
createTimestamp: 20130617104800Z
entryCSN: 20130617104800.359221Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20130617104800Z
dn: uid=zimbra,cn=admins,cn=zimbra
uid: zimbra
objectClass: zimbraAccount
objectClass: organizationalPerson
cn: zimbra
sn: zimbra
zimbraAccountStatus: active
zimbraIsAdminAccount: TRUE
zimbraIsSystemResource: TRUE
zimbraId: e0fafd89-1360-11d9-8661-000a95d98ef2
description: The master zimbra admin account
userPassword:: text=
structuralObjectClass: organizationalPerson
entryUUID: 1f7e29e6-6b87-1032-9621-b17f0b52f5bc
creatorsName: cn=config
createTimestamp: 20130617104800Z
zimbraLastLogonTimestamp: 20131202121011Z
entryCSN: 20131202121011.054477Z#000000#000#000000
modifiersName: uid=zimbra,cn=admins,cn=zimbra
modifyTimestamp: 20131202121011Z
(etc)
--
-- Howard Chu
CTO, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc/
Chief Architect, OpenLDAP
http://www.openldap.org/project/