[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] question/issue with authuser


From Chad M Stewart <Chad at balius dot com>
Subject Re: [imapsync] question/issue with authuser
Date Thu, 09 Apr 2009 15:33:57 -0400


On Apr 9, 2009, at 2:28 PM, Gilles LAMIRAL wrote:


Chad M Stewart wrote:

I'm looking for suggestions/ideas on why this is not working?

--user1 "sitea/msxadmin/fred"

Okay that was simple. I should have thought of that. :) Thank you.



I need imapsync to emulate the following login. I thought authuser2 would have done this, but it is not working in my case.


# telnet 172.16.0.20 143
Trying 172.16.0.20...
Connected to 172.16.0.20.
Escape character is '^]'.
* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] jes-sol.ds.xxxxxx.zzzzz IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))
1 login admin n0password
1 OK User logged in
2 proxyauth fred
2 OK Completed
3 logout
* BYE LOGOUT received
3 OK Completed
Connection closed by foreign host.


I tried the following

# sh sync.3
get options: [1]
Use of uninitialized value in concatenation (.) or string at /usr/ local/bin/imapsync line 508.
Use of uninitialized value in concatenation (.) or string at /usr/ local/bin/imapsync line 508.
VERSION_IMAPClient 1.267
$RCSfile: imapsync,v $ $Revision: 1.267 $ $Date: 2008/10/07 11:36:02 $
Here is a [openbsd] system (OpenBSD migration.siteA.us.xxxxxx.local 4.4 GENERIC#1021 i386)
with perl 5.8.8
Mail::IMAPClient 2.2.9
IO::Socket 1.29
IO::Socket::SSL
Digest::MD5 2.36
Digest::HMAC_MD5 1.01
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/local/bin/imapsync --debug --debugimap --host1 172.16.0.10 -- host2 172.16.0.20 --user1 sitea/msxadmin/fred --password1 PWCHANGED -- authuser2 admin --password2 PWCHANGED --user2 fred --noauthmd5
Turned ON syncinternaldates, will set the internal dates on host2 same as host1.
TimeZone:[GMT]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
From imap server [172.16.0.10] port [143] user [sitea/msxadmin/fred]
To imap server [172.16.0.20] port [143] user [fred]
From connection
Read: * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (admin-ad88rua81.sitea.us.xxxxxx.local) ready.


Connect: Received this from readline: 0/OUTPUT/* OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (admin- ad88rua81.sitea.us.xxxxxx.local) ready.

Banner: * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (admin-ad88rua81.sitea.us.xxxxxx.local) ready.
Sending: 1 CAPABILITY


Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX- REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM


Read: 1 OK CAPABILITY completed.

Sending: 2 CAPABILITY

Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX- REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM


Read: 2 OK CAPABILITY completed.

Host 172.16.0.10 says it has NO CAPABILITY for AUTHENTICATE LOGIN
Sending: 3 Login "XXXXXXXXX" XXXXXXXXX

Sent 41 bytes
Read: 3 OK LOGIN completed.

Success login on [172.16.0.10] with user [sitea/msxadmin/fred] auth [LOGIN]
To connection
Read: * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] jes-sol.ds.xxxxxx.zzzzz IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))


Connect: Received this from readline: 0/OUTPUT/* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] jes- sol.ds.xxxxxx.zzzzz IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))

Banner: * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] jes-sol.ds.xxxxxx.zzzzz IMAP4 service (Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007))
Sending: 1 CAPABILITY


Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN


Read: 1 OK Completed

Sending: 2 CAPABILITY

Sent 14 bytes
Read: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN


Read: 2 OK Completed

Host 172.16.0.20 says it has NO CAPABILITY for AUTHENTICATE LOGIN
Sending: 3 Login "XXXXXXXX" XXXXXXXX

Sent 25 bytes
Read: 3 NO Authentication failed

Error login : [172.16.0.20] with user [fred] auth [LOGIN]: 3 NO Authentication failed

3 NO Authentication failed
        ...propagated at /usr/local/bin/imapsync line 793.
#