Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 1996 01:21:56 -0700
From:      "Ulf Zimmermann" <ulf@Lamb.net>
To:        hackers@freebsd.org
Subject:   wu-ftpd-2.4.2-beta-11 or virtual ftp
Message-ID:  <960924012156.ZM29528@Gatekeeper.Lamb.net>

next in thread | raw e-mail | index | archive | help
Hi.

I build wu-ftpd-2.4.2-beta-11 but I am not able to get virtual domains working.
Does anyone got this to work ? As far I have tracked it down in ftpd.c:

#ifdef VIRTUAL
    virtual_len = sizeof(virtual_addr);
    if (getsockname(0, (struct sockaddr *) &virtual_addr,
                    &virtual_len) < 0) {
      virtual_mode = 0;
    }
    else {
      virtual_ptr = (struct sockaddr_in *) &virtual_addr;
      set = 0;
      entry = (struct aclmember *) NULL;
      while (!set && getaclentry("virtual", &entry)) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

        if (!strcmp(ARG0, inet_ntoa(virtual_ptr->sin_addr))) {
          if (ARG1 != NULL && ARG2 != NULL) {
            virtual_mode = 1;
            strncpy(virtual_root, ARG1, MAXPATHLEN);
            strncpy(virtual_banner, ARG2, MAXPATHLEN);
            syslog(LOG_ERR, "VirtualFTP Connect to: %s",
                   inet_ntoa(virtual_ptr->sin_addr));
          }
        }
      }

This while is never executed, like as it can't read the virtual entries from
ftpaccess.

Any ideas ?


-- 
Ulf.

--------------------------------------------------------------------------
Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204
Lamb Art Internet Services | http://www.Lamb.net/ | http://www.Alameda.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?960924012156.ZM29528>