[Samba] error log: couldn't find service (user) --- and log userstatistics

2003-06-16 Thread Jose Antonio Gómez Muñoz

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.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] load password users in Ldap

2003-05-30 Thread Jose Antonio Gómez Muñoz
Hello,

I'm new in Samba Ldap. I use samba-2.2.3a and openldap2-2.1.4-46.
I am going to load in Ldap a lot of users in a ldif file as it is shown below. But I 
don't know how to put samba password. I can use:

smbpasswd juan1

and then the fields lmPassword and ntPassword are changed. In this way, after load all 
users in Ldap I would need a script to do a smbpasswd for each user automatically, 
without prompt me for each one. ¿ How can I do to avoid prompting me ?

I think it is better to put the real password in lmPassword and ntPassword but it 
doesn't work. Which is the easiest method to put the samba password in the load 
process?

ldif file
==

dn: uid=juan1, ou=smb, dc=Colegio Oficial de Arquitectos de Madrid, dc=es
cn: juan1
objectClass: sambaAccount
objectClass: posixAccount
uid: juan1
pwdLastSet: 0
logonTime: 0
logoffTime: 2147483647
kickoffTime: 2147483647
pwdCanChange: 0
pwdMustChange: 2147483647
userPassword: hola
lmPassword: 37D5B8AB8069F5B8AB5B8AB8B8AB8069
ntPassword: 5B8AB8B8AB85B8A5B8AB8B8AB82BE319
acctFlags: [UX ]
uidNumber: 1020
gidNumber: 1001
loginShell: /bin/bash
rid: 3040
primaryGroupID: 513
homeDirectory: /dev/null




/etc/samba/smb.conf

ldap server = localhost
ldap port = 389 
ldap suffix = ou=smb, dc=Colegio Oficial de Arquitectos de Madrid, dc=es
ldap admin dn = cn=Manager, dc=Colegio Oficial de Arquitectos de Madrid, dc=es


Thanks very much.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba