Changeset 762 for server


Ignore:
Timestamp:
Jun 3, 2008, 1:43:58 PM (17 years ago)
Author:
quentin
Message:
Don't scan vhosts if there isn't a vhost directory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/whoisd/whoisd.tac

    r627 r762  
    2020        self.ldap_base = ldap_base
    2121        self.vhosts = {}
    22         self.rescanVhosts()
     22        if vhostDir:
     23            self.rescanVhosts()
    2324    def rescanVhosts(self):
    2425        newVhosts = {}
     
    6869            user = pwd.getpwuid(int(attrs['apacheSuexecUid']))
    6970            if user:
    70                 attrs['locker'] = user.pw_name
     71                attrs['locker'] = user.pw_namep
    7172            else:
    7273                attrs['locker'] = None
     
    8788
    8889application = service.Application('whois', uid=99, gid=99)
    89 factory = WhoisFactory("/etc/httpd/vhosts.d",
     90factory = WhoisFactory(None,
    9091    "ldap://localhost", "ou=VirtualHosts,dc=scripts,dc=mit,dc=edu")
    9192internet.TCPServer(43, factory).setServiceParent(
Note: See TracChangeset for help on using the changeset viewer.