Replace Multi by a Combination parser
Multi will be replaced by a combination parser that can understand :
- [ LDAP ] or [ DBI ]
- [ LDAP ] and [ DBI ]
- [ SSL, LDAP ] or [ LDAP ]
- if ($env->{REMOTE_ADDR} =~ /^10./) then [ SSL, LDAP ] else [ LDAP ]
- if ($env->{REMOTE_ADDR} =~ /^10./) then [ SSL, LDAP ] else if ($env->{REMOTE_ADDR} =~ /^192/) then [ LDAP ] else [ DBI ]
- [ MyLDAP1 ] or [ MyLDAP2 ]
- [ LDAP, LDAP and DBI ] ...
Names given (LDAP, DBI,…) must be declared:
combModules => {
MyLDAP1 => {
type => 'LDAP',
for => 0 # 1 = auth, 2 = userDB, 0 = both
over => {
ldapServer => 'ldaps://10.0.0.1',
}
}
}