[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 19:51:10 -0500


source is....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

no errors in the web server errorlog but in php.log...
[06-Sep-2001 19:19:02] PHP Warning:  Wrong parameter count for var_dump() in
/us
r/local/horde/turba/lib/Driver/ldap.php on line 288

so what should I be dumping?



----- Original Message -----
From: "Chuck Hagenbuch" <chuck@horde.org>
To: <turba@lists.horde.org>
Sent: Thursday, September 06, 2001 7:12 PM
Subject: Re: [turba] trouble writing to LDAP.... Undefined index: dn in
/usr/local/horde/turba/lib/Driver/ldap.php on line 285


> Quoting Steve Neuharth <steveneu@tiny.net>:
>
> >   Thanks for the response. I'm still getting a big ol blank screen when
I
> > try to add a user to the directory.. is there any way to dump the bind
> > status to system variables so I can tell what is going on?
>
> You can put var_dump() calls in lib/Driver/ldap.php; you should also check
your
> httpd log files, since blank screens usually indicate segfaults (I assume
> you've done view source?).
>
> -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
>
>
>



>From chuck@horde.org Date: Thu,  6 Sep 2001 20:55:14 -0400
Return-Path: <chuck@horde.org>
Mailing-List: contact turba-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list turba@lists.horde.org
Received: (qmail 64044 invoked from network); 7 Sep 2001 00:55:45 -0000
Received: from h00104bc60b3c.ne.mediaone.net (HELO marina.horde.org) (24.91.198.7)
  by horde.org with SMTP; 7 Sep 2001 00:55:45 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id E04C83A05; Thu,  6 Sep 2001 20:55:14 -0400 (EDT)
Received: from 192.168.0.124 ( [192.168.0.124])
	as user chuck@localhost by marina.horde.org with HTTP;
	Thu,  6 Sep 2001 20:55:14 -0400
Message-ID: <999824114.3b981af2b25d8@marina.horde.org>
Date: Thu,  6 Sep 2001 20:55:14 -0400
From: Chuck Hagenbuch <chuck@horde.org>
To: turba@lists.horde.org
References: <001b01c13687$51fbb5e0$0201000a@miniguys.com> <000d01c136c9$3d554790$0201000a@miniguys.com> <999812754.3b97ee924c435@marina.horde.org> <001d01c13731$99e8caa0$0201000a@miniguys.com> <999821564.3b9810fc7a670@marina.horde.org> <005f01c13737$2fea7cb0$0201000a@miniguys.com>
In-Reply-To: <005f01c13737$2fea7cb0$0201000a@miniguys.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [turba] trouble writing to LDAP.... Undefined index:  dn in /usr/local/horde/turba/lib/Driver/ldap.php on line 285

Quoting Steve Neuharth <steveneu@tiny.net>:

> [06-Sep-2001 19:19:02] PHP Warning:  Wrong parameter count for var_dump() in
> /usr/local/horde/turba/lib/Driver/ldap.php on line 288

Sorry, you need to var_dump a specific variable. Like the result of ldap_bind, 
etc...

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.


>From eculp@EnContacto.Net Date: Thu,  6 Sep 2001 18:22:18 -0700
Return-Path: <eculp@EnContacto.Net>
Mailing-List: contact turba-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list turba@lists.horde.org
Received: (qmail 64502 invoked from network); 7 Sep 2001 01:22:24 -0000
Received: from adsl-64-173-182-158.dsl.mtry01.pacbell.net (HELO EnContacto.Net) (64.173.182.158)
  by horde.org with SMTP; 7 Sep 2001 01:22:24 -0000
Received: (from root@localhost)
	by EnContacto.Net (8.11.6/8.11.4) id f871MId94750
	for turba@lists.horde.org; Thu, 6 Sep 2001 18:22:18 -0700 (PDT)
	(envelope-from eculp@EnContacto.Net)
Received: from 24.20.19.75 ( [24.20.19.75])
	as user eculp@Mail.SavvyWorld.Net by Mail.SavvyWorld.Net with HTTP;
	Thu,  6 Sep 2001 18:22:18 -0700
Message-ID: <999825738.3b98214a96d99@Mail.SavvyWorld.Net>
Date: Thu,  6 Sep 2001 18:22:18 -0700
From: Edwin Culp <eculp@EnContacto.Net>
To: turba@lists.horde.org
References: <001b01c13687$51fbb5e0$0201000a@miniguys.com> <000d01c136c9$3d554790$0201000a@miniguys.com> <999812754.3b97ee924c435@marina.horde.org> <001d01c13731$99e8caa0$0201000a@miniguys.com>
In-Reply-To: <001d01c13731$99e8caa0$0201000a@miniguys.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: 24.20.19.75
Subject: Re: [turba] trouble writing to LDAP.... Undefined index:  dn in /usr/local/horde/turba/lib/Driver/ldap.php on line 285

Do you have an access list in your slapd.conf that may be in
conflict with what you are trying to do.  You might try a variant of 

access to * by * write 

in your slapd.conf until you work this out.

I also assume that you have 
    'public' => true,
    'readonly' => false
in your turba/sources.php for testing?

What is your acl 

Quoting Steve Neuharth <steveneu@tiny.net>:

|   Thanks for the response. I'm still getting a big ol blank screen when I
| try to add a user to the directory.. is there any way to dump the bind
| status to system variables so I can tell what is going on?
| 
| 
| > Quoting Steve Neuharth <steveneu@tiny.net>:
| >
| > >   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)
| >
| > bind_dn and bind_password were correct; change that back. dn is an array
| of
| > attributes that should be combined into your dn - for my local ldap
| server, I
| > just use cn. So:
| >
| > 'dn' => array('dn'),
| >
| > Try that...
| >
| > -chuck
| >
| > --
| > Turba mailing list: http://horde.org/turba/
| > Frequently Asked Questions: http://horde.org/faq/
| > To unsubscribe, mail: turba-unsubscribe@lists.horde.org
| >
| >
| >
| 
| 
| -- 
| Turba mailing list: http://horde.org/turba/
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: turba-unsubscribe@lists.horde.org
| 
| 




---