[racktables-users] Re: Tagging LDAP users

  • From: Tim W <twielgos@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Mon, 12 Jun 2017 16:00:29 -0500

After weeks of smashing my head against the wall, I finally realize the
tags in the tree are case sensitive when applying permissions.

Thanks for your help.  I am not a smart man.

On Wed, May 24, 2017 at 6:01 AM, Denis Ovsienko <denis@xxxxxxxxxxxxx> wrote:

---- On Tue, 23 May 2017 22:19:09 +0100 Tim W  wrote ----
Looks like it didn't work out.

This is what I did (ldap names changed for security reasons):


context insert {server admins} on {$lgcn_WindowsAdmins}

context insert {network admins} on {$lgcn_NetworkAdmins}

context insert {storage admins} on {$lgcn_SanAdmins}

allow {network admins} and {network assets} and {$tab_edit} and
{$tab_addmore} and {$tab_default}

The above grant never allows anything because at most one "tab" autotag is
present in the security context at once. The expression needs to be
different, please see examples at http://wiki.racktables.org/index.php/
RackTablesAdminGuide#Permission_configuration and in the list archive.

allow {storage admins} and {storage assets} and {$tab_default}

The above should work, could you explain in detail how it fails?

allow {server admins} and {server assets} and {$tab_edit} and
{$tab_addmore} and {$tab_default}






but it didn't work.


I also tried to do this with my own personal ID - 'context insert {server
admins} on {$username_tim}' - and it didn't work either.  The only thing
that did work is if I replaced 'server admins' in the 'allow' statements
with my own user id or $lgcn_ group.

It works for me now exactly as expected.

--
    Denis Ovsienko




Other related posts: