Re: [Samba] Samba:connection only works one time

2003-02-17 Thread Jon Niehof
using samba 2.2.5; security=server
connecting as user1 (user logged in on PC) works (12:28:55),
disconnecting and connecting as another user2 (not the user logged in on
PC) works too (12:30:22), but disconnecting and connecting again as
user1 (user logged in on PC) fails (12:34:29) as well as user2
(12:38:19).
It seems it works only once and never again after one time logged in as
user2 ?


My experience (and, based on feedback from the list, others' 
experience) is that security=server Just Doesn't Work in any 
reliable fashion. It's just a really, really nasty hack. Use 
security=domain if at all possible. Otherwise you'll have to 
figure out some other approach.

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


[Samba] Samba:connection only works one time

2003-02-17 Thread Hans Graudenz
Hi all,

using samba 2.2.5; security=server
connecting as user1 (user logged in on PC) works (12:28:55),
disconnecting and connecting as another user2 (not the user logged in on
PC) works too (12:30:22), but disconnecting and connecting again as
user1 (user logged in on PC) fails (12:34:29) as well as user2
(12:38:19).
It seems it works only once and never again after one time logged in as
user2 ?

The log file is like following

[2003/02/17 12:28:55, 1] smbd/service.c:make_connection(651)
  khs (...144) connect to service home as user user1 (uid=2003, gid=100)
(pid 27667)
[2003/02/17 12:29:23, 1] smbd/service.c:close_cnum(692)
  khs (...144) closed connection to service home

[2003/02/17 12:30:22, 1] smbd/password.c:server_validate(1173)
  password server AD1 rejected the password
[2003/02/17 12:30:22, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:30:22, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user2' in passdb.
[2003/02/17 12:30:22, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:30:22, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user2' in passdb.
[2003/02/17 12:30:22, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'user2': authentication failed
[2003/02/17 12:31:36, 1] smbd/service.c:make_connection(651)
  khs (...144) connect to service home as user user2 (uid=2910, gid=100)
(pid 27667)
[2003/02/17 12:32:14, 1] smbd/service.c:close_cnum(692)
  khs (...144) closed connection to service home

[2003/02/17 12:34:29, 0] lib/util_sock.c:write_socket_data(499)
  write_socket_data: write failure. Error = Broken pipe
[2003/02/17 12:34:29, 0] lib/util_sock.c:write_socket(524)
  write_socket: Error writing 176 bytes to socket 22: ERRNO = Broken
pipe
[2003/02/17 12:34:29, 0] libsmb/clientgen.c:cli_send_smb(96)
  Error writing 176 bytes to client. -1
[2003/02/17 12:34:29, 1] smbd/password.c:server_validate(1173)
  password server AD1 rejected the password
[2003/02/17 12:34:29, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:34:29, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:34:29, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:34:29, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:34:29, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'user1': authentication failed
[2003/02/17 12:35:19, 1] smbd/password.c:server_validate(1173)
  password server AD1 rejected the password
[2003/02/17 12:35:19, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:35:19, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:35:19, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:35:19, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:35:19, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'user1': authentication failed
[2003/02/17 12:36:21, 1] smbd/password.c:server_validate(1173)
  password server AD1 rejected the password
[2003/02/17 12:36:21, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:36:21, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:36:21, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:36:21, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:36:21, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'user1': authentication failed
[2003/02/17 12:36:54, 1] smbd/password.c:server_validate(1173)
  password server AD1 rejected the password
[2003/02/17 12:36:54, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:36:54, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:36:54, 0]
passdb/pdb_nisplus.c:make_sam_from_nisresult(460)
  NIS+ lookup failure: Database for table does not exist
[2003/02/17 12:36:54, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'user1' in passdb.
[2003/02/17 12:36:54, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'user1': authentication failed
[2003/02/17 12:37:54, 0] lib/util_sock.c:write_socket_data(499)
  write_socket_data: write failure. Error = Bad file number

[2003/02/17 12:38:19, 1] smbd/password.c:server_validate(1099)
  password server  is not connected
[2003/02/17 12:38:19, 0]
passdb/pdb_nisplus.c:make_sa