LDAPEqualSign

Author Message

cliffp pratt

Thursday 21 October 2010 6:57:53 pm

I have LDAPEqualSign set to '--' on override/ldap.ini.append.php. However from a tcpdump it appears that this is not being used. See below. This is in 4.0.7 updated from 3.8.

LDAPEqualSign=--

Any ideas?

Cheers,

Cliff

TCPDUMP:

14:24:33.975600 IP xxxxxxxxxxxxx.39535 > yyyyyyyyyyyyyyyy.ldap: P 1:89(88) ack 1 win 46 <nop,nop,timestamp 360614234 0>
0x0000: 4500 008c 326c 4000 4006 7b02 ac14 1fd2 E...2l@.@.{.....
0x0010: ac14 1503 9a6f 0185 34c3 bb2b 51dc b869 .....o..4..+Q..i
0x0020: 8018 002e 8d7c 0000 0101 080a 157e 895a .....|.......~.Z
0x0030: 0000 0000 3056 0201 0160 5102 0103 0440 ....0V...`Q....@
0x0040: 434e 2d2d 496e 7472 616e 6574 2053 6572 CN--Intranet.Ser
0x0050: 7665 722c 4f55 2d2d 444d 2050 6574 6f6e ver,OU--DM.Peton
0x0060: 652c 4f55 2d2d 5f55 7365 7273 2c44 432d e,OU--_Users,DC-
0x0070: 2d69 736f 7461 6368 2c44 432d 2d63 6f6d -isotach,DC--com
0x0080: 800a xxxx xxxx xxxx xxxx xxxx ..xxxxxxxxxxx

André R.

Friday 22 October 2010 4:37:07 am

What setting are you using -- on ?

Some settings did not use LDAPEqualSign, like BindUser and GroupBaseDN, it was improved in 4.1:

http://github.com/ezsystems/ezpublish/commit/559c4267fbecfffcd554221164786cd8b781e71a

Changes in question:

$LDAPBindUser = str_replace( $LDAPEqualSign, "=", $LDAPBindUser );

and

$LDAPGroupBaseDN = str_replace( $LDAPEqualSign, '=', $LDAPGroupBaseDN );

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

cliffp pratt

Saturday 23 October 2010 3:33:50 pm

Ah, I'm using it on LDAPBindUser. I've already had a brief look at ezldapuser.php. I'm unwilling to change base code unless I have to, but I'll have a go. I can't believe that I am the only one to have this problem!

I'm currently stuck on 4.0.7 trying to get it to work, having upgraded stepwise from 3.8. I tried upgrading to 4.2.0 stepwise, but not testing at each step, using the upgrade documents, but I ended up with a 4.2.0 which had many problems. I've therefore gone back to the start and upgraded stepwise to 4.0.7, testing at each step.

This has already taken aeons longer than it should and naturally people are getting impatient. And I'm getting very frustrated. Many thanks for your help. I don't think that I could have got this far without help from yourself and the forums.

Cheers,

Cliff

André R.

Sunday 24 October 2010 2:31:41 am

You can alternatively grab ezldapuser.php from svn / git stable/4.1 branch, but if you do you'll also need to download ldap.ini to make sure default values for new settings gets correct value.

As for upgrading, that is a tricky issue.
Form 3.x to 4.x you have encoding, url alias issue and a bunch of other stuff to look out for. Double check that your tables are innodb and utf8 before you launch the 4.0 site.

In 4.1.4 you have lots of handler settings that where changed to use autoloading, and in 4.2 there was changes to ezxmltext that caused issues for old content that wasn't really fixed before 4.4 (most of the issues where fixed in 4.3 though).
You should try ezupgrade maybe, doesn't solve anything but does make upgrading a bit easier.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

cliffp pratt

Monday 25 October 2010 3:17:25 pm

I grabbed the ezldapuser.php from the 4.1.4 tarball, and it works, thanks!!

On to the next problem...

Cheers,

Cliff

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:00:14
Script start
Timing: Jan 18 2025 05:00:14
Module start 'layout'
Timing: Jan 18 2025 05:00:15
Module start 'content'
Timing: Jan 18 2025 05:00:15
Module end 'content'
Timing: Jan 18 2025 05:00:15
Script end

Main resources:

Total runtime0.9656 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9063152.6250
Module start 'layout' 0.00560.0044 740.531339.4531
Module start 'content' 0.01000.9539 779.9844564.8516
Module end 'content' 0.96390.0016 1,344.835916.1797
Script end 0.9655  1,361.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3559160.0002
Check MTime0.00150.1503160.0001
Mysql Total
Database connection0.00110.114110.0011
Mysqli_queries0.886991.8553640.0139
Looping result0.00080.0840620.0000
Template Total0.926095.920.4630
Template load0.00230.233220.0011
Template processing0.923795.662920.4618
Template load and register function0.00010.014410.0001
states
state_id_array0.00120.128310.0012
state_identifier_array0.00230.237820.0011
Override
Cache load0.00170.1779470.0000
Sytem overhead
Fetch class attribute can translate value0.00070.072420.0003
Fetch class attribute name0.00160.160660.0003
XML
Image XML parsing0.00080.084620.0004
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00320.3270170.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs