Results 1 to 4 of 4

Thread: dovecot and Likewise-Open

  1. #1
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    dovecot and Likewise-Open

    I have a server running Ubuntu 9.04. I joined it to my local Windows domain using Likewise-Open, following the instructions at https://help.ubuntu.com/8.04/serverg...wise-open.html. I'm now able to log in to the machine using any account from the Windows domain, as well as using Linux accounts created locally on this particular machine (i.e., accounts whose credentials are stored in /etc/passwd rather than on the Windows domain server).

    I also have a dovecot mail server on this machine, and use Squirrelmail to log in and check mailboxes. I can log in to Squirrelmail using local accounts with no problem, but when I try to log in using an account from the Windows domain, it fails and logs the following to mail.err:
    Code:
    Dec  3 15:14:00 memail dovecot: imap-login: Aborted login (auth failed, 1 attempts): method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    (Note that there's no "user=<...>" value in the log message, which seems strange.)

    I've tried a variety of combinations for logging in to Squirrelmail with accounts from the Windows domain, including just the username, username@domain, domain\username, and 'domain\username'. None of them works, even though I can for example ssh 'domain\username'@localhost with no problem.

    I'd be very grateful for any advice on solving or troubleshooting this further. I can't find anything at all on Google involving authenticating with dovecot via Likewise.

    I'm also happy to provide configuration files (dovecot.conf, etc.) if needed.

  2. #2
    Join Date
    Dec 2005
    Location
    Seattle, WA
    Beans
    15
    Distro
    Ubuntu

    Re: dovecot and Likewise-Open

    pytheas,

    It sounds like the pam file for dovecoat needs to be updated to also point at the Likewise PAM module (lsass). I can assist you in this or you can give it a shot by looking at the other PAM files Likewise configures for you in /etc/pam.d

    Regards,

    Yvo van Doorn
    SE with Likewise Software

  3. #3
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dovecot and Likewise-Open

    yvovandoorn: many thanks for your response. I will take a look into this myself and post back if I need more help (or if I figure it out, I'll post what I did).

  4. #4
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dovecot and Likewise-Open

    Finally figured this out. I found most of the answer in this PDF file from Canonical. The solution was actually really simple.

    After setting up Likewise-Open and joining my mail server to the domain, all it came down to was editing /etc/dovecot/dovecot.conf so that the auth_username_chars variable is uncommented, and adding a backslash (\) to that value, so that the whole line reads:
    Code:
    auth_username_chars = \abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
    Importantly, I found that it was necessary to add the backslash to the front of the string of values. The instructions in the PDF that I linked to above tell you to add it to the end, but doing that caused dovecot not to start properly because of errors in the configuration file. I'm not sure what exactly its problem was, but I imagine that having a \ at the end of a line was screwing something up.

    Users from my domain are now able to log in to the mail server using Squirrelmail (haven't tried an offline client yet but I assume it would work fine) using:
    Code:
    domain.example.com\username
    as their username, along with their passwords from Active Directory.

    Many thanks to the Likewise team for making such a great and easy-to-use piece of software available under a Free license.

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
  •