[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: db_stat usage



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jason C. Leach

> hi,
>
> I'm having trouble using db_stat as shown by the example below:
>
>
> robson:~# db4.1_stat -h /var/lib/ldap/ -m
> db_stat: DB_ENV->open: /var/lib/ldap/: No such file or directory
>
> robson:~# cd /var/lib/ldap
>
> robson:/var/lib/ldap# ls
> DB_CONFIG  gidNumber.dbb  objectClass.dbb  uid.dbb
> cn.dbb     id2entry.dbb   replog           uidNumber.dbb
> dn2id.dbb  nextid.dbb     replog.lock
>
> robson:/var/lib/ldap#
>
>
> What am I doing wrong?

That particular db_stat option operates on a BDB environment. There are no
environment files in your /var/lib/ldap. Most likely because you're using
back-ldbm, which knows nothing about BDB environments.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support