• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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]
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic