Forums / General / LDAP error...

LDAP error...

Author Message

Franck T.

Friday 03 September 2004 6:42:47 am

Everything was fine in my LDAP configuration but after some changes in my site design (especially in pagelayout.tpl) I get this odd message when trying to connect an LDAP user:

Fatal error: Call to a member function on a non-object in /usr/local/intranet/ezpublish/kernel/classes/datatypes/ezuser/ezldapuser.php on line 454
Fatal error: eZ publish did not finish it's request

There's nothing else in the ez debug.
And here is the line 454:

$contentObjectAttributes[0]->setAttribute ('data_text', $firstName) ;

Any idea will be helpfull.
Using 3.4.1

Franck T.

Monday 06 September 2004 1:54:56 am

Does anyone know what the attribute 'data_text' is ?

Tony Wood

Monday 06 September 2004 2:42:15 am

Hi,

check that your user has "first_name" setup.. The clue here is the $firstName. It means the code cannot find the field in the class.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Franck T.

Monday 06 September 2004 5:06:39 am

Hmm...
Thanks Tony, but my ldap.ini file hasn't changed since the first time and I do have a "first_name" attribute:

...
# LDAP attribute for First name. Normally, givenname
LDAPFirstNameAttribute=givenname
...

I don't see what's wrong with this.

Tony Wood

Saturday 25 September 2004 8:28:24 am

Sorry my fault. This refers to the firstname element in your LDAP db. As this is the first time data the LDAP data is accessed so problems are likely to show up here.
I would check all ldap settings in ldap.ini.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future