Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Get USB with OpenLDAP + DBUS working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
lfa-tux
n00b
n00b


Joined: 07 Apr 2008
Posts: 1

PostPosted: Mon Apr 07, 2008 1:04 pm    Post subject: HOWTO: Get USB with OpenLDAP + DBUS working Reply with quote

In the following I will assume, that you have already installed USB and got it working with a local useraccount. Also check the wiki: http://gentoo-wiki.com/HOWTO_Adding_a_Samba_Server_into_an_existing_AD_Domain

The main goal of this thread is to get USB-Flashdrives working with an Active-Directory authentification via openldap. I don't know were exactly the problem is located, but I suppose dbus plays the crucial part in it. What happens is that if you manage the groups via the /etc/security/group.conf file, dbus won't recognise these groups.

This could be a group.conf entry:

*;*;*;Al0000-2400;floppy,audio,cdrom,video,usb,plugdev,users,disk,wheel

As you see, the plugdev-group is also provided by this file, therefore dbus supposes, that the remotely authenticated user isn't a member of this.

A solution for this problem that works for me is the following:

- Create a group in the Active Directory and add all users that should be member of the plugdev-group.
- Insert the following lines in the /etc/dbus-1/system.d/hal.conf on each client, in which GROUPNAME stands for the group you created in the AD:
Code:

  [...]
  <polixy group="plugdev">
  [...]
  </policy>
 
#Insert this here:

  <policy group="GROUPNAME">
        <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
        <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  </policy>
  <policy group="GROUPNAME">
        <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
        <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  [...]



Now restart hald and dbus. Maybe also a restart of the machine is required. USB-Flashdrive automounting and a couple of other dbus-managed devices should work now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum