13 April 2012, 19:05 UTCMore Roundcube? 2 blog entries about PHP in 1 day?
Instead of debugging your Roundcube, look for history!
Say you have an install of Roundcube.
Say you log in as a user, log out, and re-login (that or any other user).
Say you expect it to work.
It will, but not on the first try.
line This gem from 2005 sums it up. http://roundcubeinbox.wordpress.com/2009/08/
* After I log out, the first login after that always fails. Second one succeeds.
And Split Enz says, "History Never Repeats". I have to disagree.
13 April 2012, 16:04 UTCRoundcube, beware the IMAP user....
If you are having login issues in Roundcube using remote host IMAP...
Verify that the user name in the Roundcube matches the one in your IMAP back end (including case).
If you change your back end user name upper / lower case, Rouncube will still have the other version of that user name, and fail the login
(but probably succeed on the IMAP back end (if the back end is set to ignore case).
Roundcube keeps the version from the first log in, and won't create a new one.
I could imagine where Roundcube would treat this as just another case of a "new user" and chuck in a new user with the changed case, but it does not.
Best just to not change your back end user name once they have logged in using Roundcube.
Or set Roundcube to ignore case....
But that rope has been pissed up already :-):
http://trac.roundcube.net/ticket/1487681
I have a user who used a login with uppercase characters at his first time login in roundcube some time ago with a older version of roundcube. In the database in the table users his username also has this uppercase characters. After upgrading to version 0.5 of roundcube he was not able to login anymore because the login seems now to be case-sensitive. Changing $rcmail_config['login_lc'] to true does not help at this point because the username string in database will not be converted to lowercase character. I use e-mail addresses as login and a mysql database. Steps to reproduce: change a character of your username to uppercase in database in table users set $rcmail_config['login_lc'] to true in the config try to login Workaround: Convert all usernames in your database in table users to lowercase. Change History comment:1 Changed 15 months ago by alec Milestone changed from later to 0.6-beta I think we'll not fix this. Use your workaround and forget. comment:2 Changed 14 months ago by charly Let me understand: If a new user logs into the new RC, there will be no error. The error occurs if an older user, from an older version of RC, has typed his username with wrong case, then after upgrading RC to the latest version there are case problems. If i understand correctly, to "fix" this bug we need to write some lines documenting this behavior into KnownIssues and Upgrade wiki pages and into the TXTs distributed with RC. I don't agree to change any line of code; may be provide a sample sql command or somethin in the Documentation. comment:3 Changed 11 months ago by alec Status changed from new to closed Resolution set to wontfix Added comment in config file and wiki.
Update! The lower case option should be set from the get-go:
http://trac.roundcube.net/wiki/Howto_KnownIssues
If you set it correctly from the get-go, all will be okey dokey! See section below from the link above (if you are lazy and don't want to click).
mono Login case-sensitive
User logins are case-sensitive in Roundcube. However, you can use 'login_lc' option to make them case-insensitive. Exactly it forces all logins to be lowercase before logging in and registering a user. After enabling this option, user records needs to be updated, e.g. with query "UPDATE users SET username = LOWER(username);".
11 April 2012, 19:58 UTCOS X tricks
Want to change the hostname and have it stick?
Even though we have the hostname command, you need more:
scutil --set HostName name-of-host
man hostname for that one.
29 March 2012, 18:06 UTCLimiting your password-less ssh login via command
If you have a ssh limited login shell that runs only one command via the authorized_keys file,
but you want to extend it, try this:
In your authorized_keys for the login, extend the "command=" bit:
command="/bin/limitedcommand; ${SSH_ORIGINAL_COMMAND}"
You have just opened it up for other commands to be passed in.
Not useful if you want to limit for security reasons, but could be
useful if you want to extend some login say for check_mk
to allow for event handler to restart a service.
23 March 2012, 17:06 UTCAsterisk - stuff for later:
Here are some quick ones for later:
What are the state of sip registrations:
asterisk -rx "sip show peers"
Have stuck channels - i.e. call won't hang up?
asterisk -r pbx*CLI> core show channels Channel Location State Application(Data) SIP/EXT-blahhhhhh couch Up Dial... channel request hangup SIP/EXT-blaaaah
20 March 2012, 18:33 UTCHandy Python:
Ever go crazy converting dmesg ticks to real date time?
Thanks to Saghul and his insightful bit of Python you don't need to be poor anymore!:
Here is the link:http://code.saghul.net/pydmesg-dmesg-with-human-readable-timestamps
Since Saghul says it is under public domain, I have a copy here for you as well:
See comment on this rev for license: https://gist.github.com/542780
pydmesg
15 March 2012, 14:31 UTCThere is light at the end of the tunnel!
Fear it might be a train. I suppose if I run, I might catch it!
13 March 2012, 16:56 UTCPyCon videos for 2012
Even though I can't go, I can still enjoy what transpired.
Thinking in a future life that I may attend a PyCon or two.
Oh, suppose I should provide a link http://pyvideo.org/category/17/pycon-us-2012
22 February 2012, 20:21 UTCDoes Ultratax require oplocks to be turned off?
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRxSmb\Parameters -> New > DWORD Value -> 1 = off.
server side: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters -> New > DWORD Value (hex 0 for off?) - strange.
If using SMB2, not so easy: http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html
22 February 2012, 16:37 UTCSuper WTF - Microsoft Server 2008 R2 no longer supports running programs from a mapped drive in a TS environment?
You have got to be kidding me. They suggest you install all programs locally, or use Webdav? :http://support.microsoft.com/kb/2536487
More here: http://www.bearnakedcode.com/2011_06_01_archive.html
17 February 2012, 23:02 UTCGetting an exceptions.IOError CRC check failed running Duplicity?
8 February 2012, 17:22 UTCFail2ban failing you?
2 February 2012, 21:05 UTCVirtualmin stuff:
31 January 2012, 22:43 UTCHere they are: (Nagios macros).
25 January 2012, 3:56 UTCWake that machine up!
23 January 2012, 21:13 UTCOS X Server Slow Logins - remote home dir (think NFS home dir in non-mac speak) and Open Directory Auth (think Kerberos in non-mac speak)
9 January 2012, 22:10 UTCOS X Server and network home directories
18 December 2011, 13:26 UTCApache not restarting but complaining about no sockets available?
16 December 2011, 16:43 UTCSo, how do you find the serial number of a Western Digital drive?
15 December 2011, 21:30 UTCOh, yeah... iostat. Forgot about that.
15 December 2011, 17:53 UTCHa, ha, ha!
9 December 2011, 16:04 UTCI don't think we are capable of learning :-) LSI 1068 troubles part ?
6 December 2011, 5:10 UTCMcGurk effect can be fun!
4 December 2011, 22:25 UTCNice. Windows "Start" = Windows "End"
4 December 2011, 3:52 UTCNice quotes:
1 December 2011, 21:10 UTCNice lightweight sendmail replacement?
1 December 2011, 18:00 UTCVMWare Server time to consider host time?
1 November 2011, 16:38 UTCiCalendar and the dreaded time zone;
31 October 2011, 14:16 UTCIs the FTP server on OS X 10.6 giving you 530 password incorrect?
26 October 2011, 20:31 UTCSexy curses based runlevel config tool!