Hi Patrick,

Il 10/06/2015 20:45, Patrick LeBoutillier ha scritto:
Hi,

Are there any docs for this connector?

At the moment there aren't docs for this connector [1].

I sort of got it working, but I have no idea how to implement the search.
What would the script return?
Your search script must return a set of attributes, use the specific string ("--- NEW SEARCH RESULT ITEM ---") for separating each result item

Search all users:

--- NEW SEARCH RESULT ITEM ---
__UID__=$uid
__NAME__=$uid
__ENABLE__=$isenabled
attr1=$attr1
attr2=$attr2

Search one user:

__UID__=$uid
__NAME__=$uid
__ENABLE__=$isenabled
attr1=$attr1
attr2=$attr2


Also, the password is exposed to the script like this:

__PASSWORD__=org.identityconnectors.common.security.GuardedString@3e194c83

In your resource configuration, add a propagation action [2] with this code:

final GuardedString guardedPwd = AttributeUtil.getPasswordValue(attributes);
    if (guardedPwd != null) {
        String password = connObjectUtil.getPassword(guardedPwd);
        attributes.add(AttributeBuilder.build("password", password));
    }

in this way you will have a readable password for your script


This looks like a Java reference. Shouldn't the connector "unguard" it before
placing it in the script's envronment?

If you have other questions about the connector, please join to ConnId users group [3]

Regards
Marco


[1] https://connid.atlassian.net/wiki/display/BASE/CMD
[2] https://cwiki.apache.org/confluence/display/SYNCOPE/PropagationActionsClass
[3] https://groups.google.com/forum/?fromgroups#!forum/connid-users


Thanks,

Patrick
--
*Patrick LeBoutillier, CISSP*
Directeur Stratégie et Architecture TI
600 Armand-Frappier, Suite 200
Laval, Quebec, H7V 4B4
T: 450-662-6101 poste 136
<http://www.croesus.com>
<http://www.croesus.com/>
<http://www.linkedin.com/company/croesus-finansoft?trk=hb_tab_compy_id_26141><http://www.facebook.com/pages/Croesus-Finansoft/345020305606240><https://twitter.com/CroesusFin>


_________________________________________________________________________

*Avis *: Ce message ne vise uniquement que son destinataire et peut contenir de l’information confidentielle. Son utilisation/divulgation non-autorisée est interdite. Si reçu par erreur, veuillez en aviser l’expéditeur et supprimer ce message et toute pièce jointe de votre système.

*Notice*: This message is intended to its recipient only and may contain privileged information. Unauthorized use/disclosure is prohibited. If received by error, please notify the sender and delete this message and any attachments from your system.

--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/

Reply via email to