<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello list,<br>
<br>
I'd like to set the Filter-Id in the response based on an LDAP
group.<br>
<br>
<p> authorize {<br>
</p>
<p> ....<br>
</p>
<p> </p>
<div style="padding-left: 30pt"> if ( Ldap-Group =~
/CN=group1,ou=groups,dc=company,dc=com/ ) {<br>
update control {<br>
</div>
<div style="padding-left: 60pt"> Tmp-String-1 := "group1"<br>
</div>
<div style="padding-left: 30pt"> }<br>
<br>
....<br>
</div>
<p> }<br>
</p>
<p> post-auth {<br>
....<br>
update reply {<br>
Filter-Id := "%{control:Tmp-String-1}"<br>
}</p>
<p>}<br>
</p>
This works like a charme!<br>
<br>
<br>
As I got a lot of groups, I'd like to do some pattern matching...<br>
<br>
<div style="padding-left: 30pt"> if ( Ldap-Group =~
/CN=(xyz),ou=groups,dc=company,dc=com/ ) {<br>
update control {<br>
</div>
<div style="padding-left: 60pt"> Tmp-String-1 := "%{1}"<br>
</div>
<div style="padding-left: 30pt"> }<br>
</div>
<br>
<br>
<br>
... but it seems that the ldap_groupcmp does not support pattern
matching? <br>
Am I right or does anybody has another idea?<br>
<br>
Thanks a lot and kind regards<br>
Cornelius<br>
</body>
</html>