conn = ldap.initialize('ldaps://mussel.ucc.gu.uwa.edu.au/')
binddn = 'cn=mifareagent,ou=profile,dc=ucc,dc=gu,dc=uwa,dc=edu,dc=au'
- passfile = open('/etc/dispense/ldap.passwd')
+ passfile = open('/etc/dispense2/ldap.passwd')
password = passfile.readline().strip()
passfile.close()
\r
class MIFAREClient:\r
def __init__(self):\r
- self.port = Serial('/dev/ttyS0', baudrate = 19200)\r
+ self.port = Serial('/dev/ttyS2', baudrate = 19200)\r
self.reader = MIFAREReader(self.port)\r
self.reader.set_led(red = False, green = True)\r
self.reader.beep(100)\r
from optparse import OptionParser
op = OptionParser(usage="%prog [OPTION]...")
- op.add_option('-f', '--config-file', default='/etc/dispense/servers.conf', metavar='FILE', dest='config_file', help='use the specified config file instead of /etc/dispense/servers.conf')
+ op.add_option('-f', '--config-file', default='/etc/dispense2/servers.conf', metavar='FILE', dest='config_file', help='use the specified config file instead of /etc/dispense/servers.conf')
op.add_option('--serial', action='store_true', default=True, dest='use_serial', help='use the serial port')
op.add_option('--lat', action='store_true', default=False, dest='use_lat', help='use LAT')
op.add_option('--virtualvend', action='store_false', default=True, dest='use_serial', help='use the virtual vending server instead of LAT')