Hi,

OK, I see the scripts for unit tests. Currently I'm viewing the delete.sh
script. I tried to run this script to see what is actually doing.
I'm seeing that there is one ldapmodify command with some parameters. For
those parameters which are in uppercase, like LDAP_BIND_DN I understand
them.
But I don't know exactly what is the purpose of variable $text in this
command. Does the script want here some information about the LDAP user
object?
If yes from which process and how should I pass the value to this variable
$text.

>From the script delete.sh:
#!/bin/bash

line=""
read line
text="$line"

while test "$line" != ""
do
 read line
 text="$text
$line"
done

echo "Deleting account $1"

echo "$text" | ldapmodify -x -D "$LDAP_BIND_DN" -w "$LDAP_BIND_PW" -H
"$LDAP_URL"

exit $?

Thanks in advance for any explanation, that I could go further with
understanding the scripts.

Regards,
Matjaž

V V tor., 11. jun. 2019 ob 15:36 je oseba Clément OUDOT <
[email protected]> napisala:

>
> Le 11/06/2019 à 15:30, Matjaz Premerl a écrit :
> > Hi,
> >
> > So if I understand correctly these provided scripts are not just some
> > "blank" scripts and they're already providing the default
> > functionality for each action, correct?
> > Then I should change just delete.sh script, if I want some other
> > activity to achieve on delete operation?
> >
>
> Yes, these scripts are used for unit tests. You can find them here:
>
> https://github.com/lsc-project/lsc-executable-plugin/tree/master/src/test/resources/org/lsc/plugins/connectors/executable
>
>
> --
> Clément Oudot | Identity Solutions Manager
>
> [email protected]
>
> Worteks | https://www.worteks.com
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to