Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Posts
    16

    Default 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 at 02:07 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    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

  3. #3
    Join Date
    Feb 2011
    Posts
    16

    Thumbs up

    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 at 04:43 PM.

  4. #4
    Join Date
    Feb 2011
    Posts
    16

    Default

    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 at 04:49 PM.

  5. #5
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Hi,

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

    Greetings

  6. #6
    Join Date
    Feb 2011
    Posts
    16

    Thumbs up

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

    Thanks a lot for your help. Really appreciated.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •