xperseguers / t3ext-ig_ldap_sso_auth

TYPO3 Extension ig_ldap_sso_auth. This extension provides LDAP and SSO support for TYPO3.
https://extensions.typo3.org/extension/ig_ldap_sso_auth
27 stars 68 forks source link

Adding multiple items from AD in mappings to insert into fe_users not possible #40

Closed angeloprevitali closed 5 years ago

angeloprevitali commented 5 years ago

Hi Xavier

we would like to insert into the Page TS of the fe_users the two lines inserted like that if the be_user adds a new page the information of the page gets autocompleted.

TCAdefaults.pages.author = Nom du auteur TCAdefaults.pages.author_email = redacteur@netconsult.ch

be_users-pagets

If we insert this in the configuration of the LDAP / SSO > BE USERS field "Mapping" the second line gets not inserted into the config of the Page TS of the fe_users.

TSconfig = TCAdefaults.pages.author = <name> TSconfig = TCAdefaults.pages.author_email = <mail>

ldap-pagets-settings-1

Any idea how to setup this? Is it possible?

Thanks for help.

Best regards, Angelo

xperseguers commented 5 years ago

Probably not the easiest way but I can think of either custom marker (with an extension of your own to post-process the mapping) or using a TS-based mapping. See the doc for examples.

I agree, simple multi-line mapping is not possible out of the box.

xperseguers commented 5 years ago

and by the way, your last screenshot with red border is clear why it's not interpreted at all (would expect the second line to be put to DB, instead of the first one). You wrote once TSconfig and the other time TSConfig, at some point having a field that does not exist in DB makes it vanish...

angeloprevitali commented 5 years ago

Thanks Xavier! The two lines are for shure that they will NOT work. That was only for make it clear. Any possible working solution you could offer me? Even paid for shure... Thanks.

angeloprevitali commented 5 years ago

In the docs we really do not understand clearly how we could set up a TS-based mapping like you told..

xperseguers commented 5 years ago

Did you try like I said with some TS-based mapping? Did not test but here's the idea:

TSconfig {
    cObject = COA
    cObject {
        10 = TEXT
        10 {
            field = name
            noTrimWrap = |TCAdefaults.page.author = ||
        }

        20 = TEXT
        20.char = 10

        30 = TEXT
        30 {
            field = email
            noTrimWrap = |TCAdefaults.page.email = ||
        }
    }
}
angeloprevitali commented 5 years ago

Thanks. This code gets inserted into the Mapping field configuration of the LDAP / SSO > BE USERS field "Mapping"? right?

xperseguers commented 5 years ago

Exactly, please see https://docs.typo3.org/typo3cms/extensions/ig_ldap_sso_auth/AdministratorManual/Users.html#mapping

you may mix the various types of mapping definitions.

angeloprevitali commented 5 years ago

Thanks Xavier! I will try this! How much will cost me this information? And by the way: Your Google Maps on your website isn't working anymore: See https://www.causal.ch/#contact Best regards, Angelo

xperseguers commented 5 years ago

oops, thx :)

xperseguers commented 5 years ago

(info free of use) :)

angeloprevitali commented 5 years ago

thx Xavier! Salutations à Fribourg!

angeloprevitali commented 5 years ago

i tried it and it works perfect :)