<html><head><style type='text/css'>body { font-family: 'Times New Roman'; font-size: 12pt; color: #000000}</style></head><body>I have set up a VPN pointing to a FreeRadius server and have it<br>authenticating successfully against my LDAP server, but I would also like to<br>limit access to only those people who are a member of the VPN group.<br><br>Normally, this would be simple, but because of the LDAP server I am using,<br>the hierarchy looks like this:<br><br>User Account:<br><br>ldapsearch -h ldap -x -b "dc=MY,dc=DOMAIN" "(uid=firstname.lastname)"<br>dn: uid=firstname.lastname,ou=people,dc=MY,dc=DOMAIN<br>uidNumber: 1024<br>...<br><br>Group entry is:<br><br>ldapsearch -h ldap -x -b "dc=MY,dc=DOMAIN" "(cn=VPN Users)"<br>dn: cn=VPN Users,ou=groups,dc=MY,dc=DOMAIN<br>memberUid: 1024<br>...<br><br>So I need to somehow configure Radius to search on me, get my uidNumber and<br>then search on the group. If I skip the searching to get the uidNumber, I<br>can configure the Radius (for this single account) correctly:<br><br>In the ldap module I include:<br>                ...<br>                groupname_attribute = cn<br>                groupmembership_filter = "(memberUid=1024)"<br>with the following entry in the users file:<br><br>DEFAULT Auth-Type = LDAP<br>        Fall-Through = 1<br><br>DEFAULT LDAP-Group == "VPN Users"<br>        Service-Type = Administrative-User<br><br>and this works as expected, but is there any way I can substitute the 1024<br>for an ldap search result so I can dynamically return the uidNumber for the<br>%{User-Name} field?<br><br>Thanks!<br><br>Cheers,<br>David<br><br></body></html>