Config. Help please - ldap and Active Directory

Alan DeKok aland at deployingradius.com
Tue Mar 10 12:30:34 CET 2009


Leighton Man wrote:
> I've upgraded to 2.1.3 but, sorry, I'm really struggling with the concepts.
> I can't do "if Ldap-Group" because there is no container in Active Directory above staff and student to query.
> 
> What I think I need is:
> 
> if ladp_staff returns "ok" {
> 	update reply{
>         ..................
>       }
> elsif ladp_student returns "ok" {
> 	update reply{
>         ..................
>       }
> else {
>       Auth-Type := Reject
> }
> 
> ,where ldap_staff and ldap_student are instances of the ldap module
> I simply can't get the syntax right.

  see "man unlang".  The syntax and examples are documented.


   ...
   ldap_staff
   if (ok) {
      update reply {
       ...
      }
   }
   else {
     ldap_student
     if (ok) {
        update reply {
         ...
        }
     }
     else {
          reject
     }
   }

  Alan DeKok.



More information about the Freeradius-Users mailing list