Hi, I don't know why, but cyradm 2.11 doesn't work. Because I've updated gcc, perl and cyradm in one pass, I can't tell which update causes this. I will try an old version of -admin and will tell you. Regards, Alexander
Ok, cyradm isn't broken, there just seems to be a missing flush anywhere in the source. E.g. if cyradm is invoked as cyradm --user cyrus --auth DIGEST-MD5 localhost the 'Password:' will be printed after the password was readed. So as a quick fix, just enter the password after invoking cyradm. I will have a look at the code if I can find the missing flush(). Regards, Alexander
I've found one missing flush, but this seems not the one thats missing for the above invokation. Anywhere here are the 2 lines to fix the misssing one I've found. Just insert them in src_unpack after the patch. ----------- sed -e 's/Password: ");/Password: "); fflush(stdout);/' < cyradm/cyradm.c > cyradm/cyradm.c.new mv cyradm/cyradm.c.new cyradm/cyradm.c -----------
Forget the last patch. It's for the unsupported c-Version which isn't installed. ;)
Ok, the part of code where the failure is seems to be in perl/imap/IMAP.xs function get_password(). But there is a fflush(stdout) after the printf("Password: "). So I believe thats a bug in gcc or in glibc.
I will be testing the latest cyrus packages this week on a new system. I'll post here when I get some progress.
are there other auth mechanisms which also exhibit the same problem?
With CRAM-MD5 it's the same, with PLAIN the phrase 'IMAP Password: ' will be after typing the password. Kinda mysterious because in perl/imap/IMAP.pm there is autoflush before the print. Regards, Alexander
As a note, there is an updated cyrus-sasl-2.1.10-r2 in portage which has a couple of fixes. Have you gotten any progress on this problem? I have not been able to recreate your bug :(
cyrus-imap-admin-2.1.11-r1 is now in portage with a dependancy on dev-perl/Term-ReadLine-Perl Please see if this helps.
oops... had a bad digest. updated.
cyrus-*-2.1.12 is out... testing...
It will be a little bit before I can complete cyrus-sasl-2.1.12 testing. I have the entire 2.1.12 series in portage though. Please test for yourself if you have the time. :)
Added another dependancy on dev-perl/TermReadKey
I am experiencing the same problem as you are... typing in the password works and the password line doesn't show up until you are in the cyradm shell.
http://asg.web.cmu.edu/archive/message.php?mailbox=org.acs.asg.project.mail.commits&msg=1668 See this post for a strange change in cyrus-land appears they are removing cyradm?
As it appears that the future of cyrus is without the tcl interface I am marking this bug as wontfix... As cyradm is still usable, and properly supports different AUTH mechanisms, it is not a problem with the gentoo ebuild, and multiple people on the cyrus mailing lists have reported the same problem on different systems with no solution.