[turba] trouble writing to LDAP.... Undefined index: dn in /usr/local/horde/turba/lib/Driver/ldap.php on line 285
Steve Neuharth
steveneu@tiny.net
Thu, 6 Sep 2001 06:44:08 -0500
I changed bind_dn to dn and bind_password to password (duh) now I get no
error but I still get a white screen and the add fails.
I also failed to mention that I'm running HEAD outta CVS. (turba ver
0.0.3)
----- Original Message -----
From: "Steve Neuharth" <steveneu@tiny.net>
To: <turba@lists.horde.org>
Sent: Wednesday, September 05, 2001 10:52 PM
Subject: [turba] trouble writing to LDAP.... Undefined index: dn in
/usr/local/horde/turba/lib/Driver/ldap.php on line 285
>
> I've got turba working but I'd like to have the ability to add/modify
> users in my LDAP source. I *THINK* I have everything set up right in
> sources.php....
>
> $cfgSources['localldap'] = array(
> 'title' => 'LocalDirectory',
> 'type' => 'ldap',
> 'params' => array(
> 'server' => '127.0.0.1',
> 'port' => 389,
> 'root' => 'dc=miniguys,dc=com',
> 'bind_dn' => 'cn=Manager,dc=xxx,dc=com',
> 'bind_password' => YOUWISH
> ),
> 'map' => array(
> '__key' => 'dn',
> 'name' => 'cn',
> 'email' => 'mail',
> 'homeAddress' => 'postaladdress',
> 'homePhone' => 'homephone',
> 'workAddress' => 'workaddress',
> 'workPhone' => 'telephonenumber',
> 'cellPhone' => 'mobile',
> 'fax' => 'fax',
> 'title' => 'title',
> 'company' => 'company',
> 'notes' => 'description'
> ),
> 'public' => false,
> 'readonly' => false
> );
>
> but I keep getting the error...
>
> httpd: PHP Warning: Undefined index: dn in
> /usr/local/horde/turba/lib/Driver/ldap.php on line 285
>
> accompanied by a blank screen in the browser....
>
> here is the code that generates the error... tho' I'm not sure how it's
> supposed to work (that's why I'm asking)
>
> function makeKey($attributes)
> {
> $dn = '';
> if (is_array($this->params['dn'])) {
> foreach ($this->params['dn'] as $param) {
> if (isset($attributes[$param])) {
> $dn .= $param . '=' . $attributes[$param] . ',';
> }
> }
> }
>
> $dn .= $this->params['root'];
> return $dn;
> }
>
>
>
>
>
>
>
> --
> Turba mailing list: http://horde.org/turba/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe@lists.horde.org
>
>
>
>From janmailing@gmx.de Date: Thu, 6 Sep 2001 14:06:57 +0200
Return-Path: <janmailing@gmx.de>
Mailing-List: contact turba-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list turba@lists.horde.org
Received: (qmail 30462 invoked from network); 6 Sep 2001 12:15:08 -0000
Received: from mailout04.sul.t-online.com (HELO mailout04.sul.t-online.de) (194.25.134.18)
by horde.org with SMTP; 6 Sep 2001 12:15:08 -0000
Received: from fwd02.sul.t-online.de
by mailout04.sul.t-online.de with smtp
id 15ey3m-0005Xx-00; Thu, 06 Sep 2001 14:15:06 +0200
Received: from linux.wg.de (320034214675-0001@[217.0.157.110]) by fmrl02.sul.t-online.com
with esmtp id 15ey3k-1j6Y40C; Thu, 6 Sep 2001 14:15:04 +0200
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 f86C6vV32661
for <turba@lists.horde.org>; Thu, 6 Sep 2001 14:06:57 +0200
Received: from 192.168.60.1 ( [192.168.60.1])
as user jan@mail.wg.de by linux.wg.de with HTTP;
Thu, 6 Sep 2001 14:06:57 +0200
Message-ID: <999778017.3b9766e1567e1@linux.wg.de>
Date: Thu, 6 Sep 2001 14:06:57 +0200
From: Jan Schneider <janmailing@gmx.de>
To: turba@lists.horde.org
References: <999664697.3b95ac39a60db@secure.birddog.com> <999702273.3b963f0204ce0@marina.horde.org> <999703339.3b96432bd9dbe@secure.birddog.com> <999703589.3b96442531a28@marina.horde.org> <999703854.3b96452ee4b47@secure.birddog.com> <999704662.3b964856dc6dd@marina.horde.org> <999706842.3b9650daefd76@secure.birddog.com> <999710367.3b965e9fee9a7@marina.horde.org> <999712874.3b96686b010c6@secure.birddog.com>
In-Reply-To: <999712874.3b96686b010c6@secure.birddog.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [turba] attributes - help
I just changed the code that way that all fields you define in attributes.php
and sources.php are dynamically displayed in the edit and display view.
Pay attention to the changed attributes.php.dist.
Jan.
Zitat von Terry Davis <tdavis@birddog.com>:
> I just tried with netscape and was able to see all of the fields fine.
> Very
> weird. I didn't see any errors in the ldap logs either.
>
> Thanks again,
> --
> Terry Davis
> Systems Administrator
> BirdDog Solutions, Inc.
> (402) 829-6059
>
>
> Quoting Chuck Hagenbuch <chuck@horde.org>:
>
> > Quoting Terry Davis <tdavis@birddog.com>:
> >
> > > Things are falling together. It makes perfect sense and is a great way
> of
> > doing
> > > things. However, I am not able to get a few attributes to work. I see
> > the
> > > spaces for them on the page but the values are not being put into the
> > fields.
> > > workPhone,workAddress,and fax are not showing up.
> >
> > Have you checked your ldap server logs to see what query it's being sent,
> > and
> > tested that from another client?
> >
> > -chuck
> >
> > --
> > Charles Hagenbuch, <chuck@horde.org>
> > Some fallen angels have their good reasons.
> >
> > --
> > Turba mailing list: http://horde.org/turba/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: turba-unsubscribe@lists.horde.org
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>
> --
> Turba mailing list: http://horde.org/turba/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe@lists.horde.org
>
>
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::
>From tdavis@birddog.com Date: Thu, 6 Sep 2001 15:17:37 -0500
Return-Path: <tdavis@birddog.com>
Mailing-List: contact turba-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list turba@lists.horde.org
Received: (qmail 45308 invoked from network); 6 Sep 2001 20:18:33 -0000
Received: from hermes.birddog.com (63.125.164.131)
by horde.org with SMTP; 6 Sep 2001 20:18:33 -0000
Received: from localhost (prometheus.birddog.com [10.2.0.4])
by hermes.birddog.com (8.11.6/8.11.6) with ESMTP id f86KJLF20759;
Thu, 6 Sep 2001 15:19:21 -0500
Received: from 10.10.10.200 ( [10.10.10.200])
as user td@imap.birddog.com by secure.birddog.com with HTTP;
Thu, 6 Sep 2001 15:17:37 -0500
Message-ID: <999807457.3b97d9e154c56@secure.birddog.com>
Date: Thu, 6 Sep 2001 15:17:37 -0500
From: Terry Davis <tdavis@birddog.com>
To: Terry Davis <tdavis@birddog.com>
Cc: turba@lists.horde.org
References: <999725244.3b9698bc4e428@secure.birddog.com> <999725637.3b969a45e4026@secure.birddog.com>
In-Reply-To: <999725637.3b969a45e4026@secure.birddog.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 10.10.10.200
X-Scanned-By: MIMEDefang 1.3 (www dot roaringpenguin dot com slash mimedefang)
Subject: Re: [turba] ldap - personal address books
Any ideas on this at all? I am thinking this would be a good feature that
others would use as well. Perhaps I am not giving enough information.
Thank you for any feedback,
--
Terry Davis
Systems Administrator
BirdDog Solutions, Inc.
(402) 829-6059
Quoting Terry Davis <tdavis@birddog.com>:
> Ok, I found where i can specify the bind_dn and bind_password (in the
> driver).
> Is there an environment variable that contains the username and another that
>
> contains the passwd so that I can fulfill these parameters?
>
> --
> Terry Davis
> Systems Administrator
> BirdDog Solutions, Inc.
> (402) 829-6059
>
>
> Quoting Terry Davis <tdavis@birddog.com>:
>
> > Hello,
> > I want to privide each user with their own ldap-based addressbook. This
> is
> > not hard at
> > all I just need to tie horde auth into the ldap config somehow. Also,
> what
> > does the
> > public switch do for sources? For example: (notice $USERNAME)
> >
> > $cfgSources['tdavis-abook'] = array(
> > 'title' => 'Terry Davis Address Book',
> > 'type' => 'ldap',
> > 'params' => array(
> > 'server' => 'ldap.birddog.com',
> > 'port' => 389,
> > 'root' => 'ou=$USERNAME,ou=AddressBooks,dc=birddog,dc=com',
> > 'dn' => array('cn'),
> > 'objectclass' => 'person',
> > 'objectclass' => 'organizationalPerson',
> > 'objectclass' => 'inetOrgPerson',
> > 'objectclass' => 'inetLocalMailRecipient',
> > 'objectclass' => 'account',
> > 'objectclass' => 'top',
> > 'filter' => ''
> > ),
> > 'map' => array(
> > '__key' => 'dn',
> > 'name' => 'cn',
> > 'email' => 'mail',
> > 'alias' => 'givenname',
> > 'title' => 'title',
> > 'department' => 'ou',
> > 'workPhone' => 'telephoneNumber',
> > 'pager' => 'pager',
> > 'cellPhone' => 'mobile',
> > 'fax' => 'facsimileTelephoneNumber',
> > 'workAddress' => 'postalAddress'
> > ),
> > 'public' => false,
> > 'readonly' => false
> > );
> >
> > Also where can I specify the bind credentials for ldap?
> >
> > --
> > Terry Davis
> > Systems Administrator
> > BirdDog Solutions, Inc.
> > (402) 829-6059
> >
> >
> >
> >
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> >
> >
> > --
> > Turba mailing list: http://horde.org/turba/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: turba-unsubscribe@lists.horde.org
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/