Re: Hi - openSuse Networkmanager issue
On Sun, May 27, 2012 at 12:50 AM, Mike wrote: > Hi all, > > Can I get support from you? I am using networkmanager on openSuse 12.1. > It never fails with a hardwire connection. It never fails on an > unencrypted open network. > > I cannot, however, get it to work with an encrypted network. It it just > did not work at all it might be easy to fix, but this is something really > odd. > > I enable my wifi (iwlagn) with network manager. I use WPA-psk and my > passphrase. I pick up a valid IP address, right now the lease gives me > 192.168.1.108. That's great! But now I am not connected. I can pink > local host. I can ping myself at 192.168.1.108 but not the router - > 192.168.1.1. Here is the real odd thing. I started pinging other devices > around the network just to see what would happen. I can ping a printer at > 192.168.1.55 . amazing, but I cannot ping the IP of the router that > gave me the dhcp address! > > Any ideas? I am confounded. > Do you open a bug in bugzilla.novell.com? And attach your /var/log/NetworkManager would be more helpful. Thanks! > Thanks. > > Mike Reese > > ___ > networkmanager-list mailing list > networkmanager-list@gnome.org > https://mail.gnome.org/mailman/listinfo/networkmanager-list > > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Wpa Supplicant
On Mon, Feb 20, 2012 at 1:09 AM, Almo Nito wrote: > Im actually getting this error: > > > > NetworkManager[1295]: [1329674643.782386] > [nm-supplicant-interface.c:570] interface_add_cb(): (wlan0): error adding > interface: Did not receive a reply. Possible causes include: the remote > application did not send a reply, the message bus security policy blocked > the reply, the reply timeout expired, or the network connection was broken. > > NetworkManager[1295]: dbus_g_proxy_cancel_call: assertion `pending != NULL' > failed Looks the DBus call is failed, could you view your /var/log/wpa_supplicant? Maybe it'll be helpful. > > What do I look for? > > > > rehards > > > ___ > 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: Setting openVPN options
On Mon, Feb 20, 2012 at 3:36 AM, Volker Kuhlmann wrote: > Hi, > > Network manager dies trying to establish an openVPN connection because > it uses the wrong openVPN options. How can I change the openVPN options > used by NM? I need to add some and remove some. Which option? Some options could be set in nm-connection-editor. > And is it possible to get the output from openVPN properly? What it > writes to syslog is no where near sufficient and basically not useful > for debugging this sort of problem. http://live.gnome.org/NetworkManager/Debugging Hope it helpful. > Thanks, > > Volker > > -- > Volker Kuhlmann > http://volker.dnsalias.net/ Please do not CC list postings to me. > ___ > 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: Gnome 3, Network-Manager & ifupdown
On Fri, Dec 23, 2011 at 7:09 AM, David BERCOT wrote: > Hello, > > I'm a Debian (sid) user under Gnome 3.2. > > Because I have many places to configure, I use guessnet > in /etc/network/interfaces. Then, I'd like Network-Manager not to think > I'm not connected, so, I've added : > [ifupdown] > managed=true > in /etc/NetworkManager/NetworkManager.conf > > Now, I have two questions : > 1. how can I ask Network-Manager to automatically use the connection > choosen in /etc/network/interfaces ? I'd like not to have to click on > the "Ifupdown (myconnection)"... > 2. when my wired cable is not connected, how can I do a "basic" > configuration ? Maybe it is in /etc/network/interfaces, but I've tried : > iface eth_disconnected inet manual > test missing-cable > and it does not work... It should be like below to let it work. [main] plugins=ifupdown,keyfile > Thank you. > > David. > ___ > 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: NSS need
install libnss3-dev 2011/10/17 孙鹏 : > Hi everone: > I want to install networkmanager in Ubuntu 10.04. In the configure, I > found that > > Checking for NSS... configure error: Package requirements (nss >= 3.11) > were not met > > How can I solve this problem ? > >Thanks a lot. > ___ > 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: double network at a time.
On Tue, Sep 6, 2011 at 4:06 PM, keyur savsani wrote: > hi, > can you please explain how to fix DNS and default route, > i am new to use ubuntu as well as network. Use the Mobile broadband first not lan, after connect successfully, got the DNS from the resolv.conf and the route from 'ip r'. Then connect to the Lan, also just keep the Mobile broadband connection, after successfully connected, you found you default route was changed. Just changed it back from which one you got from tops. routed add default gw x.x.x.x You also may note that when more than 3 nameservers the libc resolver may not support, so you need move the Mobile Broadband's DNS at the front of the LAN's DNS. > Thanks. > > On 9/5/11, keyur savsani wrote: >> hello there, >> >> can any one heip me how to use double network at a time. >> >> I want to use LAN network for local connectivity at office and mobile >> broadband for internet use. >> >> Thanks, >> keyur savsani. >> > ___ > 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: Additional network interfaces in OpenSUSE?
On Sun, Sep 4, 2011 at 3:41 PM, Uwe Geuder wrote: > If I understood it correctly in Debian/Ubuntu network manager will leave > additional interfaces defined in /etc/interfaces unmanaged. > > So you can combine your "main" internet access managed by networkmanager > (eth0, wlan0, ppp0 depending on where you are) with "additional" manual > network setting you might need insided you machine (e.g. for various > virtual machines you might be running) > > Did I understand that corrcectly? > > However, in OpenSUSE I cannot see how to achieve anything similar. As > soon as network manager is enabled, ifup does not work any longer. > > From what I see in the source code this is pretty unconditional: > > from /usr/src/packages/BUILD/sysconfig-0.74.5/scripts/ifup: (OpenSUSE 11.4) > > ---clip--- > > ## > # Check if NetworkManager is running, inform the user and exit > # > if [ "$NETWORKMANAGER" = yes ] && ! netcontrol_running ; then > if [ "$SCRIPTNAME" != ifdown -a "$INTERFACE" != lo ] ; then > mesg "Network interface is managed by the NetworkManager -> > skipping" > exit $R_NOTIMPL > fi > elif nm_running && [ "$INTERFACE" != lo ] ; then > mesg "Network interface is managed by the NetworkManager -> skipping" > exit $R_NOTIMPL > fi > > --- clip --- > > Hopefully I'm just missing something here. > > Often it helps to know what one really wants to achieve, so here it > goes: > > I need a bridge device for Xen. I let network manager take care of the > internet access (this is a laptop) The straight forward approach putting > the current "internet" interface chosen by network manager on the bridge > would require to set the network address & routing to the bridge device > instead of eth0/wlan0/ppp0. I don't think network manager can handle > that. > > So my idea was to leave the bridge unmanaged from network manager, give > it a static internal IP address and use ipforward together with NAT to > connect the bridge with network manager's current "internet" > interface. However, no it looks in OpenSUSE I cannot even run "ifup br0" > when network manager is running. The best way is to use ifup mode in openSUSE, and if you wanna use the NM, you could try to use 'unmanaged-devices=mac:;" in NetworkManager.conf. you can find more with 'man NetworkManager.conf' > Regards, > > Uwe > > ___ > networkmanager-list mailing list > networkmanager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list > Sincerely Yours, Bin Li http://zh.opensuse.org ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: double network at a time.
On Tue, Sep 6, 2011 at 12:27 AM, keyur savsani wrote: > hello there, > > can any one heip me how to use double network at a time. > > I want to use LAN network for local connectivity at office and mobile > broadband for internet use. And now NM could support the LAN and Mobile Broadband connected at the same time. The main issue just the DNS and default route, just check these one. > Thanks, > keyur savsani. > ___ > 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: Where does NM store its VPN configurations?
On Wed, Aug 10, 2011 at 6:29 PM, Derek Atkins wrote: > Hey all, > > I just migrated from one laptop to another (both running Fedora 15). I > completely copied my homedir over and all my wireless configuration > remained but for some reason I don't see any of my previous VPN > configurations on the new system. Where does NM store it, and how do I > copy it over? Maybe you could check /etc/NetworkManager/system-connections/ > -derek > -- > Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory > Member, MIT Student Information Processing Board (SIPB) > URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH > warl...@mit.edu PGP key available > ___ > 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: NM no longer supports a dialup modem?
On Wed, Aug 3, 2011 at 5:49 AM, Dan Williams wrote: > On Sun, 2011-07-31 at 09:34 +0200, craig wrote: >> Hello, >> >> Under Debian Etch with Gnome, NetworkManager listed my 56Kb dialup modem and >> was >> able to connect and disconnect to/from the Internet using that modem. > > I'd assume that was NM 0.6.x? Dialup support was pretty hacked in and > was removed a few years ago with NetworkManager 0.7.x. We're looking at > adding it back into ModemManager though, which is what NM 0.7+ uses for > controlling modems and 3G sticks. Now in SUSE already have this patch for this function, it's based on 0.7.x, if needed I'd like to backport the patch for it, and which branch would be better to add this funcion? >> Now, under Debian Squeeze with Gnome, NetworkManager does not seem to know >> about >> my dialup modem at all, and I don't see any way to enter/edit that sort of >> connection using NM's connection editor. > > Right, because they aren't seen by ModemManager and not supported at > this time :( > > Dan > >> I have scoured for documentation and advice and found nothing about >> NetworkMAnager and dialup modems. >> >> Can anyone suggest the best way to be connect/disconnect to/from the Internet >> from within Gnome? >> >> Thanks in advance. >> ___ >> 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: I dont' understand... :-(
On Sat, Jul 23, 2011 at 3:39 PM, Soles wrote: > Hello ... > > First thing: I wrote in Spanish and translated by St. Google ... ;-) > because they do not speak English. > > Then: I need help to understand this log you copied: > > What strikes me is: > > Why does that > avahi-daemon [982]: Registering new address record for 192.168.1.2 on > eth0.IPv4. > > Is it that ...? > > Then, in: > avahi-daemon [982]: Registering new address record for fe90:: 336:5 > bff: fe7c: 8l6l on eth0 .*. > > What's that ...? > My MAC ... certainly not. These two logs is from avahi-daemon, when you use NM make a connection successfully, the avahi detect new ip was got it, then renew the register list so that the other machine could find it quickly. You can ignore it. > Somewhat important, not interpret. > NetworkManager: check_one_route (): (eth0) error -34 Return > from rtnl_route_del (): Sucesso # 012 > > What do I have to do with it ...? > And with this ...? > nm-dispatcher.action: Script '/ > etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1. This depends on your script's return value, you need check the ifupdown script, if it return 0, the NM wouldn't show this log again. > Thanks to whoever is willing and able to help. > > Claudia > ___ > 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
Mobile Broadband traffic statistics need change PolicyKit settings
Hi, When using plasmoid-networkmanagement one can get connection statistics for wired ethernet and wireless wifi connections, but when asking for mobile broadband statistics, the plasmoid asks for the root password. This is about org.freedesktop.ModemManager.Device.Info which protects reading the IMEI, IMSI, operator id and CDMA ESN. I'm not sure that info is secret enough to be hidden from users, could we set the allow_active to 'yes' in org.freedesktop.ModemManager.Device.Info action which in the policy file? https://bugs.kde.org/show_bug.cgi?id=266807 https://bugzilla.novell.com/show_bug.cgi?id=674022 Thanks a lot! Sincerely Yours, Bin Li http://cn.opensuse.org ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: nm-applet gone from panel
On Wed, Dec 1, 2010 at 4:01 AM, Joao Ferreira gmail wrote: > Hello, > > A friend of mine showed me a computer in which the nm-applet control > icon (top-right corner) does not appear. > > It used to be there before but - he does not know why - it's gone. > > I verified the options in "System -> Preferences -> Startup > Applications" and the nm-applet option is correctly selected. > > I can not understando why it does not appear. We even tried to create a > fresh new user and the applet appears just good for this fresh user. > > Can anyone point how to restore the nm-applet to the right place for > that user ? Make sure the nm-applet and NetworkManager already running in your 'ps auxw'. if nm-applet start failed, the ~/.xsession-errors would provide more info, if the NM start failed, the /var/log/NetworkManager would be helpful. > Thank you. > > Joao > > > ___ > 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
Let NM support the dial-up modem
Dan, Could we have any plan to support the dial-up modem in NM and MM? I'm try to add it in MM and NM, and still some issue. 1) Is it better that make a single dialup plugin for MM? Or just put it in generic plugin? 2) When I use the dialup plugin, my Huawei 3G modem, was processed by dialup plugins, cause it load before the huawei plugins, how to recognize modem correctly? I prepare put the dialup plugins to the last like generic plugin to resolve my current issue. 3) In nm-connection-editor, is it better to separate a single tab for modem? Any idea? Sincerely Yours, Bin Li http://cn.opensuse.org ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: auto reconnect issue
On Tue, Oct 5, 2010 at 1:44 PM, rain blue wrote: > Dear, > I have some issues about reconnect. > ex: a. I have /etc/NetworkManager/system-connection/Wired static ip > b.connecting Wired static ip > c.rm /etc/NetworkManager/system-connection/Wired static ip > d.disconnected > e.create /etc/NetworkManager/system-connection/Wired static ip2 > then nm-applet can't auto reconnect Wired static ip2 configure. > what can i do that let nm-applet auto reconnect? Do you add below line in [connection] section? autoconnect=true > Networkmanager-applet 0.8 version > ( I close all about nm-applet GUI , just want to use command or c code to > control ) > BTW, I write to use AddConnection DBUS by c code. Add 3.5G Wired Wifi static > IP setting. > (reference: Jirka sampler & nm-keyfile-connection.c) > Maybe it will help beginner to study NM. Like me... > Thanks everyone > blue > > > ___ > 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: modem-manager: No-Plugins and networkmanager not able to detect modem device
On Sat, Aug 28, 2010 at 10:12 AM, hong sheng wrote: > Hi: > > I am using modem-manager 0.3, when I run modem-manager, it complains: > "No-plugins". What does it mean? I am new to modem-manager. Which distribution do you use? Could check your /usr/lib/ModemManager/ ? The plugins should be there. > When I run networkManger 0.8.0, it seems networkmanager doesn't detect the > modem in the query_devices with udev_manager. However, I see the device > under /dev/ttyUSB0, Can anyone tell me why udev_manager doesn't detect the > modem? you can get it from dmesg. > thanks for the help > > Xiaohong > > > ___ > 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
NM support Sierra Wireless 885 3G?
Dan, When connect to Sierra Wireless 885 3G, it prompt below info, what's does it mean? Thanks! # /usr/sbin/modem-manager --debug ** Message: Loaded plugin Nokia ** Message: Loaded plugin MBM ** Message: Loaded plugin Option ** Message: Loaded plugin Huawei ** Message: Loaded plugin HSO ** Message: Loaded plugin Novatel ** Message: Loaded plugin Sierra ** Message: Loaded plugin ZTE ** (modem-manager:10139): DEBUG: Created new Sierra modem (/org/freedesktop/Hal/devices/usb_device_1199_6880_1234567890ABCDEF_if0_serial_usb_0) ** (modem-manager:10139): DEBUG: (/dev/ttyUSB0) opening serial device... ** (modem-manager:10139): DEBUG: <-- ' \7' ** (modem-manager:10139): WARNING **: Invalid byte sequence in conversion input ** (modem-manager:10139): DEBUG: --> 'ATZ E0 V1 X4 &C1 +CMEE=1' ** Message: Closing device '/dev/ttyUSB0' Sincerely Yours, Bin Li http://cn.opensuse.org ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: ./configre error networkmanager 0.8.0.997
On Mon, Jul 12, 2010 at 4:52 AM, Majid Dehghan wrote: > hi all, > this is the output while i try to ./configure the network manager > version 0.8.0.997: > > checking Linux Wireless Extensions >= 18... no > configure: error: wireless-tools library and development headers >= > 28pre9 not installed or not functional You should install the libiw's devel package > how can i solve it, > thanks in advance > > ___ > 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: ModemManager : 3G dongle disconnection
2010/7/2 Stéphane Régnier : > Dear programmer, > > I have difficulties to solve my disconnection problem, I hope you can > help. > > I'm using a 3G usb key, huawei e180, with NetworkManager 0.8 and > ModemManager 0.3. Once connected, without using the network and after > exactly 30 minutes, it disconnects and never comes back until I restart > ModemManager. > Looking to ModemManager traces I found : > ** Message: (ttyUSB1) closing serial device... > ** Message: (Huawei): GSM > modem /sys/devices/platform/ehci-omap.0/usb1/1-1 claimed port ttyUSB1 > ** Message: (ttyUSB0) closing serial device... > ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed > (connected -> disconnecting) > ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed > (disconnecting -> connected) > ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed > (connected -> disconnecting) > ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed > (disconnecting -> connected) > > In NetworkManager, traces corresponding to a dbus activate : > NM: Activation (ttyUSB0) starting connection 'bouyguestel' > NM: (ttyUSB0): device state change: 3 -> 4 (reason 0) > NM: Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) > scheduled... > NM: Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) > started... > NM: Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete. > NM: stage1_prepare_done(): GSM modem connection failed: (32) > Sending command failed: device is not enabled > NM: (ttyUSB0): device state change: 4 -> 9 (reason 1) > NM: Marking connection 'bouyguestel' invalid. > NM: Activation (ttyUSB0) failed. > NM: (ttyUSB0): device state change: 9 -> 3 (reason 0) > NM: (ttyUSB0): deactivating device (reason: 0). > > And lsof confirms that modem-manager has no ttyUSB opened. > It seems that a modem-manager restart or a simple AT command each 30 > minutes is efficient to keep connection alive but I prefer correct cause > than consequence. It could help me to know the reason (and the answer?) > of that 30 minutes timeout, and where it comes from (3Gkey,ehci,mm,nm?). I use the e180 at openSUSE 11.3 RC2, and found after exactly 10 minutes, it disconnects, when connect it again, it works fine. Provide more modem-manager debug maybe helpful. # killall -TERM NetworkManager # killall -TERM modem-manager # modem-manager --debug In another start the NetworkManager > Thanks for the help > > Stéphane > > > ___ > 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: can't enter wpa password
On Sat, Jul 3, 2010 at 12:42 AM, Eric Beversluis wrote: > On Fri, 2010-07-02 at 14:42 +0800, Bin Li wrote: >> On Fri, Jul 2, 2010 at 12:54 AM, carpetnailz >> wrote: >> > I'm using my Linux box (OpenSuse 11.2) with a Sprint MiFi box. In the past >> > it has worked fine but yesterday afternoon for some reason is cut me off >> > and >> > I haven't been able to get back on. All the other boxes work (using that >> > other OS from Washington). >> > >> > When I try to log on it will only give me the option to enter a WEP code, >> > not a WPA. With some jiggling--turning radio off and on, disabling wireless >> > and reenabling it, deleting the connection and trying to recreate it, even >> > rebooting, I sometimes will get a dialog box that calls for the WPA >> > password. But then the "Apply" button is greyed out, so NetworkManager >> > seems >> > to be refusing to do anything with my WPA password even when it offers to >> > let me enter it. >> So how about delete the connection in 'wireless' tab of 'Network >> Connections' Dialog, then try to connect the wireless again. > > Tried that. One of the situations in which I seemed to be offered > opportunity to enter WPA passcode but the Apply button was greyed out. Make sure, you've select correct Security mode, 'WPA Personal' or 'WPA Enterprise', then make sure the correct password, I tried 'WPA Personal' in my laptop, when input more than 8 characters, the 'Apply' button was enabled. >> >> > 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: can't enter wpa password
On Fri, Jul 2, 2010 at 12:54 AM, carpetnailz wrote: > I'm using my Linux box (OpenSuse 11.2) with a Sprint MiFi box. In the past > it has worked fine but yesterday afternoon for some reason is cut me off and > I haven't been able to get back on. All the other boxes work (using that > other OS from Washington). > > When I try to log on it will only give me the option to enter a WEP code, > not a WPA. With some jiggling--turning radio off and on, disabling wireless > and reenabling it, deleting the connection and trying to recreate it, even > rebooting, I sometimes will get a dialog box that calls for the WPA > password. But then the "Apply" button is greyed out, so NetworkManager seems > to be refusing to do anything with my WPA password even when it offers to > let me enter it. So how about delete the connection in 'wireless' tab of 'Network Connections' Dialog, then try to connect the wireless again. > Help! I need to be able to work. > > Thanks. > ___ > 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: vpnc works from command line but not from Network Manager.
On Fri, Jul 2, 2010 at 6:15 AM, Maffitt, David wrote: > Using NetworkManager Applet 0.8.0.997 on fedora 13 with vpnc 0.5.3 > vpnc works (I can ping machines on the private network) if I sudo from the > command line and enter config info at prompts. > Running from the applet appears to connect (I get the banner message in > pop-up window indicating I've connected), but I cannot ping on the private > network). running 'ps ax | grep vpnc' returns > /usr/libexec/nm-vpnc-service > /usr/sbin/vpnc --non-inter --no-detach - > > any ideas? debugging tips? * killall -TERM nm-vpnc-service * in a root terminal, run VPNC_DEBUG=1 /usr/libexec/nm-vpnc-service * start your VPN connection * reproduce the problem * send the nm-vpnc-service output to the developers > The material in this message is private and may contain Protected Healthcare > Information (PHI). If you are not the intended recipient, be advised that > any unauthorized use, disclosure, copying or the taking of any action in > reliance on the contents of this information is strictly prohibited. If you > have received this email in error, please immediately notify the sender via > telephone or return mail. > ___ > 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: [PATCH] netconfig exit before waitpid
Dan, Would mind take a look at it? It's a very bad bug in openSUSE. Thanks! On Tue, Jun 22, 2010 at 6:50 PM, Bin Li wrote: > Dan, > > In openSUSE, when the netconfig update the resolv.conf successfully, > it exit before waitpid, the waitpid() return -1 cause ECHILD(No child > processes), > so the resolv.conf was updated again by update_resolv_conf. > > Please review the patch, thanks! > > Sincerely Yours, > > Bin Li > > http://cn.opensuse.org > ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Does NM support the C-motech D-50 or C-motech CNU-680?
On Wed, Jun 23, 2010 at 10:59 AM, Bin Li wrote: > On Tue, Jun 22, 2010 at 3:42 PM, Dan Williams wrote: >> On Tue, 2010-06-22 at 14:53 +0800, Bin Li wrote: >>> Hi, >>> >>> There is an entry 'CDMA Connection' found on the NetworkManager-gnome menu. >>> Selecting this entry causes the NM applet to spin maybe a minute or so >>> (until >>> timeout?). But no dial-up connection is established, no connection lamp that >>> illuminates, just the waiting lamp twinkling on the modem. >> >> I've got both a C-motech 550 (USB) and a 650 (Expresscard) and both are >> correctly recognized by ModemManager. I'd assume the 680 isn't that >> differnet. Can you post 'dmesg' output when the device is plugged in? >> >> The log output below doesn't actually show MM finding the device. If >> it's really ttyS4, that indicates a PCMCIA device, not a >> CardBus/ExpressCard one, which would be very unlikely. > > $ dmesg | grep tty > [ 0.00] console [tty0] enabled > [ 0.655932] :00:03.3: ttyS4 at I/O 0x5030 (irq = 17) is a 16550A > > and this command lists the D-50 onboard memory as previous shown > > $ dmesg | grep CMOTECH > [ 2.742713] usb 6-1: Product: CMOTECH CDMA Technologies > [ 2.742715] usb 6-1: Manufacturer: CMOTECH CO., LTD. > [ 11.883876] scsi 5:0:0:0: CD-ROM CMOTECH Mass Storage 2.31 > PQ: 0 ANSI: 0 CCS > [ 11.904863] scsi 6:0:0:0: Direct-Access CMOTECH Mass Storage 2.31 > PQ: 0 ANSI: 6 > > $ lsusb > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 003 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) > Interface [Integrated Module] > Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 005 Device 002: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse > Bus 005 Device 003: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor > Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 006 Device 002: ID 16d8:6803 CMOTECH Co., Ltd. CNU-680 CDMA EV-DO modem > Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > > Does it useful? After connecting the modem with cmotech-qtmodem. dmesg | grep tty [0.00] console [tty0] enabled [0.656896] :00:03.3: ttyS4 at I/O 0x5030 (irq = 17) is a 16550A [ 135.093413] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0 [ 135.095379] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB1 [ 135.097393] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB2 But the modem initialization never finished and the Connect button wasn't activated (was grayed out). >> Dan >> >>> openSUSE 11.3 RC1 >>> ModemManager-0.3-3.3.i586 >>> NetworkManager-0.8-4.4.i586 >>> >>> linux-wa5m:/ # killall -TERM modem-manager >>> linux-wa5m:/ # >>> linux-wa5m:/ # modem-manager --debug >>> ** Message: Loaded plugin Generic >>> ** Message: Loaded plugin Option High-Speed >>> ** Message: Loaded plugin Huawei >>> ** Message: Loaded plugin Option >>> ** Message: Loaded plugin Longcheer >>> ** Message: Loaded plugin AnyData >>> ** Message: Loaded plugin Nokia >>> ** Message: Loaded plugin MotoC >>> ** Message: Loaded plugin ZTE >>> ** Message: Loaded plugin Ericsson MBM >>> ** Message: Loaded plugin Sierra >>> ** Message: Loaded plugin Gobi >>> ** Message: Loaded plugin Novatel >>> ** Message: (ttyS4) opening serial device... >>> ** (modem-manager:6169): DEBUG: (ttyS4): probe requested by plugin 'Generic' >>> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >>> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >>> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >>> ** Message: (ttyS4) closing serial device... >>> >>> Sincerely Yours, >>> >>> Bin Li >>> >>> http://cn.opensuse.org >>> ___ >>> 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: Does NM support the C-motech D-50 or C-motech CNU-680?
On Tue, Jun 22, 2010 at 3:42 PM, Dan Williams wrote: > On Tue, 2010-06-22 at 14:53 +0800, Bin Li wrote: >> Hi, >> >> There is an entry 'CDMA Connection' found on the NetworkManager-gnome menu. >> Selecting this entry causes the NM applet to spin maybe a minute or so (until >> timeout?). But no dial-up connection is established, no connection lamp that >> illuminates, just the waiting lamp twinkling on the modem. > > I've got both a C-motech 550 (USB) and a 650 (Expresscard) and both are > correctly recognized by ModemManager. I'd assume the 680 isn't that > differnet. Can you post 'dmesg' output when the device is plugged in? > > The log output below doesn't actually show MM finding the device. If > it's really ttyS4, that indicates a PCMCIA device, not a > CardBus/ExpressCard one, which would be very unlikely. $ dmesg | grep tty [0.00] console [tty0] enabled [0.655932] :00:03.3: ttyS4 at I/O 0x5030 (irq = 17) is a 16550A and this command lists the D-50 onboard memory as previous shown $ dmesg | grep CMOTECH [2.742713] usb 6-1: Product: CMOTECH CDMA Technologies [2.742715] usb 6-1: Manufacturer: CMOTECH CO., LTD. [ 11.883876] scsi 5:0:0:0: CD-ROMCMOTECH Mass Storage 2.31 PQ: 0 ANSI: 0 CCS [ 11.904863] scsi 6:0:0:0: Direct-Access CMOTECH Mass Storage 2.31 PQ: 0 ANSI: 6 $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module] Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse Bus 005 Device 003: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 002: ID 16d8:6803 CMOTECH Co., Ltd. CNU-680 CDMA EV-DO modem Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Does it useful? > Dan > >> openSUSE 11.3 RC1 >> ModemManager-0.3-3.3.i586 >> NetworkManager-0.8-4.4.i586 >> >> linux-wa5m:/ # killall -TERM modem-manager >> linux-wa5m:/ # >> linux-wa5m:/ # modem-manager --debug >> ** Message: Loaded plugin Generic >> ** Message: Loaded plugin Option High-Speed >> ** Message: Loaded plugin Huawei >> ** Message: Loaded plugin Option >> ** Message: Loaded plugin Longcheer >> ** Message: Loaded plugin AnyData >> ** Message: Loaded plugin Nokia >> ** Message: Loaded plugin MotoC >> ** Message: Loaded plugin ZTE >> ** Message: Loaded plugin Ericsson MBM >> ** Message: Loaded plugin Sierra >> ** Message: Loaded plugin Gobi >> ** Message: Loaded plugin Novatel >> ** Message: (ttyS4) opening serial device... >> ** (modem-manager:6169): DEBUG: (ttyS4): probe requested by plugin 'Generic' >> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >> ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' >> ** Message: (ttyS4) closing serial device... >> >> Sincerely Yours, >> >> Bin Li >> >> http://cn.opensuse.org >> ___ >> 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
[PATCH] netconfig exit before waitpid
Dan, In openSUSE, when the netconfig update the resolv.conf successfully, it exit before waitpid, the waitpid() return -1 cause ECHILD(No child processes), so the resolv.conf was updated again by update_resolv_conf. Please review the patch, thanks! Sincerely Yours, Bin Li http://cn.opensuse.org diff --git a/src/named-manager/nm-named-manager.c b/src/named-manager/nm-named-manager.c index fc3b6e2..d8a2492 100644 --- a/src/named-manager/nm-named-manager.c +++ b/src/named-manager/nm-named-manager.c @@ -292,6 +292,9 @@ dispatch_netconfig (const char *domain, ret = waitpid (pid, NULL, 0); if (ret < 0 && errno == EINTR) goto again; + /* When the netconfig exist, the errno is ECHILD, it should return TRUE */ + else if (ret < 0 && errno == ECHILD) + return TRUE; return ret > 0; } ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [patch]NIS support
On Tue, Jun 22, 2010 at 5:20 PM, Dan Williams wrote: > On Tue, 2010-06-22 at 16:19 +0800, Bin Li wrote: >> Dan, >> >> Any idea about this patch? > > Sorry, got back from vacation late last week and still catching up. The > patch looks fine. Will review a bit more closely tomorrow and commit. > > Thanks! > Dan Thanks! And I update the patch again for compiling warning with g_free(). Please use the new patch. > >> On Tue, Jun 15, 2010 at 2:30 PM, Bin Li wrote: >> > Hi, >> > >> > This patch support the NIS configuration, and I don't expand the >> > NMIP4ConfigPrivate for the nis_domain, nis_servers. For simple, just >> > use g_object_set_data_full to bind the data with the ip4_config >> > object. >> > >> > Sincerely Yours, >> > >> > Bin Li >> > >> > http://cn.opensuse.org >> > >> ___ >> networkmanager-list mailing list >> networkmanager-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/networkmanager-list > > > diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 5cebaa8..9e32403 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -891,6 +891,18 @@ ip4_options_to_config (NMDHCPClient *self) nm_ip4_config_set_mtu (ip4_config, int_mtu); } + str = g_hash_table_lookup (priv->options, "new_nis_domain"); + if (str) { + nm_log_info (LOGD_DHCP4, " NIS domain '%s'", str); + g_object_set_data_full (G_OBJECT (ip4_config), "NISDOMAIN", g_strdup (str), g_free); + } + + str = g_hash_table_lookup (priv->options, "new_nis_servers"); + if (str) { + nm_log_info (LOGD_DHCP4, " NIS servers '%s'", str); + g_object_set_data_full (G_OBJECT (ip4_config), "NISSERVERS", g_strdup (str), g_free); + } + return ip4_config; error: diff --git a/src/named-manager/nm-named-manager.c b/src/named-manager/nm-named-manager.c index fc3b6e2..08f5ce3 100644 --- a/src/named-manager/nm-named-manager.c +++ b/src/named-manager/nm-named-manager.c @@ -98,6 +98,8 @@ typedef struct { GPtrArray *nameservers; const char *domain; GPtrArray *searches; + const char *nis_domain; + const char *nis_servers; } NMResolvConfData; static void @@ -148,6 +150,18 @@ merge_one_ip4_config (NMResolvConfData *rc, NMIP4Config *src) num = nm_ip4_config_get_num_searches (src); for (i = 0; i < num; i++) add_string_item (rc->searches, nm_ip4_config_get_search (src, i)); + + if (!rc->nis_domain && !rc->nis_servers) { + const char *tmp; + + tmp = g_object_get_data (G_OBJECT (src), "NISDOMAIN"); + if (tmp) + rc->nis_domain = g_strdup (tmp); + + tmp = g_object_get_data (G_OBJECT (src), "NISSERVERS"); + if (tmp) + rc->nis_servers = g_strdup (tmp); + } } static void @@ -240,6 +254,8 @@ dispatch_netconfig (const char *domain, char **searches, char **nameservers, const char *iface, +const char *nis_domain, +const char *nis_servers, GError **error) { char *str; @@ -283,6 +299,12 @@ dispatch_netconfig (const char *domain, g_free (str); } + if (nis_domain) + write_to_netconfig (fd, "NISDOMAIN", nis_domain); + + if (nis_servers) + write_to_netconfig (fd, "NISSERVERS", nis_servers); + close (fd); /* Wait until the process exits */ @@ -515,6 +537,8 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) rc.nameservers = g_ptr_array_new (); rc.domain = NULL; rc.searches = g_ptr_array_new (); + rc.nis_domain = NULL; + rc.nis_servers = NULL; if (priv->ip4_vpn_config) merge_one_ip4_config (&rc, priv->ip4_vpn_config); @@ -575,7 +599,10 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) #ifdef TARGET_SUSE if (success == FALSE) - success = dispatch_netconfig (domain, searches, nameservers, iface, error); + success = dispatch_netconfig (domain, searches, nameservers, iface, +rc.nis_domain, +rc.nis_servers, +error); #endif if (success == FALSE) @@ -589,6 +616,11 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) if (nameservers) g_strfreev (nameservers); + if (rc.nis_domain) + g_free ((gpointer)rc.nis_domain); + if (rc.nis_servers) + g_free ((gpointer)rc.nis_servers); + return success; } ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [patch]NIS support
Dan, Any idea about this patch? On Tue, Jun 15, 2010 at 2:30 PM, Bin Li wrote: > Hi, > > This patch support the NIS configuration, and I don't expand the > NMIP4ConfigPrivate for the nis_domain, nis_servers. For simple, just > use g_object_set_data_full to bind the data with the ip4_config > object. > > Sincerely Yours, > > Bin Li > > http://cn.opensuse.org > ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Does NM support the C-motech D-50 or C-motech CNU-680?
Hi, There is an entry 'CDMA Connection' found on the NetworkManager-gnome menu. Selecting this entry causes the NM applet to spin maybe a minute or so (until timeout?). But no dial-up connection is established, no connection lamp that illuminates, just the waiting lamp twinkling on the modem. openSUSE 11.3 RC1 ModemManager-0.3-3.3.i586 NetworkManager-0.8-4.4.i586 linux-wa5m:/ # killall -TERM modem-manager linux-wa5m:/ # linux-wa5m:/ # modem-manager --debug ** Message: Loaded plugin Generic ** Message: Loaded plugin Option High-Speed ** Message: Loaded plugin Huawei ** Message: Loaded plugin Option ** Message: Loaded plugin Longcheer ** Message: Loaded plugin AnyData ** Message: Loaded plugin Nokia ** Message: Loaded plugin MotoC ** Message: Loaded plugin ZTE ** Message: Loaded plugin Ericsson MBM ** Message: Loaded plugin Sierra ** Message: Loaded plugin Gobi ** Message: Loaded plugin Novatel ** Message: (ttyS4) opening serial device... ** (modem-manager:6169): DEBUG: (ttyS4): probe requested by plugin 'Generic' ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' ** (modem-manager:6169): DEBUG: (ttyS4): --> 'AT+GCAP' ** Message: (ttyS4) closing serial device... Sincerely Yours, Bin Li http://cn.opensuse.org ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Network Manager on MeeGo
On Fri, Jun 18, 2010 at 5:28 PM, Chen Xu wrote: > I am recently working on MeeGo( moblin 2.1 ), and want to develop a system > which uses wireless network. I hope to use network manager for it seems > easier to get my wireless hardware work properly by nm. However when type > ./configure --with-distro=/etc/moblin-release, I was told that my > distribution was not yet supported. > Is it possible to get nm work on MeeGo? > porktank The distro parameter should like suse, redhat, gentoo, debian, slackware, arch, etc. In suse, you can find the NetworkManager and network-manager-netbook packages in below link. https://build.opensuse.org/project/show?project=Moblin%3A2.2 > ___ > 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
[patch]NIS support
Hi, This patch support the NIS configuration, and I don't expand the NMIP4ConfigPrivate for the nis_domain, nis_servers. For simple, just use g_object_set_data_full to bind the data with the ip4_config object. Sincerely Yours, Bin Li http://cn.opensuse.org diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 5cebaa8..9e32403 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -891,6 +891,18 @@ ip4_options_to_config (NMDHCPClient *self) nm_ip4_config_set_mtu (ip4_config, int_mtu); } + str = g_hash_table_lookup (priv->options, "new_nis_domain"); + if (str) { + nm_log_info (LOGD_DHCP4, " NIS domain '%s'", str); + g_object_set_data_full (G_OBJECT (ip4_config), "NISDOMAIN", g_strdup (str), g_free); + } + + str = g_hash_table_lookup (priv->options, "new_nis_servers"); + if (str) { + nm_log_info (LOGD_DHCP4, " NIS servers '%s'", str); + g_object_set_data_full (G_OBJECT (ip4_config), "NISSERVERS", g_strdup (str), g_free); + } + return ip4_config; error: diff --git a/src/named-manager/nm-named-manager.c b/src/named-manager/nm-named-manager.c index fc3b6e2..68a3892 100644 --- a/src/named-manager/nm-named-manager.c +++ b/src/named-manager/nm-named-manager.c @@ -98,6 +98,8 @@ typedef struct { GPtrArray *nameservers; const char *domain; GPtrArray *searches; + const char *nis_domain; + const char *nis_servers; } NMResolvConfData; static void @@ -148,6 +150,18 @@ merge_one_ip4_config (NMResolvConfData *rc, NMIP4Config *src) num = nm_ip4_config_get_num_searches (src); for (i = 0; i < num; i++) add_string_item (rc->searches, nm_ip4_config_get_search (src, i)); + + if (!rc->nis_domain && !rc->nis_servers) { + const char *tmp; + + tmp = g_object_get_data (G_OBJECT (src), "NISDOMAIN"); + if (tmp) + rc->nis_domain = g_strdup (tmp); + + tmp = g_object_get_data (G_OBJECT (src), "NISSERVERS"); + if (tmp) + rc->nis_servers = g_strdup (tmp); + } } static void @@ -240,6 +254,8 @@ dispatch_netconfig (const char *domain, char **searches, char **nameservers, const char *iface, +const char *nis_domain, +const char *nis_servers, GError **error) { char *str; @@ -283,6 +299,12 @@ dispatch_netconfig (const char *domain, g_free (str); } + if (nis_domain) + write_to_netconfig (fd, "NISDOMAIN", nis_domain); + + if (nis_servers) + write_to_netconfig (fd, "NISSERVERS", nis_servers); + close (fd); /* Wait until the process exits */ @@ -515,6 +537,8 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) rc.nameservers = g_ptr_array_new (); rc.domain = NULL; rc.searches = g_ptr_array_new (); + rc.nis_domain = NULL; + rc.nis_servers = NULL; if (priv->ip4_vpn_config) merge_one_ip4_config (&rc, priv->ip4_vpn_config); @@ -575,7 +599,10 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) #ifdef TARGET_SUSE if (success == FALSE) - success = dispatch_netconfig (domain, searches, nameservers, iface, error); + success = dispatch_netconfig (domain, searches, nameservers, iface, +rc.nis_domain, +rc.nis_servers, +error); #endif if (success == FALSE) @@ -589,6 +616,11 @@ rewrite_resolv_conf (NMNamedManager *mgr, const char *iface, GError **error) if (nameservers) g_strfreev (nameservers); + if (rc.nis_domain) + g_free (rc.nis_domain); + if (rc.nis_servers) + g_free (rc.nis_servers); + return success; } ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
How to let NM prompt duplicate ip address?
Hi, When assigning a static ip address by NM, and this ip addresses already be in use. The NM don't prompt any information, I use the openSUSE 11.2. Any idea? Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Configure failed for checking Linux Wireless Extensions
Hi, When I configure the NetworkManager's code, I met Linux Wireless Extensions >= 18 ...no wireless-tools library and development headers >= 28pre9 not installed or not functional What package need to install? My wireless-tools are 30.pre8-5.1 in openSUSE 11.2. Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Do we have plan to do finer grained PolicyKit support for Networkmanager?
On Thu, Sep 17, 2009 at 2:11 PM, Tambet Ingo wrote: > On Thu, Sep 17, 2009 at 06:16, Bin Li wrote: > > To disallow users to define their own network configuration, I add a new > > permission, org.freedesktop.network-manager-settings.user.modify, then > link > > to the add button, when the user have permission, he can add it, vice > versa. > > I've met a problem, the user's connection save in the gconf, and the user > > can change the gconf with gconftool-2 without permission checking. > > So are there any method to resolve this problem? And is it okay to do > like > > this? Any idea? > > This makes no sense. You can already lock GConf so there's no need to > do anything for user settings. Just lock the /system/networking path > in gconf and the settings can't be changed. The only thing you could > improve, is to make sure nm-applet and nm-connection-editor handle it > more gracefully, ie "gray out" the apply button etc... > > Tambet, Thanks! And the lock means let the /system/networking store in mandatory directory? ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Do we have plan to do finer grained PolicyKit support for Networkmanager?
On Fri, Sep 4, 2009 at 1:29 AM, Dan Williams wrote: > On Tue, 2009-09-01 at 15:12 +0800, Bin Li wrote: > > Hi, > > > > NetworkManager currently only supports one PolicyKit privilege. That > > is whether a user is allowed to modify administrator defined > > connections or not. There is no way to disallow users to define their > > own network configurations. > > Right, we do want to do this. I think it's more possible with NM 0.8 > and PolicyKit 1.0 where the actual authentication is simpler. Having > finer grained permissions was always the plan. > > To disallow activation of user connections, we'd want to add a PolicyKit > permission for it, and then do the corresponding work in nm-manager.c's > impl_activate_connection() handler. We'd also want to make the Policy > object ignore user connections when selecting which connections to > connect to automatically, and also set a "permissions" bit in the system > settings service to indicate that user connections weren't allows so the > UI can update accordingly. > Dan, To disallow users to define their own network configuration, I add a new permission, org.freedesktop.network-manager-settings.user.modify, then link to the add button, when the user have permission, he can add it, vice versa. I've met a problem, the user's connection save in the gconf, and the user can change the gconf with gconftool-2 without permission checking. So are there any method to resolve this problem? And is it okay to do like this? Any idea? And I've a simple use-case that disallow workers on centrally administered machines to configure different network settings. Thanks! ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Do we have plan to do finer grained PolicyKit support for Networkmanager?
On Fri, Sep 4, 2009 at 1:29 AM, Dan Williams wrote: > On Tue, 2009-09-01 at 15:12 +0800, Bin Li wrote: > > Hi, > > > > NetworkManager currently only supports one PolicyKit privilege. That > > is whether a user is allowed to modify administrator defined > > connections or not. There is no way to disallow users to define their > > own network configurations. > > Right, we do want to do this. I think it's more possible with NM 0.8 > and PolicyKit 1.0 where the actual authentication is simpler. Having > finer grained permissions was always the plan. > > To disallow activation of user connections, we'd want to add a PolicyKit > permission for it, and then do the corresponding work in nm-manager.c's > impl_activate_connection() handler. We'd also want to make the Policy > object ignore user connections when selecting which connections to > connect to automatically, and also set a "permissions" bit in the system > settings service to indicate that user connections weren't allows so the > UI can update accordingly. > > > There's only org.freedesktop.network-manager-settings.system.modify, > > introduce something like > > org.freedesktop.network-manager-settings.user.modify so NM can > > determine whether it should accept user settings. > > > > Also we could separate the action in more grained, such as > > org.freedesktop.network-manager-settings.system.modify > > org.freedesktop.network-manager-settings.system.add > > org.freedesktop.network-manager-settings.system.delete > > I thought about that, but can't see a use-case. If you can *add* > connections, then that's the same thing as modifying them. It makes no > sense to deny modify, but allow add, since the user could just add the > connection they wanted instead of modifying an existing one. Delete by > itself also doesn't make a lot of sense. I view the three permissions > as a unit because in reality, I can't think of cases where you'd > actually need to split them up. > > > and the same for .user . > > > > > > And you may even want to specifically allow or disallow adding for > > specific network types like wired, wireless, VPN, etc. > > Definitely. There are now permissions in the system settings service > that the UI can check for, and this sort of thing would be used to allow > the UI to intelligently enable/disable elements. > > > You probably also want to have the ability to enable/disable wireless > > in general and enable/disable networking covered. > > Yes. I've already got permissions for allowing wifi connection sharing > defined, because that was already an issues we've run into. > > > You can default all of these to the current settings, but adding these > > would allow more lock-down opportunities. > > Maybe we should make the "permissions" field 64-bit instead of 32 :) I > guess we probably could have more than 32 permissions. That's fine as > we're still in flux. > > If you'd like to take a look at these, I can point you in the right > direction. > Yes, I would like to take a look at these, I just know about the code now, any idea? Thanks! > > Dan > > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Do we have plan to do finer grained PolicyKit support for Networkmanager?
Hi, NetworkManager currently only supports one PolicyKit privilege. That is whether a user is allowed to modify administrator defined connections or not. There is no way to disallow users to define their own network configurations. There's only org.freedesktop.network-manager-settings.system.modify, introduce something like org.freedesktop.network-manager-settings.user.modify so NM can determine whether it should accept user settings. Also we could separate the action in more grained, such as org.freedesktop.network-manager-settings.system.modify org.freedesktop.network-manager-settings.system.add org.freedesktop.network-manager-settings.system.delete and the same for .user . And you may even want to specifically allow or disallow adding for specific network types like wired, wireless, VPN, etc. You probably also want to have the ability to enable/disable wireless in general and enable/disable networking covered. You can default all of these to the current settings, but adding these would allow more lock-down opportunities. Any ideas? Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Why wireless is disable by radio killswitch?
On Fri, May 22, 2009 at 11:17 PM, Dan Williams wrote: > On Fri, 2009-05-22 at 17:40 +0800, Bin Li wrote: >> Hi, >> >> I've use NM 0.7.0.r4359, and from the lshal I could found "killswitch". >> $ lshal --version >> lshal version 0.5.12 >> >> udi = '/org/freedesktop/Hal/devices/dell_wlan_switch' >> info.capabilities = {'killswitch'} (string list) >> info.category = 'killswitch' (string) >> info.interfaces = {'org.freedesktop.Hal.Device.KillSwitch'} (string list) >> info.parent = '/org/freedesktop/Hal/devices/platform_dcdbas' (string) >> info.product = 'Dell WLAN Switch' (string) >> info.subsystem = 'unknown' (string) >> info.udi = '/org/freedesktop/Hal/devices/dell_wlan_switch' (string) >> killswitch.access_method = 'dell' (string) >> killswitch.type = 'wlan' (string) >> org.freedesktop.Hal.Device.KillSwitch.method_argnames = {'power', >> ''} (string list) >> org.freedesktop.Hal.Device.KillSwitch.method_execpaths = >> {'hal-system-killswitch-set-power', 'hal-system-killswitch-get-power'} >> (string list) >> org.freedesktop.Hal.Device.KillSwitch.method_names = {'SetPower', >> 'GetPower'} (string list) >> org.freedesktop.Hal.Device.KillSwitch.method_signatures = {'b', ''} >> (string list) >> >> But when I run "NetowrkManager --no-daemon" with root permission, it prompt: >> >> NetworkManager: eth1: driver is 'wl'. >> NetworkManager: eth1: driver does not support SSID scans >> (scan_capa 0x00). >> NetworkManager: Found new 802.11 WiFi device 'eth1'. >> NetworkManager: (eth1): exported as >> /org/freedesktop/Hal/devices/net_00_22_5f_53_60_01 >> NetworkManager: Wireless now disabled by radio killswitch >> >> And I've check the switch is on, the wireless led is light. >> >> When I use the wireless-tools, the iwlist and iwconfig, the wireless >> card could be configured successfully, and works fine. >> >> Any ideas? > > What have you got in /sys/class/rfkill? What's the output of both: > > cat /sys/class/rfkill/*/type > cat /sys/class/rfkill/*/state The rfkill module not install at all, I don't know why, so I use modprobe to install it. And the /sys/class/rfkill is an empty directory. > Next, we need to ask HAL what its killswitch state is: > > dbus-send --system --print-reply --dest=org.freedesktop.Hal > /org/freedesktop/Hal/devices/dell_wlan_switch > org.freedesktop.Hal.Device.KillSwitch.GetPower > > If that returns 'int32 0', then HAL believes your killswitch to be > turned on, and your radio should be disabled. That would be a HAL bug > then. Yes, 'int32 0' return whenever I disable or enable the radio switch, so is it a HAL bug? Thanks! > Dan > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Why wireless is disable by radio killswitch?
Hi, I've use NM 0.7.0.r4359, and from the lshal I could found "killswitch". $ lshal --version lshal version 0.5.12 udi = '/org/freedesktop/Hal/devices/dell_wlan_switch' info.capabilities = {'killswitch'} (string list) info.category = 'killswitch' (string) info.interfaces = {'org.freedesktop.Hal.Device.KillSwitch'} (string list) info.parent = '/org/freedesktop/Hal/devices/platform_dcdbas' (string) info.product = 'Dell WLAN Switch' (string) info.subsystem = 'unknown' (string) info.udi = '/org/freedesktop/Hal/devices/dell_wlan_switch' (string) killswitch.access_method = 'dell' (string) killswitch.type = 'wlan' (string) org.freedesktop.Hal.Device.KillSwitch.method_argnames = {'power', ''} (string list) org.freedesktop.Hal.Device.KillSwitch.method_execpaths = {'hal-system-killswitch-set-power', 'hal-system-killswitch-get-power'} (string list) org.freedesktop.Hal.Device.KillSwitch.method_names = {'SetPower', 'GetPower'} (string list) org.freedesktop.Hal.Device.KillSwitch.method_signatures = {'b', ''} (string list) But when I run "NetowrkManager --no-daemon" with root permission, it prompt: NetworkManager: eth1: driver is 'wl'. NetworkManager: eth1: driver does not support SSID scans (scan_capa 0x00). NetworkManager: Found new 802.11 WiFi device 'eth1'. NetworkManager: (eth1): exported as /org/freedesktop/Hal/devices/net_00_22_5f_53_60_01 NetworkManager: Wireless now disabled by radio killswitch And I've check the switch is on, the wireless led is light. When I use the wireless-tools, the iwlist and iwconfig, the wireless card could be configured successfully, and works fine. Any ideas? Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
How let the NM set the Hostname which set in DHCPD server?
Hi, NM support it or not? Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Where find the revision history?
svn status -v svn log xxx.c Does it help? Sincerely Yours, Bin Li http://cn.opensuse.org On Tue, Nov 18, 2008 at 11:02 AM, 代尔欣 <[EMAIL PROTECTED]> wrote: > Hi all, > I ever saw a revision history file for NetworkManager and Applet. In > these files, it describe what changes in different revision. e.g. for > NetworkManager revision history file, it have the changes for r2984 or r3202 > etc. I forgot where can get this file. I searched the whole source codes > folder and can't find it. Note it is not the "Changelog" file in the source > codes. The Changelog is only have change date but no revision number. Who > knows where can get the revision history file? > > Thanks!!! > > ___ > 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: [PATCH] Support default path for importing openvpn configuration file
On Sat, Oct 25, 2008 at 7:37 AM, Bin Li <[EMAIL PROTECTED]> wrote: > On Sat, Oct 25, 2008 at 5:36 AM, Dan Williams <[EMAIL PROTECTED]> wrote: >> On Fri, 2008-10-24 at 23:41 +0800, Bin Li wrote: >>> On Fri, Oct 24, 2008 at 10:53 PM, Dan Williams <[EMAIL PROTECTED]> wrote: >>> > On Fri, 2008-10-24 at 11:36 +0300, Tambet Ingo wrote: >>> >> It leaks 'default_path' variable in do_import(). I'd also use >>> >> g_build_filename() in handle_path_item() in case the path isn't >>> >> absolute. >>> > >>> > Yeah, other than that, looks good though. If you could post it again >>> > when this is cleaned up, then we can commit. >>> >>> Tambet, do you commit your change? Do you need I change it like your said? >> >> Yeah, if you could provide an updated patch that would be great. > Update the new patch. Feel free to change it, :) Dan, What's the status of this patch? ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH] Support default path for importing openvpn configuration file
On Sat, Oct 25, 2008 at 5:36 AM, Dan Williams <[EMAIL PROTECTED]> wrote: > On Fri, 2008-10-24 at 23:41 +0800, Bin Li wrote: >> On Fri, Oct 24, 2008 at 10:53 PM, Dan Williams <[EMAIL PROTECTED]> wrote: >> > On Fri, 2008-10-24 at 11:36 +0300, Tambet Ingo wrote: >> >> It leaks 'default_path' variable in do_import(). I'd also use >> >> g_build_filename() in handle_path_item() in case the path isn't >> >> absolute. >> > >> > Yeah, other than that, looks good though. If you could post it again >> > when this is cleaned up, then we can commit. >> >> Tambet, do you commit your change? Do you need I change it like your said? > > Yeah, if you could provide an updated patch that would be great. Update the new patch. Feel free to change it, :) > Thanks! > Dan > > > --- import-export.c.orig 2008-09-16 10:53:41.0 +0800 +++ import-export.c 2008-10-25 07:33:22.0 +0800 @@ -61,9 +61,10 @@ const char *tag, const char *key, GHashTable *hash, + const char *path, char **leftover) { - char *tmp, *file, *unquoted, *p; + char *tmp, *file, *unquoted, *p, *full_path; gboolean quoted = FALSE; if (leftover) @@ -77,6 +78,12 @@ if (!strlen (file)) goto out; + /* If file isn't an absolute file name, add the default path */ + if (!g_path_is_absolute (file)) { + full_path = g_build_filename (path, file); + file = full_path; + } + /* Simple unquote */ if ((file[0] == '"') || (file[0] == '\'')) { quoted = TRUE; @@ -108,6 +115,8 @@ out: g_free (tmp); + if (full_path) + g_free (full_path); return TRUE; } @@ -162,6 +171,7 @@ gboolean have_client = FALSE, have_remote = FALSE; gboolean have_pass = FALSE, have_sk = FALSE; const char *ctype = NULL; + char *default_path; connection = nm_connection_new (); s_con = NM_SETTING_CONNECTION (nm_setting_connection_new ()); @@ -170,6 +180,10 @@ s_vpn = NM_SETTING_VPN (nm_setting_vpn_new ()); s_vpn->service_type = g_strdup (NM_DBUS_SERVICE_OPENVPN); + /* Get the default path for ca, cert, key file, these files maybe + * in same path with the configuration file */ + default_path = g_path_get_dirname (path); + s_con->id = g_path_get_basename (path); last_dot = strrchr (s_con->id, '.'); if (last_dot) @@ -252,17 +266,17 @@ continue; } - if (handle_path_item (*line, CA_TAG, NM_OPENVPN_KEY_CA, s_vpn->data, NULL)) + if (handle_path_item (*line, CA_TAG, NM_OPENVPN_KEY_CA, s_vpn->data, default_path, NULL)) continue; - if (handle_path_item (*line, CERT_TAG, NM_OPENVPN_KEY_CERT, s_vpn->data, NULL)) + if (handle_path_item (*line, CERT_TAG, NM_OPENVPN_KEY_CERT, s_vpn->data, default_path, NULL)) continue; - if (handle_path_item (*line, KEY_TAG, NM_OPENVPN_KEY_KEY, s_vpn->data, NULL)) + if (handle_path_item (*line, KEY_TAG, NM_OPENVPN_KEY_KEY, s_vpn->data, default_path, NULL)) continue; if (handle_path_item (*line, SECRET_TAG, NM_OPENVPN_KEY_STATIC_KEY, - s_vpn->data, &leftover)) { + s_vpn->data, default_path, &leftover)) { handle_direction ("secret", NM_OPENVPN_KEY_STATIC_KEY_DIRECTION, leftover, @@ -271,7 +285,7 @@ } if (handle_path_item (*line, TLS_AUTH_TAG, NM_OPENVPN_KEY_TA, - s_vpn->data, &leftover)) { + s_vpn->data, default_path, &leftover)) { handle_direction ("tls-auth", NM_OPENVPN_KEY_TA_DIR, leftover, @@ -315,6 +329,9 @@ have_pass = TRUE; } + if (default_path) + g_free (default_path); + if (g_hash_table_lookup (s_vpn->data, NM_OPENVPN_KEY_STATIC_KEY)) have_sk = TRUE; ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH] Support default path for importing openvpn configuration file
On Fri, Oct 24, 2008 at 10:53 PM, Dan Williams <[EMAIL PROTECTED]> wrote: > On Fri, 2008-10-24 at 11:36 +0300, Tambet Ingo wrote: >> It leaks 'default_path' variable in do_import(). I'd also use >> g_build_filename() in handle_path_item() in case the path isn't >> absolute. > > Yeah, other than that, looks good though. If you could post it again > when this is cleaned up, then we can commit. Tambet, do you commit your change? Do you need I change it like your said? > Thanks! > Dan > > > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: nm-applet build failed
It's ok now, missing the policykit-gnome-devel package. Sorry for Spam. Sincerely Yours, Bin Li http://cn.opensuse.org On Fri, Oct 24, 2008 at 6:16 PM, Bin Li <[EMAIL PROTECTED]> wrote: > Hi, > it's in r965 and the NM in r4209. > > In file included from nm-connection-editor.c:59: > nm-connection-editor.h:45: error: expected specifier-qualifier-list > before 'PolKitGnomeToggleAction' > nm-connection-editor.c: In function 'nm_connection_editor_update_title': > nm-connection-editor.c:97: error: 'NMConnectionEditor' has no member > named 'window' > nm-connection-editor.c:100: error: 'NMConnectionEditor' has no member > named 'window' > nm-connection-editor.c: In function 'ui_to_setting': > nm-connection-editor.c:114: error: 'NMConnectionEditor' has no member > named 'xml' > nm-connection-editor.c:123: error: 'NMConnectionEditor' has no member > named 'xml' > nm-connection-editor.c:127: error: 'NMConnectionEditor' has no member > named 'system_button' > nm-connection-editor.c: In function 'connection_editor_validate': > nm-connection-editor.c:144: error: 'NMConnectionEditor' has no member > named 'pages' > nm-connection-editor.c:161: error: 'NMConnectionEditor' has no member > named 'ok_button' > nm-connection-editor.c: In function 'nm_connection_editor_init': > > Sincerely Yours, > > Bin Li > > http://cn.opensuse.org > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
nm-applet build failed
Hi, it's in r965 and the NM in r4209. In file included from nm-connection-editor.c:59: nm-connection-editor.h:45: error: expected specifier-qualifier-list before 'PolKitGnomeToggleAction' nm-connection-editor.c: In function 'nm_connection_editor_update_title': nm-connection-editor.c:97: error: 'NMConnectionEditor' has no member named 'window' nm-connection-editor.c:100: error: 'NMConnectionEditor' has no member named 'window' nm-connection-editor.c: In function 'ui_to_setting': nm-connection-editor.c:114: error: 'NMConnectionEditor' has no member named 'xml' nm-connection-editor.c:123: error: 'NMConnectionEditor' has no member named 'xml' nm-connection-editor.c:127: error: 'NMConnectionEditor' has no member named 'system_button' nm-connection-editor.c: In function 'connection_editor_validate': nm-connection-editor.c:144: error: 'NMConnectionEditor' has no member named 'pages' nm-connection-editor.c:161: error: 'NMConnectionEditor' has no member named 'ok_button' nm-connection-editor.c: In function 'nm_connection_editor_init': Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
nm-pptp missing common-gnome in configure.in
Hi, Now can't build the common-gnome, in configure.in should add common-gnome/Makefile Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[PATCH] Support default path for importing openvpn configuration file
Hi, Generally the openvpn configuration file set the ca, cert and key file without the absolute path, and the openvpn could find these file in the same path of the configuration file. Just run this: # openvpn --config Client-config.ovpn openvpn works fine. Client-config.ovpn, ca.crt client.crt and client.key in the same directory. And when I import the openvpn configuration file, the nm-connection-editor couldn't set the ca, cert and key file. This patch will works for it. Sincerely Yours, Bin Li http://cn.opensuse.org --- import-export.c.orig 2008-09-16 10:53:41.0 +0800 +++ import-export.c 2008-10-24 12:02:34.0 +0800 @@ -61,9 +61,10 @@ const char *tag, const char *key, GHashTable *hash, + const char *path, char **leftover) { - char *tmp, *file, *unquoted, *p; + char *tmp, *file, *unquoted, *p, *full_path; gboolean quoted = FALSE; if (leftover) @@ -77,6 +78,12 @@ if (!strlen (file)) goto out; + /* If file isn't an absolute file name, add the default path */ + if (!g_path_is_absolute (file)) { + full_path = g_strdup_printf ("%s/%s", path, file); + file = full_path; + } + /* Simple unquote */ if ((file[0] == '"') || (file[0] == '\'')) { quoted = TRUE; @@ -108,6 +115,8 @@ out: g_free (tmp); + if (full_path) + g_free (full_path); return TRUE; } @@ -162,6 +171,7 @@ gboolean have_client = FALSE, have_remote = FALSE; gboolean have_pass = FALSE, have_sk = FALSE; const char *ctype = NULL; + char *default_path; connection = nm_connection_new (); s_con = NM_SETTING_CONNECTION (nm_setting_connection_new ()); @@ -170,6 +180,10 @@ s_vpn = NM_SETTING_VPN (nm_setting_vpn_new ()); s_vpn->service_type = g_strdup (NM_DBUS_SERVICE_OPENVPN); + /* Get the default path for ca, cert, key file, these files maybe + * in same path with the configuration file */ + default_path = g_path_get_dirname (path); + s_con->id = g_path_get_basename (path); last_dot = strrchr (s_con->id, '.'); if (last_dot) @@ -252,17 +266,17 @@ continue; } - if (handle_path_item (*line, CA_TAG, NM_OPENVPN_KEY_CA, s_vpn->data, NULL)) + if (handle_path_item (*line, CA_TAG, NM_OPENVPN_KEY_CA, s_vpn->data, default_path, NULL)) continue; - if (handle_path_item (*line, CERT_TAG, NM_OPENVPN_KEY_CERT, s_vpn->data, NULL)) + if (handle_path_item (*line, CERT_TAG, NM_OPENVPN_KEY_CERT, s_vpn->data, default_path, NULL)) continue; - if (handle_path_item (*line, KEY_TAG, NM_OPENVPN_KEY_KEY, s_vpn->data, NULL)) + if (handle_path_item (*line, KEY_TAG, NM_OPENVPN_KEY_KEY, s_vpn->data, default_path, NULL)) continue; if (handle_path_item (*line, SECRET_TAG, NM_OPENVPN_KEY_STATIC_KEY, - s_vpn->data, &leftover)) { + s_vpn->data, default_path, &leftover)) { handle_direction ("secret", NM_OPENVPN_KEY_STATIC_KEY_DIRECTION, leftover, @@ -271,7 +285,7 @@ } if (handle_path_item (*line, TLS_AUTH_TAG, NM_OPENVPN_KEY_TA, - s_vpn->data, &leftover)) { + s_vpn->data, default_path, &leftover)) { handle_direction ("tls-auth", NM_OPENVPN_KEY_TA_DIR, leftover, ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: import vpn configuration failed
Dan, On Tue, Sep 30, 2008 at 6:04 AM, Dan Williams <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-28 at 17:38 +0800, Bin Li wrote: >> Hi, >> >> When I import a configuration file in the NM-vpnc, it prompt >> >> (nm-connection-editor:29232): Pango-WARNING **: Invalid UTF-8 string >> passed to pango_layout_set_text() >> >> (nm-connection-editor:29232): Pango-WARNING **: Invalid UTF-8 string >> passed to pango_layout_set_text() > > What's the 'Description' of the .pcf file and is it UTF-8 safe? Are any > of the strings in the file non-UTF8 safe? If not, what encoding are > they in? Sorry reply lately, and I just get the information from the customer, and the encoding is ISO-8859-15, they got it from the IT department. Is there any other way to get the encoding when import this file? ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[PATCH] nm-pptp saving password
Hi, This patch add the password entry in the configuration and save the password into keyring like nm-openvpn, also add the callback function like delete_connection and save_secrets which cause nm-connection-editor crashing. Sincerely Yours, Bin Li http://cn.opensuse.org diff --git a/vpn-daemons/pptp/common-gnome/Makefile.am b/vpn-daemons/pptp/common-gnome/Makefile.am new file mode 100644 index 000..4a5d6c7 --- /dev/null +++ b/vpn-daemons/pptp/common-gnome/Makefile.am @@ -0,0 +1,17 @@ +lib_LTLIBRARIES=libnm-pptp-common-gnome.la + +libnm_pptp_common_gnome_la_CPPFLAGS = \ + $(NM_UTILS_CFLAGS) \ + $(GLIB_CFLAGS) \ + $(GNOMEKEYRING_CFLAGS) \ + -DG_DISABLE_DEPRECATED + +libnm_pptp_common_gnome_la_SOURCES= \ + keyring-helpers.c \ + keyring-helpers.h + +libnm_pptp_common_gnome_la_LIBADD = \ + $(NM_UTILS_LIBS) \ + $(GLIB_LIBS) \ + $(GNOMEKEYRING_LIBS) + diff --git a/vpn-daemons/pptp/common-gnome/keyring-helpers.c b/vpn-daemons/pptp/common-gnome/keyring-helpers.c new file mode 100644 index 000..cfb10ef --- /dev/null +++ b/vpn-daemons/pptp/common-gnome/keyring-helpers.c @@ -0,0 +1,158 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ +/* NetworkManager Wireless Applet -- Display wireless access points and allow user control + * + * Dan Williams <[EMAIL PROTECTED]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * (C) Copyright 2004 - 2008 Red Hat, Inc. + */ + +#include +#include + +#include + +#include "keyring-helpers.h" +#include "src/nm-pptp-service.h" + +#define KEYRING_UUID_TAG "connection-uuid" +#define KEYRING_SN_TAG "setting-name" +#define KEYRING_SK_TAG "setting-key" + +char * +keyring_helpers_lookup_secret (const char *vpn_uuid, + const char *secret_name, + gboolean *is_session) +{ + GList *found_list = NULL; + GnomeKeyringResult ret; + GnomeKeyringFound *found; + char *secret; + + ret = gnome_keyring_find_itemsv_sync (GNOME_KEYRING_ITEM_GENERIC_SECRET, + &found_list, + KEYRING_UUID_TAG, + GNOME_KEYRING_ATTRIBUTE_TYPE_STRING, + vpn_uuid, + KEYRING_SN_TAG, + GNOME_KEYRING_ATTRIBUTE_TYPE_STRING, + NM_SETTING_VPN_SETTING_NAME, + KEYRING_SK_TAG, + GNOME_KEYRING_ATTRIBUTE_TYPE_STRING, + secret_name, + NULL); + if ((ret != GNOME_KEYRING_RESULT_OK) || (g_list_length (found_list) == 0)) + return NULL; + + found = (GnomeKeyringFound *) found_list->data; + + if (is_session) { + if (strcmp (found->keyring, "session") == 0) + *is_session = TRUE; + else + *is_session = FALSE; + } + + secret = found->secret ? gnome_keyring_memory_strdup (found->secret) : NULL; + gnome_keyring_found_list_free (found_list); + + return secret; +} + +GnomeKeyringResult +keyring_helpers_save_secret (const char *vpn_uuid, + const char *vpn_name, + const char *keyring, + const char *secret_name, + const char *secret) +{ + char *display_name; + GnomeKeyringResult ret; + GnomeKeyringAttributeList *attrs = NULL; + guint32 id = 0; + + display_name = g_strdup_printf ("VPN %s secret for %s/%s/" NM_SETTING_VPN_SETTING_NAME, + secret_name, + vpn_name, + NM_DBUS_SERVICE_PPTP); + + attrs = gnome_keyring_attribute_list_new (); + gnome_keyring_attribute_list_append_string (attrs, + KEYRING_UUID_TAG, + vpn_uuid); + gnome_keyring_attribute_list_append_string (attrs, + KEYRING_SN_TAG, + NM_SETTING_VPN_SETTING_NAME); + gnome_keyring_attribute_list_append_string (attrs, +
import vpn configuration failed
Hi, When I import a configuration file in the NM-vpnc, it prompt (nm-connection-editor:29232): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() (nm-connection-editor:29232): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() ** (nm-connection-editor:29232): WARNING **: add_connection: unhandled connection scope 0! First, does the connection name support utf-8 character? Second, should the plugin add scope? User or System for importing configuration file. And I add below code, it no warning, but still import failed. NMConnectionScope scope = NM_CONNECTION_SCOPE_USER; nm_connection_add_setting (connection, NM_SETTING (s_con)); nm_connection_set_scope (connection, scope); // Add scope Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org test.pcf Description: application/font-pcf ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Connecting vpn server failed with "not allowed to own the service"
On Fri, Sep 26, 2008 at 1:16 PM, Tambet Ingo <[EMAIL PROTECTED]> wrote: > On Fri, Sep 26, 2008 at 6:37 AM, Bin Li <[EMAIL PROTECTED]> wrote: >> When I build the plugin and make install it, sometimes it prompt below >> info when I connecting the VPN server. >> >> ** (process:5919): WARNING **: constructor(): Connection >> ":1.9266" is not allowed to own the service >> "org.freedesktop.NetworkManager.openvpn" due to security policies in >> the configuration file >> >> ** (process:5919): CRITICAL **: [1222400073.796200] main (): >> Create new openvpn_plugin failed! >> >> Why this happen? And in normal it's no this issue. How to resolve it? >> I just restart the dbus, but the dbus affects a lot of other process. > > It's a DBus problem, sometimes when you change the content of > /etc/dbus-1/system.d/ it'll loose it's configuration. Send the HUP > signal to DBus to make it re-read the configuration. > Thanks! ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Connecting vpn server failed with "not allowed to own the service"
Hi, When I build the plugin and make install it, sometimes it prompt below info when I connecting the VPN server. ** (process:5919): WARNING **: constructor(): Connection ":1.9266" is not allowed to own the service "org.freedesktop.NetworkManager.openvpn" due to security policies in the configuration file ** (process:5919): CRITICAL **: [1222400073.796200] main (): Create new openvpn_plugin failed! Why this happen? And in normal it's no this issue. How to resolve it? I just restart the dbus, but the dbus affects a lot of other process. Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: nm-connection-editor crash when adding or deleting vpn connection
On Tue, Sep 23, 2008 at 4:36 PM, Tambet Ingo <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 5:51 AM, Bin Li <[EMAIL PROTECTED]> wrote: >> Yes, I've update the NM r4088 and applet r899, when I adding the >> openvpn configuration in nm-connection-editor, it same issue. And >> start again nm-connection-editor, you could found the configuration >> already be added. When you delete this configuration, it prompt: >> >> ** (nm-applet:24554): WARNING **: nma_gconf_connection_changed: >> Invalid connection /system/networking/connections/10: >> 'NMSettingIP4Config' / 'method' invalid: 2 >> Segmentation fault > > The warning isn't directly related to the crash. It crashes because > openvpn plugin does not implement "delete_connection" and > "save_secrets" methods. It would be an easy fix to just not make it > crash, but while looking into it, I remembered something else I had > meant to take care of: openvpn properties page does not have any way > of setting passwords. > > I'm on it and will post a patch later today. > > Tambet Thanks. And I'm just adding the callback function now, it don't crash again. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: nm-connection-editor crash when adding or deleting vpn connection
On Mon, Sep 22, 2008 at 11:26 PM, Dan Williams <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-21 at 22:47 +0800, Bin Li wrote: >> Hi, >> >> I update the upstream and found this issue, the prompt information like: >> >> ** (nm-connection-editor:2306): WARNING **: Unhandled setting secret >> type (write) 'vpn/secrets' : 'GHashTable_gchararray+gchararray_' > > Hmm, are you sure you're using the latest nm-applet svn as well? The > vpn/secrets type here looks correct, which might indicate that the > applet itself wasn't updated in sync with NM. > Yes, I've update the NM r4088 and applet r899, when I adding the openvpn configuration in nm-connection-editor, it same issue. And start again nm-connection-editor, you could found the configuration already be added. When you delete this configuration, it prompt: ** (nm-applet:24554): WARNING **: nma_gconf_connection_changed: Invalid connection /system/networking/connections/10: 'NMSettingIP4Config' / 'method' invalid: 2 Segmentation fault Thanks! ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
nm-connection-editor crash when adding or deleting vpn connection
Hi, I update the upstream and found this issue, the prompt information like: ** (nm-connection-editor:2306): WARNING **: Unhandled setting secret type (write) 'vpn/secrets' : 'GHashTable_gchararray+gchararray_' Thanks! Sincerely Yours, Bin Li http://cn.opensuse.org ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[patch] nm-pptp without "nm-pptp-pppd-service.xml" when make dist
Hi, --- src/Makefile.am.orig2008-07-22 10:17:16.0 +0800 +++ src/Makefile.am 2008-07-22 13:30:42.0 +0800 @@ -22,7 +22,8 @@ nm_pptp_service_SOURCES = \ nm-pptp-service.c \ - nm-pptp-service.h + nm-pptp-service.h \ + nm-pptp-pppd-service.xml nm-pptp-pppd-service-glue.h: $(top_srcdir)/src/nm-pptp-pppd-service.xml dbus-binding-tool --prefix=nm_pptp_pppd_service --mode=glib-server --output=$@ $< It works fine, but I'm not sure if the position of xml file is accord with the automake standard, feel free to change it. Sincerely Yours, Bin Li http://cn.opensuse.org --- src/Makefile.am.orig 2008-07-22 10:17:16.0 +0800 +++ src/Makefile.am 2008-07-22 13:30:42.0 +0800 @@ -22,7 +22,8 @@ nm_pptp_service_SOURCES = \ nm-pptp-service.c \ -nm-pptp-service.h +nm-pptp-service.h \ +nm-pptp-pppd-service.xml nm-pptp-pppd-service-glue.h: $(top_srcdir)/src/nm-pptp-pppd-service.xml dbus-binding-tool --prefix=nm_pptp_pppd_service --mode=glib-server --output=$@ $< ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list