[Samba] Samba PDC - Adding machine to domain

2003-05-30 Thread Gabriel Maffia
Hi:

I am using Samba 2.2.8 with LDAP integration in PDC mode. I succeeded in
adding a machine to my domain, but when I try to log in to the domain I get
the following error:

The system cannot log you on to this domain because the system's computer
account in its primary domain is missing or the password on that account is
incorrect.

I've addded the machine by hand (not with an adduser script) so maybe I am
missing some attribute, or setting the password wrong (I am using a random
password made with mkntpwd -N randompwd, as I know there is no need for a
LANMAN passowrd in a computer account). I have the guest and root accts in
the LDAP directory, and root is in the Domain Administrators group.

Here is a snip of the log (where i think the operation fails to complete)

--snip---
[2003/05/29 13:26:15, 6] rpc_parse/parse_prs.c:prs_debug(60)
  60 smb_io_chal
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_uint8s(675)
  0060 data: 75 5f 7d b4 35 7b 4a b6
[2003/05/29 13:26:15, 6] rpc_parse/parse_prs.c:prs_debug(60)
  68 net_io_neg_flags
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_uint32(588)
  0068 neg_flags: 6007bfff
[2003/05/29 13:26:15, 4] libsmb/credentials.c:cred_create(91)
  cred_create
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_create(93)
sess_key : 06D02A5E097618A1
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_create(94)
stor_cred: 95279C21F48DB297
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_create(95)
timestamp: 0
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_create(96)
timecred : 95279C21F48DB297
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_create(97)
calc_cred: 69763B2607E027C1
[2003/05/29 13:26:15, 4] libsmb/credentials.c:cred_assert(122)
  cred_assert
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_assert(124)
challenge : 755F7DB4357B4AB6
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_assert(125)
calculated: 69763B2607E027C1
[2003/05/29 13:26:15, 5] libsmb/credentials.c:cred_assert(134)
  credentials check wrong
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_debug(60)
  00 net_io_r_auth_2
[2003/05/29 13:26:15, 6] rpc_parse/parse_prs.c:prs_debug(60)
  00 smb_io_chal
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_uint8s(675)
   data: 40 c7 1f 40 00 00 00 00
[2003/05/29 13:26:15, 6] rpc_parse/parse_prs.c:prs_debug(60)
  08 net_io_neg_flags
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_uint32(588)
  0008 neg_flags: 01ff
[2003/05/29 13:26:15, 5] rpc_parse/parse_prs.c:prs_ntstatus(617)
  000c status: NT_STATUS_ACCESS_DENIED
--snip---

Thanks a lot in advance.

Gabriel.

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


[Samba] Samba + LDAP problem

2003-05-29 Thread Gabriel Maffia
Hi:

I'm trying to integrate Samba and LDAP (Samba working as a PDC). While
trying to add a computer to the domain, this is what I get (This is not a
production server, so there is no problem with password revealing):

[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(435)
  get_single_attribute: [userWorkstations] = [does not exist]
[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(441)
  get_single_attribute: [rid] = [3000]
[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(441)
  get_single_attribute: [primaryGroupID] = [3001]
[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(441)
  get_single_attribute: [lmPassword] = [E52CAC67419A9A220CEC7D55CCC350DD]
[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(441)
  get_single_attribute: [ntPassword] = [489DC27E7F41B2F1482B8B72B9F593D7]
[2003/05/28 18:59:00, 2] passdb/pdb_ldap.c:get_single_attribute(441)
  get_single_attribute: [acctFlags] = [[UX ]]
[2003/05/28 18:59:00, 4] smbd/password.c:smb_password_ok(475)
  smb_password_ok: Checking SMB password for user test
[2003/05/28 18:59:00, 5] smbd/password.c:smb_password_ok(489)
  smb_password_ok: challenge received
[2003/05/28 18:59:00, 4] smbd/password.c:smb_password_ok(499)
  smb_password_ok: Checking NT MD4 password
[2003/05/28 18:59:00, 4] smbd/password.c:smb_password_ok(504)
  smb_password_ok: NT MD4 password check failed
[2003/05/28 18:59:00, 4] smbd/password.c:smb_password_ok(518)
  smb_password_ok: Checking LM password
[2003/05/28 18:59:00, 4] smbd/password.c:smb_password_ok(523)
  smb_password_ok: LM password check failed
[2003/05/28 18:59:00, 2] smbd/password.c:pass_check_smb(575)
  pass_check_smb failed - invalid password for user [test]
[2003/05/28 18:59:00, 1] smbd/reply.c:reply_sesssetup_and_X(1023)
  Rejecting user 'test': authentication failed
[2003/05/28 18:59:00, 3] smbd/error.c:error_packet(109)
  error packet at smbd/reply.c(1025) cmd=115 (SMBsesssetupX)
NT_STATUS_LOGON_FAILURE
[2003/05/28 18:59:00, 5] lib/util.c:show_msg(268)

I guess the attributes are OK. The passwords where generated with mkntpwd
(mkntpwd -L password -N password)


Thanks a lot!

Gabriel.

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