Are you authing' by SQL?  If so, setup a field in your db that is for
reply attributes.  Only fill in that field for the users who get something
special.  Then in your auth clause setup something like:

DefaultReply Service-Type=Framed-User,Framed-IP-Address=255.255.255.254,\
             Framed-IP-Netmask=255.255.255.255,Framed-MTU=1500,\
             Framed-Compression=Van-Jacobson-TCP-IP


Change your select statement and column definitions to:


AuthSelect select PW, REPLYATTRS from PASSWD where USERNAME='%n'
AuthColumnDef 0,Encrypted-Password,check
AuthColumnDef 1,GENERIC,reply
        


Now any user with no reply attributes (an empty field in your sql table)
will get the DefaultReply items.  However, anyone with something in the
REPLYATTRS field will get those instead.    Sure beats using flat text
files as everything is read on the fly....   There is an example of what
that REPLYATTRS field should look like in the radiator docs.

--------------------------------------------------------------------------
Aaron Holtz
ComNet Inc.
UNIX Systems Administration/Network Operations
"It's not broken, it just lacks duct tape."
--------------------------------------------------------------------------

On Oct 28, Steven E. Ames molded the electrons to say....

>
>
>> Would it be possible to modify the way that AuthLDAP handles reply
>> attributes? Right now they are all listed in a singly replyattr
>> attribute. This is unwieldy for a lot of our tools and increases the
>> complexity of the parsing.
>>
>> A better mechanism would be to handle them the same way as SQL is
>> handled. Under SQL you can put up a statement such as:
>>
>>     AuthColumnDef 2, Session-Timeout, reply
>
>Following right behind on this topic... What's the best way to set
>default values for reply attributes and then let a matching user record
>override these defaults?
>
>-Steve
>
>
>
>===
>Archive at http://www.thesite.com.au/~radiator/
>To unsubscribe, email '[EMAIL PROTECTED]' with
>'unsubscribe radiator' in the body of the message.
>


===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to