[gollem] Multiple Group related Samba backends

Jan Schneider jan at horde.org
Wed Jun 7 08:13:32 PDT 2006


Zitat von Murray Trainer <mtrainer at central-data.net>:

> Hi All,
>
> Our LDAP users home Samba shares are accessible via Gollem - that works
> fine.  We also have some group Samba shares that only members of the
> LDAP group can access.  I have setup Horde to access groups via LDAP and
> that works fine.  I have setup a smb backend for one of the group Samba
> shares and only members of the group can access it.  That's all great
> but we don't want anyone who is not a member of the group to even see
> the name of the share.  Any ideas how to achieve this?

require_once 'Horde/Group.php';
$groups = &Group::singleton();
if ($groups->userIsInGroup(Auth::getAuth(), $group_dn)) {
     // Put share definition for $group_dn here.
}

(untested)

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the gollem mailing list