RE: Problems with squirrelmail plugins directory and useracl
by: Bertrand PITOLLAT <bertrand.pitollat.NOSP@MMER.cirad.fr>, @ Wed, 30 May 2007 16:58:29 +0300

Hi,

=20

Thanks for your answer.

Yes I have downloaded using "cvs -z3
-d:pserver:anoncvs@email.uoa.gr:/squirrelmail co directory".

(the other cvs command does not seem to work).

=20

I have solved the problem. It came from "selinux" on my RedHat AS 4
distribution.

I turned it off (/etc/selinux/config) and I can now access the directory
gui.

=20

I now face a directory plugin "config" problem.

=20

Squirelmail is configured to request an openldap directory. I request it
well through "Compose/Adresses". For example if I look for user =
pinkmartini,
I can get its mail and ciompose the mail.

=20

For example, here is the "pinkmartini" entry in my openldap directory :

dn: cn=3Dpinkmartini,ou=3Dpersonne,dc=3Dcirad,dc=3Dfr

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

objectClass: ciradPerson

objectClass: fw1person

objectClass: inetLocalMailRecipient

objectClass: posixAccount

uidNumber: 10057

cn: pinkmartini

ciradStatusLastChangeTimestamp: 20041012162148Z

loginShell: /bin/bash

ciradStatus: enable

gidNumber: 2028

ciradEntryExpirationDate: 20091231000000Z

homeDirectory: /homedir/pinkmartini

ciradEntryManager: cn=3Dbertrand =
pitollat,ou=3Dpersonne,dc=3Dcirad,dc=3Dfr

ciradGivenName: pinkmartini

ciradSn: pinkmartini

display-Name: pinkmartini

displayName: pinkmartini

givenName: pinkmartini

mail: pinkmartini@cyrus-test.cirad.fr

mailLocalAddress: pinkmartini@cyrus-test.cirad.fr

mailHost: cyrus-test

rfc822MailMember: pinkmartini@cyrus-test.cirad.fr

sn: pinkmartini

uid: pinkmartini

xMozillaSecondEmail: pinkmartini@cyrus-test.cirad.fr

userPassword:: e0NSWVBUfWdZNktBZmZQMUFUYy4=3D

=20

But when I try to request "pinkmartini" from the directory plug-in GUI, =
I
get the following errors:

[client 195.221.173.231] PHP Warning: Cannot modify header information =
-
headers already sent by (output started at
/toto/squirrelmail-1.4.10a/plugins/directory/config.php:379) in
/toto/squirrelmail-1.4.10a/functions/i18n.php on line 416, referer:
http://cyrus-test.cirad.fr/squirrelmail-1.4.10a/plugins/directory/directo=
ry.
php

[client 195.221.173.231] PHP Warning: ldap_get_entries(): supplied =
argument
is not a valid ldap result resource in
/toto/squirrelmail-1.4.10a/plugins/directory/directory.php on line 460,
referer:
http://cyrus-test.cirad.fr/squirrelmail-1.4.10a/plugins/directory/directo=
ry.
php

=20

Is your openldap schema mandatory for the directory plug-in to work
correctly ?

In directory/config.php, I have set :

$ldq_support_eduperson =3D false;=20

=20

Do the openldap entries have to belong to specific classes (ours are =
top,
person, organizationalPerson, inetOrgPerson, ciradPerson, fw1person,
inetLocalMailRecipient, posixAccount) ?

=20

I do not want to store all the =93cyrus imap=94 info in an openldap =
directory.

I just want to let the end user manage the access to its mailbox through =
the
web.

That is making =93user acl=94 and =93directory=94 work with our openldap =
schema.=20

Today, =93user acl=94 works fine if I know the =93uid=94 of the other =
user whom I
want to give access to my mailbox.

My goal is to enable the =93user acl=94 gui (shares) to get this =
=93uid=94 from the
directory gui.

This fails today.

=20

Thanks for your help.

=20

Bertrand.

=20

-----Message d'origine-----
De : avel@noc.uoa.gr [mailto:avel@noc.uoa.gr]=20
Envoy=E9 : mercredi 30 mai 2007 12:36
=C0 : bertrand.pitollat@cirad.fr
Cc : email@edunet.gr
Objet : Re: Problems with squirrelmail plugins directory and useracl

=20

On Wed, 2007-05-30 at 12:12 +0200, Bertrand PITOLLAT wrote:

=20

> I have downloaded and installed them.

=20

Have you downloaded the cvs version of 'directory' according to

http://email.uoa.gr/projects/directory/download.php

?

=20

> [Wed May 30 12:10:11 2007] [error] [client 195.221.173.150]

> (13)Permission denied: access

> to /squirrelmail-1.4.10a/plugins/directory/directory.php denied,=20

=20

This might mean that the web server process cannot access the files.

Just change the files' permissions. Try something like 'sudo chmod -R go

+r /squirrelmail-1.4.10a/plugins/directory/ ' or equivalent.=20

=20

=20

--=20

Alexandros Vellis

avel@noc.uoa.gr

Attachments: