Jose Antonio Gómez Muñoz
2003-Jun-16 08:27 UTC
[Samba] error log: couldn't find service (user) --- and log user statistics
Hello, I'm new in Samba. I use: Suse 8.0 samba-2.2.7a-0 working as PDC openldap2-2.1.4-46 squid-2.4 I don't know the error in my log: [2003/06/16 09:32:54, 0] smbd/service.c:make_connection(252) publico1 (192.168.200.198) couldn't find service col760 col760 is the user that logs in a windows 2000 profesional. Now I have log level 1 in my smb.conf and this is the error: [2003/06/16 09:32:49, 1] lib/util_sock.c:get_socket_name(977) Gethostbyaddr failed for 192.168.200.198 [2003/06/16 09:32:50, 1] smbd/service.c:make_connection(636) publico1 (192.168.200.198) connect to service profiles as user col760 (uid=2003, gid=1001) [2003/06/16 09:32:53, 1] smbd/service.c:make_connection(636) publico1 (192.168.200.198) connect to service netlogon as user col760 (uid=2003, gid=1001) [2003/06/16 09:32:54, 0] smbd/service.c:make_connection(252) publico1 (192.168.200.198) couldn't find service col760 [2003/06/16 09:32:54, 0] smbd/service.c:make_connection(252) publico1 (192.168.200.198) couldn't find service col760 [2003/06/16 09:32:55, 1] smbd/service.c:make_connection(636) publico1 (192.168.200.198) connect to service home as user col760 (uid=2003, gid=1001) (pid [2003/06/16 09:32:55, 1] smbd/service.c:make_connection(636) publico1 (192.168.200.198) connect to service home as user col760 (uid=2003, gid=1001) (pid [2003/06/16 09:33:55, 1] smbd/service.c:close_cnum(677) publico1 (192.168.200.198) closed connection to service home [2003/06/16 09:33:55, 1] smbd/service.c:close_cnum(677) publico1 (192.168.200.198) closed connection to service home [2003/06/16 09:33:55, 1] smbd/service.c:close_cnum(677) publico1 (192.168.200.198) closed connection to service netlogon [2003/06/16 09:33:55, 1] smbd/service.c:close_cnum(677) publico1 (192.168.200.198) closed connection to service profiles This is a tipical entry in my ldap: dn: uid=COL760,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es uid: COL760 cn: name sn: surname objectClass: sambaAccount objectClass: posixAccount objectClass: inetorgperson pwdLastSet: 0 logonTime: 0 logoffTime: 2147483647 kickoffTime: 2147483647 pwdCanChange: 0 pwdMustChange: 2147483647 lmPassword: 9FD7543E9C9FD73D8B0EA5A7DF135B03 ntPassword: BE6EB6B9E83EF2E7039ACC8ED2A3EB62 acctFlags: [UX ] gidNumber: 1001 primaryGroupID: 513 loginShell: /dev/null homeDirectory: /vhome/cuentas/col760 uidNumber: 2003 rid: 5006 I'm not sure about the next parameters, if they are right. All my domain users has: gidNumber: 1001 primaryGroupID: 513 uidNumber: 2000 rid: 5000 1001 and 513 are fixed for all my users, and uidNumber is increased for each user, and rid is uidNumber * 2 +1000 One last thing is about user connection statistic program for logs (it would be good html output). I use samba and squid. For squid is good calamaris, but I use transparent proxy, and I need to access to log Samba too, because squid doesn't log the user, only log the IP. Thanks very much.