[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4077) Slapadd creates files with strange permissions
Thanks for the report, this now fixed in HEAD. In the meantime you can
just comment out that setting since mode 0600 is the default.
kevins@bmrb.co.uk wrote:
> Full_Name: Kevin Spicer
> Version: OPENLDAP_REL_ENG_2_3_10
> OS: linux gentoo
> URL:
> Submission from: (NULL) (198.178.236.10)
>
>
> Doing some testing with OPENLDAP_REL_ENG_2_3_10 I've come across the following
> issue when populating a bdb backend with slapadd.
>
> Files are created with the permissions as follows
> ---x--x--T 1 root root 491520 Oct 11 17:41 cn.bdb
> ---x--x--T 1 root root 8192 Oct 11 17:40 __db.001
> ---x--x--T 1 root root 270336 Oct 11 17:40 __db.002
> ---x--x--T 1 root root 98304 Oct 11 17:40 __db.003
> ---x--x--T 1 root root 368640 Oct 11 17:40 __db.004
> ---x--x--T 1 root root 237568 Oct 11 17:40 __db.005
> ---x--x--T 1 root root 614400 Oct 11 17:41 dn2id.bdb
> ---x--x--T 1 root root 20480 Oct 11 17:41 gidNumber.bdb
> ...etc...
>
> This differs from the behaviour is 2.2.19 (which is the other version I
> currently have compiled on this box) (which created files with mode 0600)
>
> Here are some relevent parts of my database definition from slapd.conf
> database bdb
> suffix "dc=mydomain,dc=com"
> rootdn "cn=Manager,dc=mydomain,dc=com"
> rootpw XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> directory /var/db/ldap2/central
> mode 0600
> overlay ppolicy
> ppolicy_default "cn=systemusers,ou=policy,dc=mydomain,dc=com"
> ppolicy_use_lockout
>
>
>
> To reproduce...
> backup directory using slapcat
> Create new empty database directories
> Restore directorys with slapadd
>
>
>
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/