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

Re: Selective replication (ITS#3299)



Karen R McArthur wrote:

> I tried the replica attr change requested, then ran slapd -t.  Here 
> are the results:
>
> << snip from slapd.conf>>
> replica host=mother.bates.edu:389
>        binddn="cn=Manager,dc=bates,dc=edu"
>        credentials=passwd
>        bindmethod=simple
>        suffix="ou=People,dc=bates,dc=edu"
>        attr="objectClass,!posixAccount"
> <<end snip>>
>
> slapd -t -d 1
> @(#) $OpenLDAP: slapd 2.1.25 (Feb 11 2004 16:39:39) $
>        
> rspell@mother.bates.edu:/home/rspell/Src/openldap-2.1.25/servers/slapd
> slapd init: initiated server.
> slap_sasl_init: initialized!
> bdb_initialize: initialize BDB backend
> bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 
> 2003)
> ...
> /usr/local/etc/openldap/slapd.conf: line 87: attribute "!posixAccount" 
> in "replica" line is unknown
> config check failed
> slapd shutdown: freeing system resources.
> slapd stopped.
> connections_destroy: nothing to destroy.

This works with 2.2.X; it's not supported yet in 2.1.X.
However, I see it doesn't work as expected in 2.2 either.
Needs investigation, I suggest you file an ITS, unless
there's another way to obtain the same result that I'm
currently missing...

>
>
> I also tried:
> << snip from slapd.conf>>
> replica host=mother.bates.edu:389
>        binddn="cn=Manager,dc=bates,dc=edu"
>        credentials=passwd
>        bindmethod=simple
>        suffix="ou=People,dc=bates,dc=edu"
>        attr=objectClass
>        attr!=posixAccount
> <<end snip>>
>
This doesn't work because the "attr" field can be specified only once
(actually, only the last occurrence is honored; this should be clarified).

p.




    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497