| Summary: | wvdial doesn't write /etc/ppp/pap-secrets | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pawel Jablonski <pawelj> |
| Component: | Current packages | Assignee: | Gentoo Dialup Developers <net-dialup> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 41186 | ||
| Bug Blocks: | |||
|
Description
Pawel Jablonski
2004-01-30 02:00:37 UTC
I dug through the 1.53 source code. In order to write to /etc/ppp/{pap, chap}-secrets, the wvdial program calls the function WvPapChap::put_secret. After checking the source tree, this function is only called in two places, the first is papchaptest.cc (which is just a test program, not part of the wvdial program) and wvdialer.cc (which is commented out!).
Secondly, the program doesn't seem to be reading it's own configuration files (at least as far as the username/password is concerned). The documentation says that this program reads from /etc/wvdial.conf (which contains a Username and Password field) and automagically updates {pap,chap}-secrets on its own (and indeed the functionality is there in the program, just never called). So, for the time being it seems that this version of wvdial only works if you already set the contents of /etc/ppp/pap-secrets and/or /etc/ppp/chap-sercrets.
Should this problem be thrown upstream to the wvdial maintainers?
Ok, just found the source for the new version of wvdial on their website. Source code says:
// PP - Put this back in, since we're not using passwordfd unless we're
// SuSE... how did this work without this?
WvPapChap papchap;
papchap.put_secret( options.login, options.password, options.remote );
Looks like this is a known issue, and is fixed in 1.54. Basically, wvdial is borked until you upgrade to version 1.54 (or you manually edit {pap,chap}-secrets yourself).
So to resolve bug we should upgrade wvdial to 1.54 (current 1.53) and wvstream (needed by wvdial) (current 1.70) to 1.74. I try do it, but wvstream 1.74 I can't compile :-( (db related error) Did you try to compile the source yourself or did you use the ebuild in portage for wvstreams? I did: emerge sync ACCEPT_KEYWORDS="~x86" emerge wvstreams And it built just fine. If you had trouble building the wvstreams package using emerge you should file a seperate bug report. this is fixed in 1.54.0 |