6 Feb
2012
6 Feb
'12
10:53 a.m.
Hello list, I'd like to set the Filter-Id in the response based on an LDAP group. authorize { .... if ( Ldap-Group =~ /CN=group1,ou=groups,dc=company,dc=com/ ) { update control { Tmp-String-1 := "group1" } .... } post-auth { .... update reply { Filter-Id := "%{control:Tmp-String-1}" } } This works like a charme! As I got a lot of groups, I'd like to do some pattern matching... if ( Ldap-Group =~ /CN=(xyz),ou=groups,dc=company,dc=com/ ) { update control { Tmp-String-1 := "%{1}" } ... but it seems that the ldap_groupcmp does not support pattern matching? Am I right or does anybody has another idea? Thanks a lot and kind regards Cornelius