• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Creating groups

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm already working on integrating the authentication through an implementation of net.jforum.sso.LoginAuthenticator, and I also added the feature of creating a new user in JForum if the user has not been registered yet.

However, it would also be interesting to create different groups depending on the group of the user in our information system. I see there are some methods to add the user to a Group, but I cannot find those groups or create new ones as the authenticator is just passed the UserDAO and I could not find any way to get to the GroupDAO from there.

Is that feasible at all?
Thanks
D.
[originally posted on jforum.net by GreenEyed]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use the following static method to get to the GroupDAO (or any other DAO).


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool, thanks.

It's a bit scary though, as the class returned by DataAccessDriver.getInstance() is net.jforum.dao.mysql.MysqlDataAccessDriver even though my DB is Oracle :?:
[originally posted on jforum.net by GreenEyed]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, you may have a configuration error then. The Datadriver class is set in the configuration file. Your jforum-custom.conf file should have:

dao.driver=net.jforum.dao.oracle.OracleDataAccessDriver


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are correct, I had such a file and it had a mix of Oracle and MySQL settings that were probably messing things ups.

When is this file created? I tried firs the automatic installation and then performed the manual instalation and I saw no information about such file in the installation instructions?

Thanks for the information, let's see if now Oracle stops giving me weird errors .

S!
D.
[originally posted on jforum.net by GreenEyed]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I remember right, this is done when you configure the database in the initial install screen. This looks in the database/"database type" directory for a matching properties file and uses this as the defaults for your custom config file. (This is also where the DB specific schema creation SQL and some other stuff is stored).
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ummm, ok. There might be a bug there as I suspect that's the reason why the automatic installation failed. When I have more time, I'll try to reproduce the problem and if I can, then I'll chase it down.

Thx for the help, now evertyhing seems to work fine and I'm assigning users to groups and creating them without problems.

S!
D.
[originally posted on jforum.net by GreenEyed]
 
Are you here to take over the surface world? Because this tiny ad will stop you!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic