Posts Tagged ‘users’
Logged out users can’t bring up the Plone popup calendar
It’s another one of those ‘strange’ problems that has cropped up, but by default in Plone, users who aren’t authenticated aren’t actually able to bring up a pop-up calendar on a date field.
It’s amazing that I haven’t run into this issue before with something like PloneFormGen, where you’d think that a simple Date input field would be pretty common. Although, I guess it’s the case that even though I’ve used these given forms, I’ve probably never taken much notice of the popup calendar icon and just selected a random date from the drop-down lists. I suppose entering a random number on they keyboard and hitting tab across the fields 3 times is simpler than going for the mouse. Who knows. (more…)
LDAP-Authenticated Server & Whoami Failures (etc)
I’m back again, after a bit of a unscheduled ‘break’ in my normal work life. After a couple of days away for work on the Gold Coast, then the sad passing of my Grandfather and his memorial, then being sick over the last weekend from what I can only guess was a nasty 24-hour bug, I’m back. And whilst a little worse for wear still today, it’s life pretty much as normal.
Today’s fun and games was on a server we use that uses LDAP authentication for its users. Nothing special, except that today I started getting weird errors when logging in as my LDAP account, and the server booting me off with random error messages:
whoami: cannot find name for user ID 75966
-tcsh: ldap-nss.c:1312: do_init: Assertion `cfg->ldc_uris[__session.ls_current_uri] != ((void *)0)' failed.
Solution
The simple solution was to check the permissions on /etc/ldap.conf (Centos) and sure enough, the permissions weren’t allowing normal users to read it (eg not 644). Running this solves the problem:
chmod 644 /etc/ldap.conf
Cheers to the author @ http://www.ducea.com/2008/03/07/ldap-troubleshooting-i-have-no-name/ for the details.