Bug 719922

Summary: Connection profile is created even if admin authentication fails or is canceled
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Koten <jkoten>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: rkhan, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-19 18:13:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Koten 2011-07-08 12:36:48 UTC
Description of problem:
If creation of Ad-Hoc network is restricted (see bug 705806) and the required authentication fails, the connection profile is still created and present in NM connection editor. It's created even when creation is not allowed at all. 

Version-Release number of selected component (if applicable):
NetworkManager-0.8.1-9.el6_1.1

How reproducible:
100%

Steps to Reproduce:
1. Modify
/usr/share/polkit-1/actions/org.freedesktop.network-manager-settings.system.policy
line 299 from:
<allow_active>any</allow_active>
to:
<allow_active>auth_admin</allow_active>
2.  Create an insecure wireless network by clicking on the nm-applet, go to
Create New Wireless Network
Network name: test
Wireless security: none
Hit Create
3. When authentication dialog appears enter wrong passwd or hit cancel.
4. Open nm-connection-editor  
  
Actual results:
Connection profile "test" is present.

Expected results:
No profile is created.

Comment 1 RHEL Program Management 2011-10-07 16:00:18 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 Dan Williams 2013-02-19 18:13:14 UTC
Yes, the profile is created, but the user is never able to start that wifi network; they are always denied when they attempt to do so.  To prevent the user from changing any network connections, the "system.modify" permission can be changed for that user.