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

problem overwrite the file's owner



Hi,

I'm running OpenLDAP2.0.7 with replica.

It works perfectly, but, sometimes, slapd can't write the file /home/isis/ldap/ldapPers/replog/repfile. Then, the replication' mecanism doesn't work. 

when that occurs, the owner of the directory used for the replication change automatically; I suppose that it is slurpd which makes this modification.


Here an extract of my slapd.conf of the master :

....
mode	0600
replica host=toto.fr:392 bindmethod=simple binddn=cn=adminSlaveCLSH,dc=univ-nancy2,dc=fr credentials=xxxxx
replogfile /home/isis/ldap/ldapPers/replog/repfile
....

I'm starting slapd with the script :

BINLDAP=/usr/local/openldap
PORT=392
REPERTOIRE=/home/isis/ldap/ldapPers
FICCONF=$REPERTOIRE/etc/slapd.conf
USER=ldap
GROUP=ldap
$BINLDAP/libexec/slapd -h ldap://:$PORT -f $FICCONF -u $USER -g $USER -d $1                      

I'm starting the slurpd with the script : 

BINLDAP=/usr/local/openldap
REPERTOIRE=/home/isis/ldap/ldapPers
FICCONF=$REPERTOIRE/etc/slapd.conf
FICREPLOG=$REPERTOIRE/replog/repfile
REPTEMP=$REPERTOIRE/replog
$BINLDAP/libexec/slurpd -f $FICCONF -r $FICREPLOG -t $REPTEMP                

The user UNIX 'ldap' (group 'ldap') is normally owner of all the files of the tree structure /home/isis/ldap.
When the probleme occurs, the owner of the tree structure /home/isis/ldap/ldapPers/replog became the uid 600 :

# ls -al /home/isis/ldap/ldapPers/replog
total 6
drwxr-xr-x   3 600      ldap         512 jan  11 13:47 .
drwxr-xr-x   9 ldap     ldap         512 jan  12 00:30 ..
-rw-r--r--   1 600      ldap           0 jan  11 16:38 repfile
-rw-r-----   1 600      ldap           0 jan  11 16:38 repfile.lock
drwxr-xr-x   2 600      ldap         512 jan  11 14:25 replica

# ls -al /home/isis/ldap/ldapPers/replog/replica
total 46
drwxr-xr-x   2 600      ldap         512 jan  11 14:25 .
drwxr-xr-x   3 600      ldap         512 jan  11 13:47 ..
-rw-r-----   1 600      ldap       19517 jan  11 16:38 slurpd.replog
-rw-r-----   1 600      ldap           0 jan  11 16:38 slurpd.replog.lock
-rw-r-----   1 600      ldap          36 jan  11 16:38 slurpd.status
-rw-r-----   1 600      ldap           0 jan  11 16:11 slurpd.status.lock

Vincent