A belated question about 0.7

2008-09-16 Thread Aaron Konstam
I thought that one of the capabilities of NM-0.7.. was to be able to
bring up the network globally on the machine instead of having to loin
as a user, Did that happen and I missed it.

If that can be dons , how?
--
===
Who needs friends when you can sit alone in your room and drink?
===
Aaron Konstam telephone: (210) 656-0355 e-mail: [EMAIL PROTECTED]

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


[PATCH] nm-service-openvpn: prevent segfault

2008-09-16 Thread Robert Buchholz
Hey,

r4056 introduced management socket cleanup in the openvpn plugin - and a 
SIGSEGV for me, when openvpn fails to start (because one needs 2.1_rc 
now). Backtrace, log and patch follow.

Robert


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd2db7e3740 (LWP 30941)]
0x7fd2daacb961 in g_io_channel_get_buffer_condition () 
from /usr/lib/libglib-2.0.so.0
(gdb) bt full
#0  0x7fd2daacb961 in g_io_channel_get_buffer_condition () 
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#1  0x00403014 in openvpn_watch_cb (pid=30948, status=256, 
user_data=0x6488a0) at nm-openvpn-service.c:459
channel = (GIOChannel *) 0x0
condition = 32722
plugin = (NMVPNPlugin *) 0x6488a0
priv = (NMOpenvpnPluginPrivate *) 0x6488f0
failure = NM_VPN_PLUGIN_FAILURE_CONNECT_FAILED
error = 1
good_exit = 0
__PRETTY_FUNCTION__ = openvpn_watch_cb
#2  0x7fd2daad4308 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x7fd2daad5e98 in g_main_context_dispatch () 
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#4  0x7fd2daad9115 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#5  0x7fd2daad95fa in g_main_loop_run () 
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#6  0x0040434b in main (argc=1, argv=0x7fffe381e068) at 
nm-openvpn-service.c:1045
plugin = (NMOpenvpnPlugin *) 0x6488a0
main_loop = (GMainLoop *) 0x64a170
(gdb)
 
 
NetworkManager: info  Starting VPN 
service 'org.freedesktop.NetworkManager.openvpn'...
NetworkManager: info  VPN 
service 'org.freedesktop.NetworkManager.openvpn' started 
(org.freedesktop.NetworkManager.openvpn), PID 19510
NetworkManager: info  VPN 
service 'org.freedesktop.NetworkManager.openvpn' just appeared, 
activating connections
NetworkManager: info  VPN plugin state changed: 1
NetworkManager: info  VPN plugin state changed: 3
NetworkManager: info  VPN connection 'tubit-o' (Connect) reply 
received.
nm-openvpn[19515]: Options error: Unrecognized option or missing 
parameter(s) in [CMD-LINE]:1: script-security (2.0.7)
nm-openvpn[19515]: Use --help for more information.
[29782.335456] nm-openvpn-serv[19510]: segfault at 10 ip 
7f6803114961 sp 7fff0be688b0 error 4 in 
libglib-2.0.so.0.1600.5[7f68030e9000+d8000]
NetworkManager: WARN  vpn_service_watch_cb(): VPN 
service 'org.freedesktop.NetworkManager.openvpn' died with signal 11
NetworkManager: WARN  connection_state_changed(): The name 
org.freedesktop.NetworkManager.openvpn was not provided by any .service 
files
NetworkManager: info  VPN 
service 'org.freedesktop.NetworkManager.openvpn' disappeared, 
cancelling connections

Index: vpn-daemons/openvpn/src/nm-openvpn-service.c
===
--- vpn-daemons/openvpn/src/nm-openvpn-service.c	(revision 4069)
+++ vpn-daemons/openvpn/src/nm-openvpn-service.c	(working copy)
@@ -452,7 +452,7 @@
 	}
 
 	/* Try to get the last bits of data from openvpn */
-	if (priv-io_data) {
+	if (priv-io_data  priv-io_data-socket_channel) {
 		GIOChannel *channel = priv-io_data-socket_channel;
 		GIOCondition condition;
 


signature.asc
Description: This is a digitally signed message part.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: nm vpn plugin api docs?

2008-09-16 Thread Dan Williams
On Mon, 2008-09-15 at 11:50 -0400, Steve Hillier wrote:
 Hi,
 
  
 
 I’m looking for some documentation to supplement the existing vpn
 plugin examples. Any VPN API docs available? I can’t seem to find
 anything online. I know there were extensive changes planned for 0.7,
 and the wiki does in fact show the vpn api changes to be done, but I
 still don’t see any docs on the changes themselves. Any help
 appreciated…

Yeah, not really.  There's introspection data available in
introspection/ to describe the D-Bus interface, but no real spec as of
yet.  Any questions I can answer for you in the mean time?

I was rewrote the interface yet again last week (to support multiple
VPNs and interactive authentication) but in the interest of keeping a
0.7 release in 2008, I decided to shelve it for now.  So there are 3
implementations of it to choose from so far.

Dan

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [ANNOUNCE] ModemManager (for GSM and CDMA)

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 08:06 +0100, Fanen A. wrote:
 I tried using adding a new mobile connection with the wizard and
 noticed that it contains the wrong settings for most networks in my
 country, as well as duplicate entries. I'd like to fix that.

Great!  I think the best way is to submit a patch to the list and make
sure you cc Antti Kaijanmäki [EMAIL PROTECTED] on the patch.

Dan

 Thanks.
 
 On 9/15/08, Dan Williams [EMAIL PROTECTED] wrote:
  On Mon, 2008-09-15 at 14:22 +0100, Fanen Ahua wrote:
  If I wanted to make corrections to the details of some of the networks
  in ModemManager, how would I go about it?
 
  Could you explain a bit more about what you mean?  I'm not sure I
  understand your question.
 
  Thanks!
  Dan
 
  Regards,
  Fanen Ahua
  Random quote: Woke up this mornin' an' I had myself a beer, Yeah, Ah
  woke up this mornin' an' I had myself a beer The future's uncertain and
  the end is always near. -- Jim Morrison, Roadhouse Blues
 
 
 
 
  On Fri, 2008-08-29 at 14:53 +0300, Tambet Ingo wrote:
   On Fri, Aug 29, 2008 at 2:37 PM, Roberto Majadas
   [EMAIL PROTECTED] wrote:
The api extension proposed by Pablo looks very nice. But probably we
need to add many methods to this proponsal. Could be very interesting
for all of us open a live.gnome.org wiki page and write the
interfaces/methods together.
  
   Could you please give me some examples what we're still missing?
   I'd rather do the API changes over mail, so that everyone can easily
   comment the changes. I don't think wiki is good for that, there's no
   place to explain why changes have been made.
  
   Tambet
   ___
   NetworkManager-list mailing list
   NetworkManager-list@gnome.org
   http://mail.gnome.org/mailman/listinfo/networkmanager-list
  ___
  NetworkManager-list mailing list
  NetworkManager-list@gnome.org
  http://mail.gnome.org/mailman/listinfo/networkmanager-list
 
 
 

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Forcing an AP scan

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 14:49 +0200, Pablo Martí wrote:
 Hi all,
 
 as a part of a project, we want to export a new method for NM, a
 RescanAccessPoints that refreshes the AP list. We've tried to export
 nm_supplicant_interface_request_scan, but it doesnt seems to work.
 Somehow two signals scan-result and scanned-ap seem to be involved
 with the scan process, but when we force it with the mentioned method
 only the scan-result, but no scanned-ap signal is emitted... are
 we in the right track? Any hints would be really appreciated.

Honestly, don't do this.  It comes up again and again and is in the
archives.  Instead, we should be optimizing the scan algorithm.  There
isn't a good reason to force a rescan if (a) the drivers don't suck and
(b) the NM scan algorithm is optimal.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Kernel Panic ocorres

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 10:39 -0300, Roberson Carlos wrote:
 After the update of Manager Network to version 0.7.0, I had some 
 problems with the connection of Minimodem Huawei E226, what happens is 
 that sometimes the modem automatically disconnects and sometimes occurs 
 the kernel panic .

Hmm, can you take a picture of the panic?  It might help to switch to a
text console right before it happens so you get the panic text.  Any
time a panic occurs, there is a driver bug.  Drivers should not panic.

dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] fix keyfile plugin secret crashes

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 11:12 +0200, Alexander Sack wrote:
 Forwarding patch for ubuntu bug https://bugs.launchpad.net/bugs/269010
 
 Attached patch by Steve Langasek [EMAIL PROTECTED]:
 
   * system-settings/plugins/keyfile/plugin.c: it might be better if we
   were casting the data from the hash to a gobject, instead of the key
   which is a filename... fixes a crash whenever trying to handle system-level
   secrets. LP: #269010

r4070, thanks!

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: A belated question about 0.7

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 09:16 -0500, Aaron Konstam wrote:
 I thought that one of the capabilities of NM-0.7.. was to be able to
 bring up the network globally on the machine instead of having to loin
 as a user, Did that happen and I missed it.
 
 If that can be dons , how?

It happens, it's done through system settings.  The system settings
service has plugins which provide system-level configuration to
NetworkManager.  Each distro has one to convert their (usually
read-only) file formats (like ifcfg or /etc/network/interfaces) to NM
Connections, but due to the limitations of some of these legacy formats,
they might not support all types of connections.

There's the 'keyfile' plugin that supports all types of connections and
provides both read and writability.  On Fedora for the moment we only
enable the ifcfg-fedora plugin to provide your normal ifcfg files to
NetworkManager, but we don't enable the keyfile plugin yet since there
are a few issues to sort out when more than one plugin is enabled.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Connecting with wpa_supplicant works, NM 0.7 doesn't

2008-09-16 Thread Dan Williams
On Tue, 2008-09-16 at 15:10 +0200, Giovanni Lovato wrote:
 At my University I can connect to the wireless network with this 
 configuration for wpa_supplicant:
 
 network={
ssid=Stud
  key_mgmt=IEEE8021X
  identity=vr075569
  password=**
  ca_cert=/etc/certs/UnivAIR.crt
  phase1=peaplabel=0
  phase2=auth=MSCHAPV2
 }
 
 I attach also the wpa_supplicant log.
   With NM 0.7 on Ubuntu (from Alexander Sack's PPA), I can't connect.

Are you sure the connection isn't supposed to use PEAP?  The logs
indicate that NM is trying to do LEAP.  Have you tried using PEAP in NM
instead?

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list