Hi, 

I have problem with connect to IMAP server, when Sogo used CAS Authorization.
I use CAS Authorization and it seems authorization work well. But when Sogo try
to load Main Folder and connect to IMAP I got next error:

Jan 13 09:52:16 sogod [8244]: |SOGo| starting method 'POST' on uri
'/SOGo/so/cast...@ebento.net/Mail/0/mailboxes'
2011-01-13 09:52:16.062 sogod[8244] WARNING(-[NSNull(misc) length]): called
NSNull -length (returns 0) !!!
Jan 13 09:52:21 sogod [8244]: [ERROR] <0x0x1aaa740[NGImap4ConnectionManager]>
IMAP4 login failed:
  host=localhost, user=cast...@ebento.net, pwd=yes
  url=imap://castest%40ebento.net@localhost/
  base=(nil)
  base-class=(nil))
  = <0x0x19f8b20[NGImap4Client]: login=cast...@ebento.net(pwd)
socket=<NGActiveSocket[0x0x1a637c0]: mode=rw
address=<0x0x1a625e0[NGInternetSocketAddress]: host=localhost port=37334>
connectedTo=<0x0x1820600[NGInternetSocketAddress]: host=localhost port=143>>>
Jan 13 09:52:21 sogod [8244]: <0x01A1C5E0[SOGoMailAccount]:0> renewing imap4
password
Jan 13 09:52:26 sogod [8244]: [ERROR] <0x0x1aaa740[NGImap4ConnectionManager]>
IMAP4 login failed:
  host=localhost, user=cast...@ebento.net, pwd=yes
  url=imap://castest%40ebento.net@localhost/
  base=(nil)
  base-class=(nil))
  = <0x0x1a0fb10[NGImap4Client]: login=cast...@ebento.net(pwd)
socket=<NGActiveSocket[0x0x19d6a10]: mode=rw
address=<0x0x19f9590[NGInternetSocketAddress]: host=localhost port=37336>
connectedTo=<0x0x19f4010[NGInternetSocketAddress]: host=localhost port=143>>>
Jan 13 09:52:26 sogod [8244]: [ERROR] <0x01A1C5E0[SOGoMailAccount]:0> Could not
connect IMAP4

When I use web authorization all work well and Sogo connect to IMAP.
If I right understand, when I use web authorization, Sogo send plaintext text
password to IMAP and successful connect to IMAP.

But when I use CAS authorization, Sogo doesn't use IMAP password. It seems Sogo
use CAS ticket instead of password.

Could you, please, help me resolve the problem with IMAP connection when I use
CAS  authorization? Maybe I need set some parameters in SOgo config?

My SOgo configure file:

<dict>
    <key>NSGlobalDomain</key>
    <dict>
    </dict>
    <key>sogod</key>
    <dict>
        <key>SOGoDebugRequests</key>
        <string>YES</string>
        <key>OCSFolderInfoURL</key>
       
<string>mysql://sogo:sogopasswd@localhost:3306/sogo/sogo_folder_info</string>
        <key>SOGoACLsSendEMailNotifications</key>
        <string>YES</string>
        <key>SOGoAppointmentSendEMailNotifications</key>
        <string>YES</string>
        <key>SOGoAuthenticationType</key>
        <string>cas</string>
        <key>SOGoCASServiceURL</key>
        <string>https://cas.ebento.net</string>
        <key>SOGoCalendarDefaultRoles</key>
        <array>
            <string>PublicViewer</string>
            <string>ConfidentialDAndTViewer</string>
        </array>
        <key>SOGoDraftsFolderName</key>
        <string>INBOX.Drafts</string>
        <key>SOGoFoldersSendEMailNotifications</key>
        <string>YES</string>
        <key>SOGoIMAPServer</key>
        <string>localhost</string>
        <key>SOGoLanguage</key>
        <string>English</string>
        <key>SOGoMailShowSubscribedFoldersOnly</key>
        <string>YES</string>
        <key>SOGoMailingMechanism</key>
        <string>smtp</string>
        <key>SOGoProfileURL</key>
       
<string>mysql://sogo:sogopasswd@localhost:3306/sogo/sogo_user_profile</string>
<key>SOGoSMTPServer</key>
        <string>127.0.0.1</string>
        <key>SOGoSentFolderName</key>
        <string>INBOX.Sent</string>
        <key>SOGoTimeZone</key>
        <string>America/Tijuana</string>
        <key>SOGoTrashFolderName</key>
        <string>INBOX.Trash</string>
        <key>domains</key>
        <dict>
            <key>ebento.net</key>
            <dict>
                <key>SOGoDraftsFolderName</key>
                <string>Drafts</string>
                <key>SOGoMailDomain</key>
                <string>ebento.net</string>
                <key>SOGoMailShowSubscribedFoldersOnly</key>
                <string>YES</string>
                <key>SOGoUserSources</key>
                <array>
                    <dict>
                        <key>canAuthenticate</key>
                        <string>YES</string>
                        <key>id</key>
                        <string>directory</string>
                        <key>isAddressBook</key>
                        <string>YES</string>
                        <key>type</key>
                        <string>sql</string>
                        <key>userPasswordAlgorithm</key>
                        <string>none</string>
                        <key>viewURL</key>
                       
<string>mysql://sogo:sogopasswd@127.0.0.1:3306/sogo/sogo_view</string>
                    </dict>
                </array>
            </dict>
        </dict>
    </dict>
</dict>
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to