[samba-jp:18945] Samba+OpenLDAPで(時折)移動プロファイル保存不可。

吉原 隆夫 takao.yoshihara @ nifty.com
2006年 10月 10日 (火) 01:09:06 JST


日本Sambaユーザー会の皆様

お世話になります。吉原と申します。

Fedora Core 4上でSamba+OpenLDAP環境を構築し、移動プロファイルを有効にして使っているのですが、クライアントマシンのWindowsXP SP2から稀に移動プロファイルの保存が出来ないことがあり
ます。

各種アプリのバージョンは下記の通りですが、何か考えられる原因等御座いますでしょうか?念の為、smb.confの内容と/var/log/samba下の該当すると思われるログの内容を記載致しますので、何か対策が御座いましたら宜しくご教授下さい。

[root @ server samba]# uname -r -m
2.6.17-1.2142_FC4 i686

[root @ server samba]# rpm -qa | grep samba
samba-client-3.0.23a-1.fc4.1
samba-3.0.23a-1.fc4.1
samba-swat-3.0.23a-1.fc4.1
samba-common-3.0.23a-1.fc4.1
system-config-samba-1.2.31-1

[root @ server samba]# rpm -qa | grep openldap
openldap-servers-sql-2.2.29-1.FC4
openldap-servers-2.2.29-1.FC4
openldap-debuginfo-2.2.29-1.FC4
openldap-2.2.29-1.FC4
openldap-devel-2.2.29-1.FC4
openldap-clients-2.2.29-1.FC4

[root @ server samba]# tail -100 log.vaio-vgc-rc72ps
[2006/10/06 00:35:59, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 00:35:59, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 00:36:20, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 00:36:20, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 00:40:09, 0] lib/smbldap.c:smbldap_open(1009)
  smbldap_open: cannot access LDAP when not root..
[2006/10/06 00:40:21, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 00:40:21, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 00:42:55, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 00:42:55, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 00:49:08, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 00:49:08, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 01:02:08, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 01:02:08, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 01:06:10, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = ホストへの経路がありません
[2006/10/06 20:58:08, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 20:58:08, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 21:04:20, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 21:04:20, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 21:19:21, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 21:19:21, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 21:38:56, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 21:38:56, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 21:38:56, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/06 21:38:56, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 21:38:56, 0] lib/smbldap.c:smbldap_open(1009)
  smbldap_open: cannot access LDAP when not root..
[2006/10/06 22:00:10, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 22:00:10, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 22:00:21, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 22:00:21, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 22:14:34, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = 接続が相手からリセットされました
[2006/10/06 22:29:58, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/06 22:29:58, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/06 22:43:13, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 22:43:13, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 22:43:50, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 22:43:50, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/06 22:54:31, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = ホストへの経路がありません
[2006/10/06 22:54:54, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = ホストへの経路がありません
[2006/10/09 22:34:27, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/09 22:34:27, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/09 22:56:40, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 0.0.0.0. Error 接続が相手からリセットされました
[2006/10/09 22:56:40, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/09 23:09:56, 0] lib/util_sock.c:write_data(562)
  write_data: write failure in writing to client 192.168.1.50. Error 接続が相手からリセットされました
[2006/10/09 23:09:56, 0] lib/util_sock.c:send_smb(769)
  Error writing 4 bytes to client. -1. (接続が相手からリセットされました)
[2006/10/09 23:23:57, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/09 23:23:57, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/09 23:34:54, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = ホストへの経路がありません
[2006/10/10 00:42:43, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/10 00:42:43, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - 接続を拒否されました
[2006/10/10 00:52:32, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.1.50. Error = 接続がタイムアウトしました

【smb.confの内容】

# Global parameters
[global]
        unix charset = UTF-8
        dos charset = CP932
        display charset = UTF-8
        workgroup = YOSHIHARAS
        netbios name = SERVER
        admin users = Administrator
        guest account = Guest
        security = USER
        enable privileges = yes
        interfaces = 127.0.0.1 eth0
        bind interfaces only = yes
        #username map = /etc/samba/smbusers
        server string = Samba Server %v
        #security = ads
        encrypt passwords = Yes
        #min passwd length = 3
        #pam password change = no
        #obey pam restrictions = No
        ldap passwd sync = Yes
        unix password sync = Yes
        passwd program = /usr/local/sbin/smbldap-passwd -u %u
        passwd chat = "Changing password for*\nNew password*" %n\n "*Retype
new password*" %n\n"
        #passwd chat debug = Yes
        log level = 0
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 100000
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        mangling method = hash2

        logon script = %U.cmd
        logon drive = Z:
        logon home = //SERVER/%U/profiles
        logon path = //SERVER/profiles/%U

        domain logons = Yes
        domain master = Yes
        os level = 64
        preferred master = Yes
        wins support = yes
        template shell = /bin/false
        winbind use default domain = no
        passdb backend = ldapsam:ldap://localhost/
        ldap admin dn = cn=Manager,dc=takao,dc=dyndns,dc=org
        #ldap admin dn = cn=samba,ou=DSA,dc=idealx,dc=org
        ldap suffix = dc=takao,dc=dyndns,dc=org
        ldap group suffix = ou=Group
        ldap user suffix = ou=People
        ldap machine suffix = ou=Computers
        #ldap idmap suffix = ou=Idmap
        add user script = /usr/local/sbin/smbldap-useradd -m "%u"
        #ldap delete dn = Yes
        delete user script = /usr/local/sbin/smbldap-userdel -r "%u"
        add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
        add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
        #delete group script = /usr/local/sbin/smbldap-groupdel "%g"
        add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u"
"%g"
        delete user from group script = /usr/local/sbin/smbldap-groupmod -x
"%u" "%g"
        set primary group script = /usr/local/sbin/smbldap-usermod -g '%g'
'%u'

        # printers configuration
        printer admin = @"Print Operators"
        load printers = Yes
        create mask = 0640
        directory mask = 0750
        #force create mode = 0640
        #force directory mode = 0750
        nt acl support = No
        printing = cups
        printcap name = cups
        deadtime = 10
        #guest account = nobody
        #map to guest = Bad User
        dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
        show add printer wizard = yes
        ; to maintain capital letters in shortcuts in any of the profile
folders:
        preserve case = yes
        short preserve case = yes
        case sensitive = no

        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
        vfs objects = recycle
        recycle:repository = .recycle
        recycle:keeptree = no
        recycle:versions = yes
        recycle:touch = no
        recycle:maxsize = 0
        recycle:exclude = *.tmp ~$*

[netlogon]
        path = /home/netlogon/
        browseable = No
        read only = yes

[profiles]
        comment = User profiles directory
        path = /profiles
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No
        profile acls = Yes

[printers]
        comment = Network Printers
        printer admin = @"Print Operators"
        guest ok = yes
        printable = yes
        path = /home/spool/
        browseable = No
        read only  = Yes
        printable = Yes
        print command = /usr/bin/lpr -P%p -r %s
        lpq command = /usr/bin/lpq -P%p
        lprm command = /usr/bin/lprm -P%p %j
        # print command = /usr/bin/lpr -U%U@%M -P%p -r %s
        # lpq command = /usr/bin/lpq -U%U@%M -P%p
        # lprm command = /usr/bin/lprm -U%U@%M -P%p %j
        # lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
        # lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
        # queuepause command = /usr/sbin/lpc -U%U@%M stop %p
        # queueresume command = /usr/sbin/lpc -U%U@%M start %p

[print$]
        path = /home/printers
        guest ok = No
        browseable = Yes
        read only = Yes
        valid users = @"Print Operators"
        write list = @"Print Operators"
        create mask = 0664
        directory mask = 0775

[public]
        comment = Public Stuff
        path = /home/samba
        writable = yes
        vfs objects = recycle
        recycle:repository = .recycle
        recycle:keeptree = no
        recycle:versions = yes
        recycle:touch = no
        recycle:maxsize = 0
        recycle:exclude = *.tmp ~$*

以上、宜しくお願い致します。

吉原 隆夫
takao.yoshihara @ nifty.com




samba-jp メーリングリストの案内