L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 07:00:45 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: flexible security
Pages: [1]   Go Down
« previous next »
Print
Author Topic: flexible security  (Read 496 times)
0 Members and 1 Guest are viewing this topic.
Tichy
Rookie
**
Offline Offline

Posts: 42



flexible security
« on: November 23, 2007, 07:43:01 AM »

I just wonder how the flexible security extension works.

I have a raidbot running and atm I add any members by hand. The access should be granted to members of "allied" orgs automaticly. All generals of these orgs should have admin user level. Could this be realized by the flexible security extension? And how to do it?

The documentation on this module seems to be incomplete Wink
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1089


Re: flexible security
« Reply #1 on: November 23, 2007, 07:57:34 AM »

Yes, you can do both those things with flexible security - which will take the information out of the whois cache for it.

The basic steps to do this are
  • Create a security group with the wanted access level. Or you can use one of the pre-defined ones (Admin, Super-Admin, Leader).
  • Create a flexible extension for those security groups, use the GUI under !flexible for this. Whether you need an AND or OR-combined one depends on what you want to do (see below for your case).
  • Add the conditions using !flexible condition add group rule

Security groups can be OR-combined, which means at least one of the conditions has to be met, or AND-combined, which means all conditions have to be met.

For your setup you need one OR-combined flexible group for the members setup. Simply create a group with members rights, create the OR-combined extension, and then add all the alliance orgs with !flexible condition groupname org = member, where member is a member of the org you want to add (check whois to make sure the information is correct, or check !flexible GUI afterwards, it lists the org names there).

To give generals/presidents (org_rank <= 1) access as ADMIN you need to create one AND-combined extension per organisation in your alliance, as you want to make sure ADMINs are both members of an org of the alliance and have the neccessary rank. Create a security group with ADMIN access level for each organisation in your alliance, and create for those groups AND-combined extensions. Then add to each of those groups the org rank condition via !flexible condition groupname rank_id <= 1, and add exactly one org condition to each of the ADMIN groups via !flexible condition groupname org = member.

If you add two org conditions to the AND-combined group nobody will be able to meet the conditions, as you can only be member of one org in the whois cache. If you use an OR-combined group for ADMIN anyone with an org rank of 0 or 1 in the whois cache will meet that condition and be admin in your bot. You don't want either of those conditions.
Logged
Tichy
Rookie
**
Offline Offline

Posts: 42



Re: flexible security
« Reply #2 on: November 23, 2007, 08:16:45 AM »

Now it's a little bit more clear, I have to use <i>addgroup</i> first to create a new group and after that create the flexible stuff for my new group.

Code:
To [XXX]: addgroup orgmems foo
[XXX]: Created group orgmems with anonymous level privlages.

But I could not figure out how to raise the level of this group to member privileges.

Quote
Create a security group with the wanted access level. Or you can use one of the pre-defined ones (Admin, Super-Admin, Leader).

Why is there now member group predefined?

Code:
[XXX]: Member is a default group and cannot be created as a custom group.

But I could not create a flexible extension for members.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1089


Re: flexible security
« Reply #3 on: November 23, 2007, 10:08:32 AM »

Use !security levels to set the access level. And all names of access levels are locked as group names, though only groups for admin, super-admin and leader actually exist.  You can use Members though if you want.
Logged
Tichy
Rookie
**
Offline Offline

Posts: 42



Re: flexible security
« Reply #4 on: November 23, 2007, 10:23:48 AM »

Thx for help, now it works as it should Smiley
Logged
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: flexible security
« Reply #5 on: March 24, 2008, 09:40:51 PM »

To [bot]: flexible condition add admin org = Dracutza
bot: Dracutza is not in any org!

To [bot]: !whois Dracutza
bot: Dancing "Dracutza" Fancypants is a level 220 (AT 24 - Protector) Female Opifex Shade, Clan, General of Paragon Order :: Details

any ideas?

weird thing is it works fine on a different bots on the same machine... be it org or raid bot.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: flexible security
« previous next »
 
Jump to:  

Recent
online not working after ...
by clashbot
[Today at 06:55:10 PM]

Bot not working after tod...
by Alreadythere
[Today at 01:04:41 PM]

Tokens Calulator
by Temar
[December 03, 2008, 01:09:03 PM]

Bebot does not work with ...
by IKShadow
[December 03, 2008, 08:54:04 AM]

!items database
by Temar
[December 03, 2008, 07:27:59 AM]

massive_pvp_time_table 1
by Sudoka
[December 03, 2008, 06:49:07 AM]

Log playtime from buddys ...
by IKShadow
[December 02, 2008, 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]
Stats
Members
Total Members: 1246
Latest: Vingus
Stats
Total Posts: 11196
Total Topics: 1508
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 5
Guests: 17
Total: 22
clashbot
Ifris
upstart
Temar
daltarak

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.401 seconds with 29 queries. (Pretty URLs adds 0.03s, 4q)
Loading...