~ubuntu-branches/ubuntu/intrepid/samba/intrepid-updates

« back to all changes in this revision

Viewing changes to source/nsswitch/winbindd.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-06-02 09:01:46 UTC
  • mfrom: (0.25.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080602090146-92ur4nx39ccg708r
Tags: 2:3.0.30-2ubuntu1
* Merge from debian unstable, remaining changes:
  * debian/patches/VERSION.patch
    - set SAMABA_VERSION_VENDOR_SUFFIX to Ubuntu
  * debian/smb.conf
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] shares, and a comment about
      "value users = %S to show users how to restrict access to 
      \\server\useranem to only username.
    - Add map to guest = Bad user, maps bad username to guest access.
      (LP: #32067)
  * debian/samba-common.postinst:
    - Fix upgrade from a first installation done with feisty, edgy, or dapper.
      (LP: #201059)
    - When populating the new sambashare group, it's not an error if the user
      simply doesn't exist; test for this case and the install continue 
      instead of aborting. (LP: #206036)
  * debian/smba-common.config:
    - do not change priority to HIGH if dhclient3 is installed
    - used priority medium instead of hight for the workgroup question
  * debian/winbind.files
    - insclude additional files
  * debian/patches/fix-documentation.patch:
    - fix typos in net(8) and smb.conf(5) man pages
  * debian/mksambapasswd.awk:
    - Don't add user with UID less than 1000 to smbpasswd.
  * debian/samba.init:
    - add 'status' option for LSB conformance.
  * Updated control version.
  * Dropped Changes:
    - Dropped debian/patches/fix-smbprinting-os2.patch. Accepted upstream.
    - Dropped debian/patches/fix-documentation.patch. Accepted upstream.
     

Show diffs side-by-side

added added

removed removed

Lines of Context:
718
718
        return False;
719
719
}
720
720
 
 
721
/* check if HUP has been received and reload files */
 
722
void winbind_check_sighup(void)
 
723
{
 
724
        if (do_sighup) {
 
725
 
 
726
                DEBUG(3, ("got SIGHUP\n"));
 
727
 
 
728
                msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
 
729
                do_sighup = False;
 
730
        }
 
731
}
 
732
 
 
733
/* check if TERM has been received */
 
734
void winbind_check_sigterm(void)
 
735
{
 
736
        if (do_sigterm)
 
737
                terminate();
 
738
}
 
739
 
721
740
/* Process incoming clients on listen_sock.  We use a tricky non-blocking,
722
741
   non-forking, non-threaded model which allows us to handle many
723
742
   simultaneous connections while remaining impervious to many denial of
882
901
 
883
902
        /* Check signal handling things */
884
903
 
885
 
        if (do_sigterm)
886
 
                terminate();
887
 
 
888
 
        if (do_sighup) {
889
 
 
890
 
                DEBUG(3, ("got SIGHUP\n"));
891
 
 
892
 
                msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
893
 
                do_sighup = False;
894
 
        }
 
904
        winbind_check_sigterm();
 
905
        winbind_check_sighup();
895
906
 
896
907
        if (do_sigusr2) {
897
908
                print_winbindd_status();