[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: rwm rewrite
> Hi
>
> I have googled and read over slapo-rwm man page, some great examples
> there BUT I cant seem too grasp the rewrite rule.
>
> Basically I have merged a couple of individual openldap directories
> under a meta database which works fine. Some of the individual
> directories have clashing posix uidnumber attributes ie
>
> uid=joe,dc=subdomain1,dc=test
> uidnumber: 1023
>
> uid=soap,dc=subdomain2,dc=test
> uidnumber: 1023
>
> uid=user2,dc=sudomain2,dc=test
> uidnumber: 1024
>
> what I am trying too do is create a rwm overlay that would rewrite the
> uidnumber attribute for subdomain2 so add a 10 in front of each
> uidnumber for each user in the subdomain database. ie
>
> uid=soap,dc=subdomain2,dc=test
> uidnumber: 101023
>
> uid=user2,dc=sudomain2,dc=test
> uidnumber: 101024
slapo-rwm(5) by design can only muck with DN-valued attributes, for the
purpose of creating virtual views of existing data. It cannot modify the
contents of other attributes. For this purpose you probably need to write
some specific piece of code.
p.