These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Eve Alliance Auth - Open Source

First post First post
Author
Argus Sorn
Star Frontiers
Brotherhood of Spacers
#241 - 2015-11-16 04:11:15 UTC
Adarnof wrote:

Argus Sorn wrote:
Does creating and/or adding member to hidden group get disseminated to the forums and mumble?

No. The goal behind this change was to restrict the groups available to members to apply to on the website, meaning this group's membership can only be managed from the admin console.


I am a little confused tho - what good is the group if the group has no permissions associated with it (no forum groups, mumble permissions, etc..)? It seems you'd want to have say a "high command' group that could be added secretly but then allow those HC members some sort of forum access, etc..


Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#242 - 2015-11-16 04:21:17 UTC
Argus Sorn wrote:
I am a little confused tho - what good is the group if the group has no permissions associated with it (no forum groups, mumble permissions, etc..)? It seems you'd want to have say a "high command' group that could be added secretly but then allow those HC members some sort of forum access, etc..

I misread. It behaves as a normal group for services, the only difference being that a group marked as "hidden" will be unavailable for people to request to join on the Auth site.
Argus Sorn
Star Frontiers
Brotherhood of Spacers
#243 - 2015-11-21 07:47:59 UTC
Arthmer wrote:



Anyone having luck getting this working? The api data in the last line of the conf.json file - does that need to be changed to the api username and pw in seat?
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#244 - 2015-11-21 18:18:23 UTC
Argus Sorn wrote:
Anyone having luck getting this working? The api data in the last line of the conf.json file - does that need to be changed to the api username and pw in seat?


Yes I've used that before. You need to enter the API username and password generated by SeAT into that last line.

Within SeAT go to Configuration -> API Applications, add a new application (make sure the source IP is correct, 127.0.0.1 if on the same machine), and put the credentials it generates into conf.json. Ensure the MySQL tables and username/passwords are also correct.
Argus Sorn
Star Frontiers
Brotherhood of Spacers
#245 - 2015-11-22 02:07:32 UTC
Adarnof wrote:
Argus Sorn wrote:
Anyone having luck getting this working? The api data in the last line of the conf.json file - does that need to be changed to the api username and pw in seat?


Yes I've used that before. You need to enter the API username and password generated by SeAT into that last line.

Within SeAT go to Configuration -> API Applications, add a new application (make sure the source IP is correct, 127.0.0.1 if on the same machine), and put the credentials it generates into conf.json. Ensure the MySQL tables and username/passwords are also correct.



I will try again when I have time. I am currently running them under different subdomains, because deployed SEAT using the exact instructions provided by seat for deploying the virtual host via a second apache config and setting up the symbolic link.

If there is a more efficient way to do this using a single apache config file vs. having one for seat and one for auth - i'd appreciate guidance. Otherwise thanks as usual!
Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#246 - 2015-11-22 02:15:41 UTC
Argus Sorn wrote:
I will try again when I have time. I am currently running them under different subdomains, because deployed SEAT using the exact instructions provided by seat for deploying the virtual host via a second apache config and setting up the symbolic link.

If there is a more efficient way to do this using a single apache config file vs. having one for seat and one for auth - i'd appreciate guidance. Otherwise thanks as usual!


That's really the cleanest way of doing it. You could in theory simply add another alias and directory to your allianceauth apache configuration, but I've had mixed results doing that.
Argus Sorn
Star Frontiers
Brotherhood of Spacers
#247 - 2015-11-22 02:19:00 UTC
Adarnof wrote:
Argus Sorn wrote:
I will try again when I have time. I am currently running them under different subdomains, because deployed SEAT using the exact instructions provided by seat for deploying the virtual host via a second apache config and setting up the symbolic link.

If there is a more efficient way to do this using a single apache config file vs. having one for seat and one for auth - i'd appreciate guidance. Otherwise thanks as usual!


That's really the cleanest way of doing it. You could in theory simply add another alias and directory to your allianceauth apache configuration, but I've had mixed results doing that.


No that's fine, I just wasn't sure if it interfered with the auth-seat link.
Subsparx
Crimson Serpent Syndicate
#248 - 2015-11-22 07:18:23 UTC
I noticed there was an update 3 days ago. I've been using this system for 6+ months now without issue. I recently went to build a new server for a client and it hangs on the python manage.py shell < run_alliance_corp_update.py. Nothing happens at all. If I ctrl+c out of it, the last line in the Traceback is always this:

File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()

I remember this taking a while in the past but I have tried leaving this for 5 minutes, 5 seconds, and even left it for an hour, every time I ctrl+c out of it, this is the same line it's reached.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#249 - 2015-11-22 08:41:24 UTC
Subsparx wrote:
I noticed there was an update 3 days ago. I've been using this system for 6+ months now without issue. I recently went to build a new server for a client and it hangs on the python manage.py shell < run_alliance_corp_update.py. Nothing happens at all. If I ctrl+c out of it, the last line in the Traceback is always this:

File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()

I remember this taking a while in the past but I have tried leaving this for 5 minutes, 5 seconds, and even left it for an hour, every time I ctrl+c out of it, this is the same line it's reached.


Seems I accidentally nested a loop where it didn't belong. While not an infinite loop, it may as well have been. The master has been updated with the fix. Thanks for pointing it out!
Subsparx
Crimson Serpent Syndicate
#250 - 2015-11-22 11:29:12 UTC
It works now. Excited to see the changes. I made a lot of manual changes to accommodate things before but it looks like all my issues are addressed now.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Subsparx
Crimson Serpent Syndicate
#251 - 2015-11-22 12:15:43 UTC  |  Edited by: Subsparx
Deleted the post, it's 4am and I forgot I already had the MySQL tables created.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#252 - 2015-11-25 07:30:03 UTC
Another batch of changes were incorporated tonight. My favourite is support for customization which doesn't get overwritten every time you update the code base. Fun!

Read all about the changes on the changelog, and upgrade instructions can be found on the upgrade guide.

As always, if you experience any issues let me know.
Argus Sorn
Star Frontiers
Brotherhood of Spacers
#253 - 2015-11-30 04:04:20 UTC
Are the buttons on the services page images that are stored somewhere? I didn't see them in the statics but people complain to me about the check, and so I wanted to change the buttons to be more obvious if possible.

Subsparx
Crimson Serpent Syndicate
#254 - 2015-11-30 05:33:31 UTC
How would you go about changing the automated corporation group to the ticker instead of the name?

def generate_corp_group_name(corpname):
return 'Corp_' + corpname.replace(' ', '_')

I found this, and changing it to return corpname got the expected result of returning Crimson Serpent Syndicate without the underscores. However I would like the actual group name to be CSSYN. I've looked through the Python files and no combination of character.corp_ticker, corporation.ticker, etc etc seems to work after the return command. Is there any way to feed a corp ticker into the generate_corp_group_name definition?

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#255 - 2015-11-30 18:05:53 UTC
Argus Sorn wrote:
Are the buttons on the services page images that are stored somewhere? I didn't see them in the statics but people complain to me about the check, and so I wanted to change the buttons to be more obvious if possible.


They're custom characters from a font pack - source. You can edit the template file and change the character displayed within the span block - example. There are many instances of the checkmark throughout the template. Be sure to save the customized services page in the customization folder as described in the readme.




Subsparx wrote:
How would you go about changing the automated corporation group to the ticker instead of the name?

def generate_corp_group_name(corpname):
return 'Corp_' + corpname.replace(' ', '_')

I found this, and changing it to return corpname got the expected result of returning Crimson Serpent Syndicate without the underscores. However I would like the actual group name to be CSSYN. I've looked through the Python files and no combination of character.corp_ticker, corporation.ticker, etc etc seems to work after the return command. Is there any way to feed a corp ticker into the generate_corp_group_name definition?


That's decidedly more messy. You could change that function in util/common_tasks.py to accept a EveCorporationInfo object and pull the ticker from it. Then you'd need to locate every instance of that function being called and change the logic. Off the top of my head I know it's in the run_api_refresh celerytask and the disable_alliance_member functions, likely somewhere in the add api key logic and change main character logic as well. And here.
Subsparx
Crimson Serpent Syndicate
#256 - 2015-11-30 18:51:48 UTC
Yeah I figured there would be a lot of required updates. I modified the really old version of Auth way back before it started receiving updates, so I already have a database filled with people with corp ticker groups for their corporation and want to keep that going forward. I'll take a look at changing the function and then I'll look in to doing a group replace on all .py files now that I know what I'm looking for.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Subsparx
Crimson Serpent Syndicate
#257 - 2015-12-01 02:30:55 UTC
Another question.

"The dropdown box provides all auth groups. Select one and assign TeamSpeak groups from the panels below. If these panels are empty, wait a minute for the database update to run."

I tried to add a TeamSpeak group and get an error stating:
IntegrityError at /admin/services/tsgroup/add/
(1048, "Column 'ts_group_id' cannot be null")

These fields aren't automatically populating. Is there a way to force this to populate? Otherwise I guess I could manually fill everything in.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#258 - 2015-12-01 02:42:47 UTC  |  Edited by: Adarnof
Subsparx wrote:
Another question.

"The dropdown box provides all auth groups. Select one and assign TeamSpeak groups from the panels below. If these panels are empty, wait a minute for the database update to run."

I tried to add a TeamSpeak group and get an error stating:
IntegrityError at /admin/services/tsgroup/add/
(1048, "Column 'ts_group_id' cannot be null")

These fields aren't automatically populating. Is there a way to force this to populate? Otherwise I guess I could manually fill everything in.


I'm not really sure why the TS Group model is registered to the admin site. That's a Kaezon question. You need to be making Auth / TS Group models to associate the pair.

Quote:
Navigate back to the AllianceAuth admin interface (yourdomain.com/admin) and under Services, select Auth / TS Groups. In the top-right corner click Add..
Subsparx
Crimson Serpent Syndicate
#259 - 2015-12-01 03:02:09 UTC  |  Edited by: Subsparx
EDIT: Ignore everything below, this is an issue with I believe Celery not running correctly. It won't stay running. That's an entirely different issue I can figure out on my own. Once I kicked it off again manually, everything magically started populating.

So I manually created the groups in the SQL database with the relevent ts_group_id and ts_group_name fields populated. When you link them using Auth / TS Groups between groups and Teamspeak however, they don't assign. Nothing happens when you remove or add somebody to a TS3 linked auth group. It doesn't even log in to the TeamSpeak to try. The only group I can get to work is the alliance one, which makes sense as that's what it bases that permissions key on.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Adarnof
Kingsparrow Wormhole Division
Birds of Prey.
#260 - 2015-12-02 18:55:45 UTC
By popular demand, Discord support is here. Along with a host of fixes and a major overhaul of the timerboard.

Check out the full changelog and learn how to upgrade your install.

Always looking for improvements, send me your suggestions or post them on Github.