Menu

member of multiple groups

Help
2005-12-22
2013-04-23
  • Stefan Alpers

    Stefan Alpers - 2005-12-22

    Hi,

    I'm trying to authenticate against my application's database, but I am currently running into some difficulties.
    I'm not sure, if my setup is supported by your module. For a short overview; my app uses three tables

    * 'user' holds all user information (id, login, password, status)
    * 'group' contains the group data (id, groupname, status)
    * 'membership' table (id, user_id, group_id)

    As long as i am only authenticating users everything works fine, but I don't know how to handle the groups.
      AuthMySQLGroupTable "group,membership"
    causes SQL errors.
    How can I handle this?

    Thanks in advance,

    s.alpers

     
    • macftphttp.serverbox.org

      AuthMySQLGroupTable - mysql group table name
      AuthMySQLNameField - mysql User ID field name within User table
      AuthMySQLGroupField - mysql Group field name within table
      AuthMySQLGroupUserNameField - mysql User ID field name within Group table

       
      • Stefan Alpers

        Stefan Alpers - 2005-12-22

        macftphttp,

        thank you for your reply, but that's not exactly what I'm looking for. I missed the 'AuthMySQLGroupUserNameField', but your answer does not solve my question.
        Is it possible to to query three tables. I described the setup in my first post.

         
    • Jerry Stuckle

      Jerry Stuckle - 2005-12-23

      Sorry, we really aren't set up to handle multiple group tables. 

      I'm not sure how you can get it to work with the user condition, either.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.