On Fri, 2005-03-04 at 16:35, Dustin Doris wrote: > On Wed, 2 Mar 2005, Nick Bright wrote: > > > Although I just had a thought. I can put the unix Crypt()'d password in > > the database if I use Password-Crypt (I think that's the flag, I'll look > > in the docs, I know I've seen it). > > > > If you have access to the /etc/passwd and can get the crypt passwords that > should work. In sql just set the attribute as Crypt-Password. If you are > using ldap, just prefix the password with {crypt} (added that in case > anyone searches the archives looking for something similar but w/ ldap). > > That would be the easiest way to go.
Yeah, I figured that out. . . Have that set up and working (some of my recent posts have been dealing with that) > > Otherwise, you could use an external script. If you know perl, look into > rlm_perl. You can call it at any point in the authentication process and > you could create the sql calls to insert the username/password during > auth. Or you could just write a script in another language. The benefit > of the perl module is that its persistant. Check out the exec echo part > of radiusd.conf if you want to use another language. > I'll probably end up using a script to convert peoples passwords when they log in, or just do it with a query (since I'm logging the plain text password to SQL anyways) later. > I think they also have rlm_python if you know python, which will also > provide a persistant connection to the script (I believe). > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- - Nick Bright Terraworld, Inc 888-332-1616 x315 http://home.terraworld.net - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html