--- ppp-2.4.4.auth-fail/pppd/auth.c 2007-05-29 00:03:23.000000000 +0200 +++ ppp-2.4.4/pppd/auth.c 2007-05-29 22:22:45.000000000 +0200 @@ -1225,6 +1225,8 @@ if (user[0] == 0) strlcpy(user, our_name, sizeof(user)); + script_setenv("LOCALNAME", user, 0); + /* * If we have a default route, require the peer to authenticate * unless the noauth option was given or the real user is root. --- ppp-2.4.4.auth-fail/pppd/pppd.8 2007-05-28 23:48:20.000000000 +0200 +++ ppp-2.4.4/pppd/pppd.8 2007-05-29 22:11:27.000000000 +0200 @@ -1560,6 +1560,11 @@ The authenticated name of the peer. This is only set if the peer authenticates itself. .TP +.B LOCALNAME +The username passed to the user option of the pppd daemon. This is +handy to identify which account was used for authentication purposes +when multiple accounts is available. +.TP .B SPEED The baud rate of the tty device. .TP