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

problem with ldap replication



Hi,

I have openldap 2.2.18

Hi all,

I want to replicate partially the branch "ou=people,dc=ups-tlse,dc=fr" to keep only some attributes as: cn, sn, uid, mail, ... useful for sendmail.

On master ldap, if i declare the replica in slapd.conf as this:

replica uri=ldaps://gw1-mail.cict.fr:636
 suffix="ou=people,dc=ups-tlse,dc=fr"
 binddn="cn=replicator,ou=appli,dc=ups-tlse,dc=fr"
 bindmethod=simple credentials=xxxx

and on slave directory:
updatedn "cn=replicator,ou=appli,dc=ups-tlse,dc=fr"
updateref "ldaps://master-ldap.ups-tlse.fr:636"


It works well but when i add the attributes's list, it don't work:

replica uri=ldaps://gw1-mail.cict.fr:636
 suffix="ou=people,dc=ups-tlse,dc=fr"
 attr="top,person,organizationalPerson,inetOrgPerson,cn,sn,uid,mail"
 binddn="cn=replicator,ou=appli,dc=ups-tlse,dc=fr"
 bindmethod=simple credentials=xxxx


I try to make severals changes but nothing works.

In the reject log, i have this:

ERROR: Internal (implementation specific) error: no structuralObjectClass operational attribute
replica: gw1-mail.cict.fr:636
time: 1121161325.1
dn: cn=titi,ou=people,dc=ups-tlse,dc=fr
changetype: add
cn: titi
mail: titi@cict.fr
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
sn: titi
uid: titi



Otherwise, inetOrgPerson is the structuralObjectClass. I don't understand!!!!



What is the good procedure to follow to give attributes?

Can somebody help me, please?

Thanks for advance.

Carole Gimenez.