add eduPersonAffiliation and eduPersonPrimaryAffiliation to export-ldap2psl

This commit is contained in:
Benjamin Dauvergne 2016-11-17 23:51:37 +01:00
parent 5517d32255
commit ea5357e001
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ LOG=`tempfile`
trap "rm $TMP $LOG" EXIT
if ldapsearch -L -E pr=2147483647/noprompt $CREDENTIALS -s base -b dc=curie,dc=fr '' objectClass dc supannEtablissement o >$TMP 2>$LOG && \
ldapsearch -L -E pr=2147483647/noprompt $CREDENTIALS -s base -b ou=people,dc=curie,dc=fr '' objectClass ou >>$TMP 2>$LOG && \
ldapsearch -L -E pr=2147483647/noprompt $CREDENTIALS -s one -b ou=people,dc=curie,dc=fr '' objectClass cn uid sn givenName supannEtablissement mail telephoneNumber supannListRouge >>$TMP 2>$LOG; then
ldapsearch -L -E pr=2147483647/noprompt $CREDENTIALS -s one -b ou=people,dc=curie,dc=fr '' objectClass cn uid sn givenName supannEtablissement mail telephoneNumber supannListRouge eduPersonAffiliation eduPersonPrimaryAffiliation >>$TMP 2>$LOG; then
echo 'version: 1'
cat $TMP | sed '/^version: 1/d' | sed '/^objectClass: icPerson/d'
exit 0