dynamic filter with addressbook
Hello,
We'd like to restrict the access to a corporate address book, by using a dyamic filter, for our users (that are teachers). In the Directory Server, they have their school code, something like scode=0110110. And we want to restrict their address book to their school, so they can't find the teachers from other schools. This have to be done for several hundred schools. So I'm looking for a ldap query like ab.corpdir.[default].searchfilter = '(&(mail=*)(scode=%s))', with the scode depending on the teacher's ldap entry. Is it possible to do that?
Thank you for your answers.