[Bug 741186] Re: users-admin not testable with ldtp and policykit
Not a release critical bug at all, and dropping priority as this doesn't directly affect users and also is slowly getting obsoleted by new GNOME 3 technology. ** Changed in: system-tools-backends (Ubuntu Natty) Status: New => Won't Fix ** Changed in: system-tools-backends (Ubuntu) Importance: High => Low ** Changed in: system-tools-backends (Ubuntu) Status: New => Triaged ** Changed in: ldtp (Ubuntu Natty) Status: New => Won't Fix ** Changed in: ldtp (Ubuntu) Status: New => Triaged ** Changed in: ldtp (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to system-tools-backends in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
BTW, the official docs are at http://hal.freedesktop.org/docs/polkit/polkit.8.html or man polkit. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to system-tools-backends in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
There aren't many actions in that file. You can just change "no" and "allow_admin_keep" for the org.freedesktop.systemtoolsbackends.set action to "yes", and manual authentication won't be required. The lines to edit are: Manage system configuration You need to authenticate to modify the system configuration no auth_admin_keep But this is assuming you can do that change only on trusted test machines or in virtual hosts, because it means any user will be able to run those actions, including changing the root password and things like that... :-( -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to system-tools-backends in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
Milan, Thank you for the explanation. Can you provide details as what to change in: /usr/share/polkit-1/actions/org.freedesktop.SystemToolsBackends.policy Which specific Defaults nodes/values to add/change? Thanks! -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to system-tools-backends in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
Yeah, this is because of the way the system-tools-backends and liboobs are designed: oobs_object_authenticate() is a synchronous call. I don't think this will be fixed since the gnome-system-tools are deprecated in favor of GNOME3's control center - unless you redesign the whole API *or* introduce a hack so that users-admin first authenticates via a direct call to PolicyKit (action org.freedesktop.systemtoolsbackends.set) from around src/user- settings.c:1050. But that would only work for that precise action and would be a ugly hack. Not sure it's worth it... Easier would be to setup your test machine so that action org.freedesktop.systemtoolsbackends.set is allowed without authentication. ** Package changed: gnome-system-tools (Ubuntu Natty) => system-tools- backends (Ubuntu Natty) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to system-tools-backends in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
** Also affects: ldtp (Ubuntu) Importance: Undecided Status: New ** Description changed: Binary package hint: gnome-system-tools While running an automated test, the tools hang when following these steps: 1. Open users-admin 2. Click Add (user) * While trying to interact with authentication dialog, the scripts hang. This does not occur with the other apps we test that require authentication with polkit - Be patient for the timeout error dialog to display + Be patient for the timeout error dialog to display - Remember to enable accessibility + Remember to enable accessibility and install python-ldtp Simple Test Script: import ldtp import sys # must have a11y enabled # arg1 is your password password = sys.argv[1] ldtp.launchapp('users-admin', delay=3) ldtp.click('dlgUsersSettings', 'btnAdd') dlgAuthenticate = 'dlgAthenticate' ldtp.waittillguiexist(dlgAuthenticate) ldtp.settextvalue(dlgAuthenticate, 'txtPassword', password) ldtp.click(dlgAuthenticate, 'btnAuthenticate') ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: gnome-system-tools 2.32.0-0ubuntu6 ProcVersionSignature: Ubuntu 2.6.38-7.37-generic 2.6.38 Uname: Linux 2.6.38-7-generic i686 Architecture: i386 Date: Wed Mar 23 12:00:39 2011 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110302) ProcEnviron: LANGUAGE=en_US:en LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gnome-system-tools UpgradeStatus: Upgraded to natty on 2011-03-22 (1 days ago) ** Description changed: Binary package hint: gnome-system-tools While running an automated test, the tools hang when following these steps: 1. Open users-admin 2. Click Add (user) * While trying to interact with authentication dialog, the scripts hang. This does not occur with the other apps we test that require authentication with polkit Be patient for the timeout error dialog to display - Remember to enable accessibility and install python-ldtp + Enable accessibility and install python-ldtp Simple Test Script: import ldtp import sys # must have a11y enabled # arg1 is your password password = sys.argv[1] ldtp.launchapp('users-admin', delay=3) ldtp.click('dlgUsersSettings', 'btnAdd') dlgAuthenticate = 'dlgAthenticate' ldtp.waittillguiexist(dlgAuthenticate) ldtp.settextvalue(dlgAuthenticate, 'txtPassword', password) ldtp.click(dlgAuthenticate, 'btnAuthenticate') ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: gnome-system-tools 2.32.0-0ubuntu6 ProcVersionSignature: Ubuntu 2.6.38-7.37-generic 2.6.38 Uname: Linux 2.6.38-7-generic i686 Architecture: i386 Date: Wed Mar 23 12:00:39 2011 InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110302) ProcEnviron: LANGUAGE=en_US:en LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: gnome-system-tools UpgradeStatus: Upgraded to natty on 2011-03-22 (1 days ago) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-system-tools in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 741186] Re: users-admin not testable with ldtp and policykit
** Summary changed: - users-admin breaks with polkit + users-admin not testable with ldtp and policykit -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-system-tools in Ubuntu. https://bugs.launchpad.net/bugs/741186 Title: users-admin not testable with ldtp and policykit -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs