8 Replies Latest reply on Jun 22, 2006 8:25 PM by gohip

    how to create a user in calendar

    rgjawanda

      How do you create the initial users as specified in the install doc.
      I can't find it anywhere

      ie:
      They write:

      Get started
      Follow the install instructions to create a few users to get started. For this guide I created 3 users:
      User Password
      tomCat tom
      jerryMouse jerry
      tweetyBid tweety



      What install instructions?

      If you can help I will appreciate you.
      Thanks
      Ron

        • 1. Re: how to create a user in calendar
          gohip

          were any of them able to login to calendar?

          i created two users during install, and I know one couldnt login, but forgot to try loggin in second user.

          andrew, are users created during install the same users that are allowed access to calendar?

          if they are, then Ron, you can add more users, outside of the installer, by adding them to...

          E:\JBossMailServer\versions\1.0M5\server\default\deploy\mail.ear\mail.sar\META-INF\jboss-service.xml

          in

          <!-- StaticUserRepository maintains the user account information as part of
          this configuration. You must specify the username and password below.
          Each user will be accepted as a local mailbox for any domain in the
          local domain group. You should be using JAAS login modules instead (like
          the database login module). Using SUR requires a restart for each change.
          -->



          user_112354
          user_254321
          user_312345




          but, it doesnt seem calendar is using this...

          • 2. Re: how to create a user in calendar
            gohip

            damn, the forum parser ate that up, its...

            <!-- StaticUserRepository maintains the user account information as part of
             this configuration. You must specify the username and password below.
             Each user will be accepted as a local mailbox for any domain in the
             local domain group. You should be using JAAS login modules instead (like
             the database login module). Using SUR requires a restart for each change.
             -->
             <mbean code="org.jboss.mail.userrepository.StaticUserRepository"
             name="jboss.mail:type=MailServices,name=UserRepository,uimanageable=true">
             <attribute name="Users">
             <users>
             <user><id>user_1</id><password>32145</password></user>
             <user><id>user_2</id><password>54321</password></user>
             <user><id>user_3</id><password>12345</password></user>
             </users>
             </attribute>
             </mbean>
            
            


            • 3. Re: how to create a user in calendar
              acoliver

              M5 doesn't set up static user by default. You should be moving to JAAS as static user is deprecated. WebMail, POP, IMAP autoprovision users mailboxes on first login. The default JAAS sets up a property file. There is a link about this from the howto...

              • 4. Re: how to create a user in calendar
                rgjawanda

                Thanks for the replies.
                Now if I only knew where to find the how-to it would be great.

                • 5. Re: how to create a user in calendar

                  Sorry about the confusion.

                  So by default JBoss Calendar uses a JAAS realm named "java:/jaas/jbms"
                  by default this realm is a property based realm and the property files are in
                  <where is your install>/server/default/conf

                  called:
                  jbms-roles.properties

                  tom=tom
                  jerry=jerry
                  tweety=tweety

                  jbms-users.properties
                  tom=calendaruser,adminuser
                  jerry=calendaruser,adminuser
                  tweety=calendaruser,adminuser

                  you do not need them to be adminuser but they must calendaruser.

                  If you want to you can use any type of realm LDAP/RDBMS

                  When the user logs in (meaning he is authenticated against the realm) first we check if it has acct in calendar if not it will get created.

                  I hope this helps

                  • 6. Re: how to create a user in calendar
                    gohip

                    thnaks for info AronSogor, you any good also with the message queue side of things? I.e. how to get mail server to quit putting messages on queue, that lack the messages body? posted an issue on this in users forum, if you have any ideas

                    • 7. Re: how to create a user in calendar

                      yeah - recompile :)

                      I think Andy fixed that in Vegas

                      • 8. Re: how to create a user in calendar
                        gohip

                        sweet, i try it, unfortunately, were using m4 for production server, not m5, so I may have to continue with my hack, or possibly incorporate andrews code into a fix for m4

                        Hey, did you guys have fun in vegas? did you get to go, how was the conference? I am only 5 hours away from vegas, but my boss wouldnt let me go...