From: Yaron K. <ya...@wi...> - 2013-01-30 15:03:05
|
Hi Mario, It looks like the issue here isn't with the LDAP functionality per se, but with the code that handles the "data=" parameter. It was changed in version 1.4.2, and now it fails when any of the local variables contain an underscore ("_"). (External variables can still contain one, though that doesn't help you.) You can see the change here, so if you don't mind going into the code, I would suggest modifying the regular expression back to what it used to be: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/ExternalData.git;a=commitdiff;h=3bd2ec0b1a41d054488801e3018672af0e34b908 Either that, or you can revert External Data back to an earlier version. Or you can get rid of the underscores in your local variables, although I would hate for people to start doing that just because of this one bug. -Yaron On Wed, Jan 30, 2013 at 8:45 AM, Mario Schubert <mar...@er...>wrote: > Hello guys, > > I have updated my MediWiki by git to REL1_20, including the > SemanticMediaWiki extensions. No further changes on the environment. > > ExternalData 1.3.5 to 1.5 > > Unfortunately the #get_ldap_data gives now no data. It worked before. > > Has the format changed? > > I am using: > > {{#get_ldap_data: > domain=example.com > |filter=(sAMAccountName=abc) > > |data=ldap_email=mail,ldap_name=name,ldap_description=description,ldap_title=title,ldap_telefon=telephonenumber,ldap_nachname=sn,ldap_vorname=givenname > }} > > I put in some wfDebug(): > > ldap_search gets > > $attributes="mail,ldap_name=name,ldap_description=description,ldap_title=title,ldap_telefon=telephonenumber,ldap_nachname=sn,ldap_vorname=givenname" > > It returns the correct dn but nothing else. No variables are set. > > > What am I missing? > > Thank you very much for your help. > > > Best regards > Mario > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |