collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Using another org for Permissions?  (Read 4214 times)

0 Members and 1 Guest are viewing this topic.

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Using another org for Permissions?
« on: August 23, 2007, 06:19:51 pm »
I'm wondering if this can be done via Flex?

I have 2 orgbots, 1 for my main org and 1 for our sister org.

Ranks in the sister org are a bit of a mess because we let people have SC to run their own AI raids.

I'd like to set up the sister org bot to use the ranks of our main org to determine admin levels (in combination with alts, which are shared between the 2 bots).

It already works for -me- because I'm the owner of both bots and have alts set. But I'd like Generals in the main org to get the same permissions in the 2nd bot, too.

Doctorhyde/Jexyll/Goraud@RK2

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Using another org for Permissions?
« Reply #1 on: August 23, 2007, 08:37:46 pm »
It can be done using the flexible security, yes.

  • Create a security group and give it the rights you wish (or use one of the pre-defined leader, admin or superadmin groups).
  • Create a flexible security extension to this group by calling the !flexible command and creating an AND-combined group via the link in the GUI.
  • Now add an org requirement to that group (I'm using generals as groupname in the following lines, replace that as needed): !flexible add generals org = yourname - the command gets the org-id it needs from the whois info of yourname.
  • Now add a requirement on the org rank 1 (= general): !flexible add generals rank_id = 1

That should be all, now try !security whois somegeneral to test it.

Offline Hyde

  • BeBot Apprentice
  • ***
  • Posts: 92
  • Karma: +0/-0
Re: Using another org for Permissions?
« Reply #2 on: August 24, 2007, 01:19:25 am »
Thanks :)

Documenting the following in case someone else wants to do similar

NOTE: I tried the group name "ap-generals". That ended up not working. The "addgroup" command worked, but the "flexible" command silently failed when I clicked the AND. Turns out the "-" in there is bad. Probably a bug in flexible.

I created "apgenerals" and the AND worked. However I had to modify your command to have the keyword "condition".

So the steps end up being:

* !addgroup {groupname}
* !flexible
* (click "AND" for the new group)
* !flexible condition add {groupname} org = {myname}
* !flexible condition add {groupname} rank_id = 1
(for general, 0 for president, etc)
* !security levels
* (click the security level I want for this group)
« Last Edit: August 24, 2007, 06:56:18 am by Hyde »
Doctorhyde/Jexyll/Goraud@RK2

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Using another org for Permissions?
« Reply #3 on: August 24, 2007, 10:10:34 am »
Ah yes, sorry. Forgot the condition part.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Using another org for Permissions?
« Reply #4 on: August 24, 2007, 01:33:09 pm »
You should grab the SVN versions of core/Alts.php too to be save, otherwise alts changes may not be noticed by connected bots (even with shared alts table).

0.4 version, save as .php into core/ directory
0.5 version, save as .php into core/ directory

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 430
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal