Announcement

Collapse
No announcement yet.

Understanding user authendication

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Understanding user authendication

    Hello everyone

    Here I am again asking for help to understand a few things.

    I created an account in order to see if I can connect to our IMAP server. But first I went to mail.properties and put the IP addresses of the imap and smtp servers as shown below:

    Code:
    # Primary mail server: e.g. 192.168.178.32:8143 or imap://192.168.178.32:7143
    # Only takes effect when property "com.openexchange.mail.mailServerSource" is set to "global"
    com.openexchange.mail.mailServer= IMAP-IP
    
    # Primary transport server: e.g. 192.168.178.32:125 or smtp://192.168.178.32:225
    # Only takes effect when property "com.openexchange.mail.transportServerSource" is set to "global"
    com.openexchange.mail.transportServer=SMTP-IP
    And also set both mail and transportServerSource to global as described in the file.

    Then created an account using:

    Code:
    /opt/open-xchange/sbin/createuser -c 1 -A oxadmin -P secret -u user1 -p testpass -e ubygou01@domain --imaplogin ubygou01 --imapserver IP --smtpserver IP
    OX worked fine and managed to map all emails from server.

    When I logged in to OX I used:
    Username: user1
    Password: testpass

    So to login to OX Server I used a random username (user1) and my real imap password and emails worked fine. The only way I managed to connect to the IMAP server was if I use the imap password in the command line. Does that mean that I have to know the password of each user in order to create an account for them?

    Is there a setting I can change so that I can create accounts for actual users without knowing their passwords?

    Sorry for my long post.

    Many thanks
    Yanni

    P.S: Please if the above does not make a lot of sense let me know.
    Last edited by goude; 02-23-2011, 02:07 PM.

  • #2
    Hi Yanni,

    those global configuration settings for mail server and transport server usually don't make much sense if you specify imapserver and smtpserver per-user. Indeed the data provided when creating a user is used for logging in and accessing the users mailbox. You have to know the IMAP Password to create OX Accounts that work against an IMAP Server when authenticating against a database.

    We also offer an IMAP authentication bundle that passes the username and password from the login screen to the IMAP server for authentication. That way the administrator does not need to know the users IMAP password. Perhaps thats an alternative to you.

    Greetings

    Comment


    • #3
      Thank you for your reply Martin,

      That cleared a few things in my head I will install the bundle and see how it goes.
      Last edited by goude; 02-23-2011, 04:43 PM.

      Comment


      • #4
        Hi

        I tried to install open-xchange-authentication-imap

        and I got the following depsolving problem:

        Code:
        Setting up Install Process
        Resolving Dependencies
        --> Running transaction check
        ---> Package open-xchange-authentication-imap.noarch 0:6.18.0.0-12_14.1 set to be updated
        --> Processing Conflict: open-xchange-authentication-imap conflicts open-xchange-authentication-database
        --> Finished Dependency Resolution
        open-xchange-authentication-imap-6.18.0.0-12_14.1.noarch from ox has depsolving problems
          --> open-xchange-authentication-imap conflicts with open-xchange-authentication-database
        Error: open-xchange-authentication-imap conflicts with open-xchange-authentication-database
         You could try using --skip-broken to work around the problem
         You could try running: package-cleanup --problems
                                package-cleanup --dupes
                                rpm -Va --nofiles --nodigest

        Should I skip it?
        Last edited by goude; 02-23-2011, 04:49 PM.

        Comment


        • #5
          Hi,

          only one authentication plugin can be used at the same time. You can either use database authentication OR imap authentication.

          Greetings

          Comment


          • #6
            I will remove the database authentication package and then install open-xchange-authentication-imap

            Thanks a lot for your help. Really appreciated.

            Comment

            Working...
            X