Hello Merad -
It is usually easier to do this sort of thing with Handlers instead of Realms. Something like this: # define separate Handlers for accounting and authentication <Handler Request-Type = Accounting-Request, Realm = client.domain> # do accounting ..... </Handler> <Handler Realm = client.domain> # do authentication ..... </Handler> regards Hugh On Wed, 20 Feb 2002 20:52, Merad Abdelkrim wrote: > Hi all, > I have a radiator version 2.18.4 installed on an OpenBSD 2.7. > I have Realms authenticated by LDAP > For that I use the rewriteUsername feature. > My problem is that in the accounting logs I don't have the field > "login@realm" but only "login" > It's a bloquing problem cause we must make accountings by realm in way to > establish bills. > > If someone have a solution for me I will appreciate. > > Thanks a lot > > Here an extract of my radius.cfg : > > > <Realm client.domaine> > RewriteUsername s/^([^@]+).*/$1/ > <AuthBy LDAP2> > # The LDAP host to connect to > # If not set, defaults to localhost > Host aaa.bbb.ccc.ddd > > # If not set, defaults to 389 > # Can be a numeric port number or a service name > # from /etc/services > # Port 389 > > # Not supported yet. > #UseSSL > > #AuthDN > #AuthPassword > > # The base DN at which to start the search > BaseDN ou=client.domaine,o=co,c=FR > # The LDAP host to connect to > # If not set, defaults to localhost > Host aa.bb.cc.dd > > # If not set, defaults to 389 > # Can be a numeric port number or a service name > # from /etc/services > # Port 389 > > # Not supported yet. > #UseSSL > > #AuthDN > #AuthPassword > > # The base DN at which to start the search > BaseDN ou=xxx,o=yyyy,c=zzz > > # The attribute to match against User-Name > UsernameAttr login > > # The attribute that contains a plaintext password > PasswordAttr password > > # Optional attribute that contains an > # encrypted password to use instead of PasswordAttr > # EncryptedPasswordAttr sn > > # Optional attribute that contains check > # items for the user > # Optional attribute that contains reply > # items for the user > # Optional attribute that contains reply > # items for the user > #ReplyAttr mail > > </AuthBy> > > # Log accounting to the detail file in LogDir > AcctLogFileName %L/%Y%m%d_%H00.act > </Realm> > > > Merad Abdelkrim > E-Brands > Tel 0171081631 > Mob 0622287223 > > 7 Allée de l'Arche > 92677 Courbevoie Cedex - La Défense > Tour Cèdre - 15ième étage > > > === > Archive at http://www.open.com.au/archives/radiator/ > Announcements on [EMAIL PROTECTED] > To unsubscribe, email '[EMAIL PROTECTED]' with > 'unsubscribe radiator' in the body of the message. -- Radiator: the most portable, flexible and configurable RADIUS server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence. === Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.