On Tue, 2011-04-12 at 11:36 +0200, Vratislav Podzimek wrote: > On Tue, 2011-04-12 at 11:30 +0200, Vratislav Podzimek wrote: > > Hi, > > I am writing a simple Python client (or module) which would create a new > > wireless connection via NM D-Bus Interface. I have no problems with > > uprotected networks and also with WPA protected networks. But I cannot > > make it working with WEP. According to /var/log/messages there is a > > problem with WEP key: > > ifcfg-rh: > > parsing /etc/sysconfig/network-scripts/ifcfg-anaconda_wifi_test4 ... > > ifcfg-rh: error: Invalid WEP key length. > > > > According to > > http://www.mail-archive.com/[email protected]/msg07935.html > > I repeat characters of passphrase to have 64 chars and then I use md5 > > hex digest. > > e.g.: > > passphrase: 'abcde' > > repeated: > > 'abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcd' > > > > _______________________________________________ > > networkmanager-list mailing list > > [email protected] > > http://mail.gnome.org/mailman/listinfo/networkmanager-list > Sorry, I accidentaly hit CTLR+ENTER instead of ENTER. So here is the > rest: > hexdigest: '04e49e18f78a0111df976d1a5a348651' > > Is it possible to use this way or is there another way to be used for > getting a wep-key0 for the Connection.Settings dictionary?
If you have a passphrase, you can send the passphrase as it is, and NM will do the hashing. But to ensure that the hashing is done correctly, set the "wep-key-type" item appropriately. See the following for more details of that item: http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html Dan _______________________________________________ networkmanager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
