[imp] prefrences backend suddenly stopped working...
Jan Schneider
jan at horde.org
Tue Mar 30 09:19:24 UTC 2010
Zitat von steen at ing-steen.se:
>
> Hello Folks!
>
> I am running horde + imp on centos 5.4 using OpenLDAP as backend for users
> and preferences, also there are a couple simple hooks handling posix users
> support, incremental of user id, getting the from email address, Horde
> login to imp using the user object from horde.
>
> Users get added correctly to the ldap tree with all horde attributes etc.
> The user can login and out, email works as expected, the user can change
> his/her preferences and so on.
>
> This has worked perfectly till today, there is no know impact , but a very
> annoying error message, we can not take it to production before this is
> sorted out.
>
> I have tried to switch to sql backend, then all works again, then switching
> back to ldap backend and it fails.
>
> What happened was that permissions on the directory /etc/horde (a link
> to /usr/share/horde/config in centos5.4) was changed by error in such way
> that horde could not access its configuration, it was corrected, but after
> that this error came up.
>
> By one way or another horde fails to determine the users DN when deleting
> users in horde, how come ?
>
> Anyone who know where to start looking to correct this ?
>
> There is no error messages whatsoever in the logs exept the ones below.
>
> But when the "manager" logs in, the following happens:
>
> MeddelandeThe preferences backend is currently unavailable and your
> preferences have not been loaded. You may continue to use the system with
> default settings.
> FelThere was a problem removing "pluto" from the system: The following
> applications encountered errors removing user data: horde
>
> horde.log says:
> Mar 27 15:36:22 HORDE [notice] [horde] Login success for kalle
> [172.16.1.41] to Horde [pid 3396 on line 138 of
> "/usr/share/horde/login.php"]
> Mar 27 15:36:23 HORDE [notice] [imp] Login success for kalle [172.16.1.41]
> to {localhost:143} [pid 3399 on line 96 of
> "/usr/share/horde/imp/lib/Auth/imp.php"]
>
> Mar 27 15:36:49 HORDE [error] [horde] Zero or more than one DN returned
> from search; unable to determine user's correct DN. [pid 3396 on line 230
> of "/usr/share/horde/lib/Horde/Prefs/ldap.php"]
> Mar 27 15:36:49 HORDE [error] [horde] Internal LDAP error. Details have
> been logged for the administrator. [pid 3396 on line 337 of
> "/usr/share/horde/lib/Horde/Prefs/ldap.php"]
>
> Mar 27 15:36:49 HORDE [error] [horde] Zero or more than one DN returned
> from search; unable to determine user's correct DN. [pid 3396 on line 230
> of "/usr/share/horde/lib/Horde/Prefs/ldap.php"]
> Mar 27 15:36:49 HORDE [error] [horde] Internal LDAP error. Details have
> been logged for the administrator. [pid 3396 on line 337 of
> "/usr/share/horde/lib/Horde/Prefs/ldap.php"]
>
> Mar 27 15:36:49 HORDE [error] [horde] Zero or more than one DN returned
> from search; unable to determine user's correct DN. [pid 3396 on line 230
> of "/usr/share/horde/lib/Horde/Prefs/ldap.php"]
> Mar 27 15:36:49 HORDE [error] [horde] Internal LDAP error. Details have
> been logged for the administrator. [pid 3396 on line 452 of
> "/usr/share/horde/lib/Horde/Auth.php"]
>
> Anyway the user get deleted.
In the process of deleting users, not only the user object in the ldap
tree is being deleted, but also this user's preferences. In SQL
setups, these are in two different tables.
I can imagine two things happening:
- The adminstrator doesn't have permission to delete the users'
personal preferences per ACL.
- The preferences are stored in the users' ldap objects, so that they
already have been removed when removing the user object. Removing his
preferences in a second attempt fails.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list