IPlanet LDAP conformamce (simply LDAP conformamce)
HAHN Nicolas
n_hahn@yahoo.com
Fri, 8 Mar 2002 17:25:23 +0100 (CET)
Hi guys :-)
Following the mail I've written early today - it was about a problem to
register the attributes in an Iplanet LDAP server, because preference
attributes of Horde / Imap contain underscores (_) which is forbidden
in LDAP - I've modified the file lib/Prefs/ldap.php.
The modification simply replace all _ by 0 just before the attributes
are sent to the LDAP server in the function store($prefs = array()).
Also, I've modified the function retrieve($prefs = array()) to replace
all 0 from attributes read from the LDAP server by _ again.
By this way, absolutely nothing else needs to be change in the other
source files (normally ! I hope !), like modification of all variable
names which contain underscores, and which are stored as attributes in
the LDAP server.
I just have to test this to be sure it works with my LDAP server but as
far as I know, it shouldn't be a problem.
Note that this is a correction I just did for me: I think I will wait a
correction from the Horde team :-)
=====
Nicolas HAHN, ICQ: 51593394
System/Network administrator & webmaster
UNIX / LINUX engineer
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
>From jan@horde.org Date: Fri, 8 Mar 2002 14:36:50 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 11974 invoked from network); 8 Mar 2002 16:27:01 -0000
Received: from mailout03.sul.t-online.com (194.25.134.81)
by clark.horde.org with SMTP; 8 Mar 2002 16:27:01 -0000
Received: from fwd07.sul.t-online.de
by mailout03.sul.t-online.com with smtp
id 16jKhP-0007kt-01; Fri, 08 Mar 2002 14:46:19 +0100
Received: from linux.wg.de (320034214675-0001@[217.225.39.167]) by fmrl07.sul.t-online.com
with esmtp id 16jKhM-0e8reyC; Fri, 8 Mar 2002 14:46:16 +0100
Received: from localhost (localhost [127.0.0.1])
by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g28DaoR22942
for <imp@lists.horde.org>; Fri, 8 Mar 2002 14:36:50 +0100
Received: from 192.168.60.141 ( [192.168.60.141])
as user jan@linux by jan.dip.ammma.net with HTTP;
Fri, 8 Mar 2002 14:36:50 +0100
Message-ID: <1015594610.3c88be721987e@jan.dip.ammma.net>
Date: Fri, 8 Mar 2002 14:36:50 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <20020308132821.183.qmail@web13003.mail.yahoo.com>
In-Reply-To: <20020308132821.183.qmail@web13003.mail.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Fwd: LDAP schema, LDAP configuration, LDAP problems.
Zitat von HAHN Nicolas <n_hahn@yahoo.com>:
> > But What I really need is the LDAP schema to reproduce it in my LDAP
> > server, because I don't know what are the attribute names you use to
> > store all the preferences, so each time I have fatal errors in horde
> > because it cannot write in any attributes (because they need to be
> > created !!!)
> >
> > It was the first point.
> >
> > I did some investigations and I found that the attributes you use
> > contains some underscores (_) (for example use_trash), and those kind
> > of parameters are not compatible with LDAP. Could you provide us a
> > solution (provide source codes with parameters which do not contain
> > underscores,...) ? Otherwise I will have to remode all the
> > underscores
> > myself but I don't know if the product will work after that.
> >
> > It was the second point.
This was just been added/fixed in the cvs version and will probably be
merged into the next release. So you should try the latest code from cvs
HEAD or wait for the next release to come.
> > And finally, to store the preferences in the LDAP server, I can see
> > that the ldap_search function perform its search with a user name
> > which
> > is the email address of the user who is log in, but not the uid of
> > the
> > user (that is to say his login name). For us, it is clear we cannot
> > lookup our users with a search key which is their email. We really
> > need
> > to use a search key which is the uid. Gould you provide a solution
> > for
> > this, please ?
You probably have a 'realm' set in config/servers.php. This gets appended
to the users login name. Set it empty and the login name stays as it is.
> > - give possibility to the users to choose their own theme
Not yet possible but there are already some themes that can be applied for
the whole server: http://horde.org/themes/
> > - give the possibility to the administrator to lock the access to
> > some
> > parts of IMP: for exemple we don't want the user can modify his
> > identity.
This IS possible. You can lock any preference in config/prefs.php.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft