On Jun 8, 7:37pm, [EMAIL PROTECTED] wrote: > Subject: (RADIATOR) RewriteUserName help needed > At the advice of Mike, I have started to put a realm name on the > end of some of my usernames. This is being done in the <Client> > clause. I have this working correctly where it puts > "@host.2xtreme.net" on the end of any usename appearing from > that client. The problem I'm having now is that when this username > gets recognized by the <Realm> clause, it send the whole > '[EMAIL PROTECTED]' in to my platypus SQL looking for a > match. Naturally, I have not entered the realm name into my > customers user fields in platypus and it does not find a match. I'm > thinking that I need to do another RewriteUsername that will strip > off the whole realm name once it is received by the <Realm> > clause before it sends it to my platypus SQL for authentication. Yes, thats the right answer. You want something like: RewriteUsername s/^([^@]+).*/$1/ > > Another issue with adding realm names at the end of each > username with the <Client> clause, multiple logins cannot be > enforced between POPs since each POP has it's own realm name. > If the same username logs attempts to login to the same POP > twice, that should work though. If I could strip off the realm name > before any <AuthBy> clauses in the realm, this would solve both > problems I believe. Correct. > Since I'm not very good at regular expressions > in perl, can someone show me how to truncate a username based > on the '@' ? See above. Hope that helps. Cheers. > > Thanks, > John Kicklighter > Internet 2xtreme > > === > Archive at http://www.thesite.com.au/~radiator/ > To unsubscribe, email '[EMAIL PROTECTED]' with > 'unsubscribe radiator' in the body of the message. >-- End of excerpt from [EMAIL PROTECTED] -- Mike McCauley [EMAIL PROTECTED] Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW 24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au Phone +61 3 9598-0985 Fax +61 3 9598-0955 Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, NT, Rhapsody === Archive at http://www.thesite.com.au/~radiator/ To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.