[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Replication: class filter.
alex wrote:
> sorry , I puzzled myself :-)
eheh ;-)
>
> attr could have objectclass listed. your problem is because you exlude all
> necessary attribute for a uid=blablabla,ou=blabla. for example, posixGroup
> needs "cn $ gidNumber" , if you list posixAccount in attr, all "( cn $ uid $
> uidNumber $ gidNumber $ homeDirectory )" that needed by posixGroup are then
> exluded. if you remove the attr,or if you provide full MUST-attribute for
> your objectclass in the attr, it runs OK,.
> good luck
>
Sorry, but i already did this mistake (yeah ! ) and i got this error from the
slave :
naming attribute 'xxxx' is not present in entry...
The problem is :
I can't add a new entry to the master and see the replication on the slave. I
can delete, modify the value of an attribute, maybe change the rdn (not tested
yet) with both attributes/classes filters (with the operator =, i still have
some difficulties...)
Maybe a full exemple in the FAQ will be useful ?
If i add an entry to the master, i will see the "object class violation error",
and the "no objectClass attribute error" ...
It seems that slurdp checks if an entry is already present in the slave
database before attempting to make changes...
Is it an expected behaviour ? is partial replication useless ? or did i miss
something ?
Do i have to use an slapcat,ftp,filterscript,slapadd cycle each time i want to
add an entry to the master ?
>
> ----- Original Message -----
> From: "Marco Marcal" <marco.marcal@emi.u-bordeaux.fr>
> To: "alex" <alexela_1999@sina.com>
> Cc: <openldap-software@openldap.org>
> Sent: Monday, April 28, 2003 4:09 PM
> Subject: Re: Replication: class filter.
>
> > alex wrote:
> >
> > > in your filter , you provide :
> > > >
> > >
> attr!="posixAccount,shadowAccount,loginShell,homeDirectory,uidNumber,gidNumb
> > > er,gecos"
> > > where the "posixAccount ,shadowAccount " etc. are the value of
> objectclass
> > > ("objectclass" is an attribute name) , not a attribute name, and the
> "attr"
> > > directive only accepts to including or excluding attributes' names.
> slapd
> > > does not recognize an attribute type with posixAccount etc. so you will
> get
> > > errors. :-)
> >
> > man slapd.conf :
> >
> >
> > replica :
> >
> >
> > [...]
> >
> > An attr list can be given after the attr keyword to
> > allow the selective replication of the listed attributes only;
> > if the optional ! mark is used, the list is considered
> > exclusive, i.e. the listed attributes are not replicated. If an
> > objectClass is listed, all the related attributes are (are not)
> > replicated.
> >
> > Am i drunk ? ;-) if an objectClass is listed, .....
> >
> > Does somebody use the replication with objectClasses filters ?
> >
> > Can i use objectClasses filters with a slave initialized with nothing ?
> >
> > What objectClasses do i have to list with the operator = ? (top, ... ?)
> >
> > Is it an expected behavior : ?
> >
> > I got a master/slave replication. i don t use filters....
> >
> > I add/delete/modrdn/modify an entry, then changes are repercuted to the
> slave
> > or do
> > i have to slapcat, ftp, slapadd every change i made ?
> >
> > Can i do the same with filters (attr and objectClasses) ?
> > (Zorglub grins evilly....)
> >
> >
> >
Marco Marçal