[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
Fri, 7 Sep 2001 14:57:04 -0500


  Yea but I'm using the manager account... aci's shouldn't matter. I used
this account to get the information into the directory in the first place.
It should work.

  Anyway... what can I use for the objectclass? I'm trying to use "person"
but that objectClass requires the "sn" (surname) attribute. Am I going to
have to edit templates and such to include this attribute in the forms etc?
As it stands now it appears that it is working but I'm getting a "Missing
required attribute" when I try to add an entry.

  What does everyone else use for objectClass? or LDAP directory for that
matter?


----- Original Message -----
From: "Terry Davis" <tdavis@birddog.com>
To: <turba@lists.horde.org>
Sent: Friday, September 07, 2001 10:59 AM
Subject: Re: [turba] trouble writing to LDAP.... Undefined index: dn in
/usr/local/horde/turba/lib/Driver/ldap.php on line 285


> you are correct.  The default is: access to * by * read .
> There is also a search acl as well.
> --
> Terry Davis
> Systems Administrator
> BirdDog Solutions, Inc.
> (402) 829-6059
>
>
> Quoting Edwin Culp <eculp@EnContacto.Net>:
>
> > Steve, AFAIK, you need an acl to be able to change as the general one I
> > sent
> > for openldap in the previous message.  Please correct me if I'm wrong
but I
> >
> > think slapd does not give write privileges by default.
> >
> > ed
> >
> > Quoting Steve Neuharth <steveneu@tiny.net>:
> >
> > |   no, I have no aci's at all. I'm logging in as the root account....
> > | stupid,
> > | I know but I'm only testing.
> > | public and readonly are set correctly...
> > |   I think I'm getting closer but it's definitely time for bed.... If
only
> > I
> > | could go without sleep, I'd probably get it working.
> > |
> > | ----- Original Message -----
> > | From: "Edwin Culp" <eculp@EnContacto.Net>
> > | To: <turba@lists.horde.org>
> > | Sent: Thursday, September 06, 2001 8:22 PM
> > | 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
> > | > |
> > | > |
> > | >
> > | >
> > | >
> > | >
> > | > ---
> > | >
> > | > --
> > | > 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
> > |
> > |
> >
> >
> >
> >
> > ---
> >
> > --
> > 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
>
>
>



>From chuck@horde.org Date: Fri,  7 Sep 2001 16:14:38 -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 29349 invoked from network); 7 Sep 2001 20:15:09 -0000
Received: from h00104bc60b3c.ne.mediaone.net (HELO marina.horde.org) (24.91.198.7)
  by horde.org with SMTP; 7 Sep 2001 20:15:09 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id BDAB339F6; Fri,  7 Sep 2001 16:14:38 -0400 (EDT)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@localhost by marina.horde.org with HTTP;
	Fri,  7 Sep 2001 16:14:38 -0400
Message-ID: <999893678.3b992aae94840@marina.horde.org>
Date: Fri,  7 Sep 2001 16:14:38 -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> <999825738.3b98214a96d99@Mail.SavvyWorld.Net> <002701c13759$2f842150$0201000a@miniguys.com> <999872558.3b98d82eace51@Mail.SavvyWorld.Net> <999878370.3b98eee260d62@secure.birddog.com> <002b01c137d7$448b22f0$0201000a@miniguys.com>
In-Reply-To: <002b01c137d7$448b22f0$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>:

>   Anyway... what can I use for the objectclass? I'm trying to use "person"
> but that objectClass requires the "sn" (surname) attribute. Am I going to
> have to edit templates and such to include this attribute in the forms etc?
> As it stands now it appears that it is working but I'm getting a "Missing
> required attribute" when I try to add an entry.

If you want to add it, just make sure it's in your source map and in 
attributes.php, and it'll magically show up everywhere.

> What does everyone else use for objectClass? or LDAP directory for that
> matter?

I use person; for the server I use openldap, with schema checking turned off.

-chuck

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