Yes, concerning WYSIWYG I think: [XWIKI-9701] If profile details fields are empty, don't display them - XWiki.org JIRA ________________________________ De : Thomas Mortagne <[email protected]> À : Pascal BASTIEN <[email protected]> Cc : XWiki Users <[email protected]> Envoyé le : Mardi 14 octobre 2014 11h44 Objet : Re: [xwiki-users] question about ldap authentication Depends what you mean exactly by "disable". In any case if you feel there is a bug it would be better to create an issue on http:/jira.xwiki.org than discussion it on a thread about LDAP module :) On Tue, Oct 14, 2014 at 11:23 AM, Pascal BASTIEN <[email protected]> wrote:
Thanks but it is a little bit complicate for me :-)
By the way I discover a new bug in xwiki 6.2.1:
If I disable a TextArea field (like "adress" in /bin/edit/XWiki/XWikiUsers?editor=class ):
- in edit mode /bin/edit/XWiki/MyUser?editor=inline&category=profile the field (in a WYSIWYG editor zone) is not disabled
- AND it is impossible to record XWiki/MyUser page "Erreur: XWiki.XWikiUsers_0_address: Exception while parsing HTML"
________________________________ De : Thomas Mortagne <[email protected]> À : Pascal BASTIEN <[email protected]> Cc : XWiki Users <[email protected]> Envoyé le : Mardi 14 octobre 2014 10h24
Objet : Re: [xwiki-users] question about ldap authentication
Another possible workaround would be the following: * add new field to the user class as you did already but don't modify the user UI * write a listener which will receive user document modification and fill the standard adress field used the two custom fields when there is a change (see extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Local)
On Tue, Oct 14, 2014 at 10:11 AM, Pascal BASTIEN <[email protected]> wrote:
Ok Thanks you.
Then I searching and as soon it is surprising ... I managed another way :-)
- I add a field in /edit/XWiki/XWikiUsers?editor=class, like town (string) by example, I disabled all ldapd field mapped to put them read only in 'edit mode'
- I add it in /bin/view/XWiki/AdminUserProfileSheet page (section "contact")
- and of course I modify in WEB-INF/xwiki.cfg
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,...,town=MyLDAPfiels
Of course, to be perfet, I must disabled fields for ldapusers only.
Pascal B
________________________________ De : Thomas Mortagne <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users <[email protected]> Envoyé le : Lundi 13 octobre 2014 16h38 Objet : Re: [xwiki-users] question about ldap authentication
On Mon, Oct 13, 2014 at 4:17 PM, Pascal BASTIEN <[email protected]> wrote:
Hi, On Xwiki 6.2.1, I use xwiki.authentication.ldap.fields_mapping parameter in xwiki.cfg.
Are there a way to concatenate two ldap fields?
Unfortunately no. If you want to look at the code when this is done, see
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... and
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik....
By example, I have two LDAP field for adress (street and town) and I want concatenate them in the xwiki address field from XWiki User Class.
Thanks
Pascal B
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne