Changeset 2925
- Timestamp:
- 06/03/10 13:06:02
- Files:
-
- trunk/util/processLocationData.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/util/processLocationData.sh
r2912 r2925 1 1 #! /bin/bash -f 2 3 #--- Settings --- 4 5 uidPrefix="bw" 6 uidSuffix="@berkeley.edu" 7 locLdapContainer='ou=locations,dc=berkeley,dc=edu' 8 peopleLdapContainer='ou=locations,dc=berkeley,dc=edu' 2 9 3 10 # data was generated by taking the Berkeley data and putting it through `grep '^[a-zA-Z ]* ([0-9]*)'` 4 11 # to get records that are likely to be a building and a room number. 5 #6 12 13 # input 14 INFILE=BerkeleyLocRecords.txt 7 15 # field seperator used in input file 8 16 FS='|' 9 17 10 # input and output files 11 INFILE=BerkeleyLocRecords.txt 18 # output 12 19 LDAPLOC=ldapLoc 13 20 VCARDLOC=vcardLoc … … 18 25 objectclass: calendarresource 19 26 objectclass: schedapprovalinfo 20 objectclass: organizationalUnit" 27 objectclass: organizationalUnit"locLdapContainer='ou=locations,dc=berkeley,dc=edu' 28 peopleLdapContainer='ou=locations,dc=berkeley,dc=edu' 21 29 VCARDHeader="BEGIN:VCARD 22 30 VERSION:4.0" 23 31 VCARDFooter=" END:VCARD" 24 uidPrefix="bw" 25 uidSuffix="@berkeley.edu" 32 33 #--- end settings --- 26 34 27 35 cp /dev/null $LDAPLOC … … 96 104 97 105 #LDAP 98 echo "dn: cn=$cn, ou=locations,dc=berkeley,dc=edu106 echo "dn: cn=$cn,$locLdapContainer 99 107 $LDAPSetLines 100 108 calresourcekind: location … … 123 131 ### people 124 132 if [ $buildPerson = "true" ]; then 125 echo "dn: cn=${roomManager}, ou=people,dc=berkeley,dc=edu">> $LDAPPEOPLE133 echo "dn: cn=${roomManager}, $peopleLdapContainer >> $LDAPPEOPLE 126 134 fi 127 135
