diff --git a/export-ldap2psl b/export-ldap2psl index 34bce75..abeee98 100755 --- a/export-ldap2psl +++ b/export-ldap2psl @@ -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