On 19/12/05, <b class="gmail_sendername">Phil Mayers</b> <<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alexander Lund wrote:<br>> Can somebody explain howto use rlm_passwd and a textfile with this setup:<br>> name:password:group<br>> and so on<br>> the order can be any way around, spaces can also be present.<br>
<br>Wait: Are you saying that the file you *supply* freeradius may have<br>spaces in it? That won't work, fix the file (it's not hard). Assuming<br>that's not what you mean, and a format of:<br><br>username:unixCryptPassword:ASingleGroupName
<br><br>...then this should suffice:<br><br>modules {<br> passwd user_pass_group {<br> filename = /path/to/file<br> format = "*User-Name:~Crypt-Password:~Group"<br> }<br> pap {<br> encryption_scheme = crypt
<br> }<br>}<br><br>authorize {<br> preprocess<br> user_pass_group<br>}<br>authenticate {<br> Auth-Type PAP {<br> pap<br> }<br>}<br><br>...it's so trivial I assume you need more than this. Are you having a<br>
specific problem? If you want to use other schemes such as chap, you may<br>need the plaintext password, for example:<br><br>for username:plaintextPassword:ASingleGroup<br><br>modules {<br> passwd u_g_p {<br> filename = /path/to/file
<br> format = "*User-Name:~User-Password:~Group"<br> }<br> pap {<br> encryption_scheme = clear<br> }<br> chap {<br> }<br>}<br>authorize {<br> preprocess<br> u_g_p<br> chap<br> pap<br>}<br>
authenticate {<br> Auth-Type PAP {<br> pap<br> }<br> Auth-Type CHAP {<br> chap<br> }<br>}<br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html
</a><br></blockquote></div>No, the file I supply could have spaces if you needed it to solve my problem.<br>
<br>
This is just the thing I need:<br>
username:plaintextPassword:ASingleGroup<br>
<br>
Its perfect, but IŽd like to know exactly what Im doing so heres another question,<br>
The passwordfile. If Im not thinking completly wrong it shouldnŽt have any headers or a fileextension<br>
<br>
And do I have to use Chap? or can I use PAP with plain text passwords.<br>
<br>
Thanks for the help. If you come to sweden I will buy you enough beers to make you regret coming here ;)<br>
<br><br clear="all"><br>-- <br>When there is no solution, there is no problem.