English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/ppp/patches/107-debian_stripMSdomain.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 744 - (show annotations) (download)
Thu Sep 28 10:42:55 2006 UTC (7 years, 4 months ago) by wbx
File size: 1018 byte(s)
create stable branch, feature freeze, please send svn diff patches to wbx
1 diff -ruN ppp.orig/pppd/chap-new.c ppp/pppd/chap-new.c
2 --- ppp.orig/pppd/chap-new.c 2003-11-27 23:25:17.000000000 +0100
3 +++ ppp/pppd/chap-new.c 2003-12-02 12:26:21.000000000 +0100
4 @@ -57,6 +57,7 @@
5 int chap_timeout_time = 3;
6 int chap_max_transmits = 10;
7 int chap_rechallenge_time = 0;
8 +int chapms_strip_domain = 0;
9
10 /*
11 * Command-line options.
12 @@ -68,6 +69,8 @@
13 "Set max #xmits for challenge", OPT_PRIO },
14 { "chap-interval", o_int, &chap_rechallenge_time,
15 "Set interval for rechallenge", OPT_PRIO },
16 + { "chapms-strip-domain", o_bool, &chapms_strip_domain,
17 + "Strip the domain prefix before the Username", 1 },
18 { NULL }
19 };
20
21 @@ -338,6 +341,14 @@
22 /* Null terminate and clean remote name. */
23 slprintf(rname, sizeof(rname), "%.*v", len, name);
24 name = rname;
25 +
26 + /* strip the MS domain name */
27 + if (chapms_strip_domain && strrchr(rname, '\\')) {
28 + char tmp[MAXNAMELEN+1];
29 +
30 + strcpy(tmp, strrchr(rname, '\\') + 1);
31 + strcpy(rname, tmp);
32 + }
33 }
34
35 if (chap_verify_hook)

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20