add eduPersonAffiliation and eduPersonPrimaryAffiliation to export-ldap2psl
This commit is contained in:
parent
5517d32255
commit
ea5357e001
|
@ -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
|
||||
|
|
Reference in New Issue