Hello Benny -
On Tue, 10 Oct 2000, Benny Chee wrote:
> Hi hugh,
>
> thks for the promtp reply, i m still having problems getting my ldap
>attributes to authenticate with a regular expression.
>
> <AuthBy LDAP2>
> NoDefault
> Host 192.168.2.2
> AuthDN cn=administrator,ou=members,o=bar
> AuthPassword foobar
> BaseDN o=bar
> Port 9999
> HoldServerConnection
> UsernameAttr cn
> PasswordAttr userPassword
> </AuthBy>
>
> I have a ldap attribute called servicePlan.
> For each realm, we have different servicePlan' ID.
> eg:
> for realm=60hrs servicePlan=/[13][03569][5-9][0-9]/
> (we have lots of different pricing plans)
>
> How can i retrieve the serverPlan from the ldap server and compare it against
>the regular expression?
>
I think you will have to write a PostAuthHook to do this. You can assign the
ServicePlan value from the LDAP database to a pseudo-attribute
with an AuthAttrDef, then process the regexp comparison in the hook. There are
some example hooks in the file "goodies/hooks.txt".
regards
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.