can't join Domain with latest CVS

Osama Abu-Aish osabmt00 at fht-esslingen.de
Fri Dec 10 00:58:38 GMT 1999


Hello everyone out there,

The current CVS (4 hours old) causes me much trouble:

1) smbpasswd -j DOMAIN_TO_JOIN gives me:

error connecting to X.X.X.X:445 (Connection refused)
error connecting to X.X.X.X:445 (Connection refused)
Joining Domain as Workstation
get_trust_account_password: Failed to seek to start of file. Error was Bad file descriptor.
change_trust_account_password: unable to read the machine account password for domain 
DOMAIN_TO_JOIN
Unable to join domain DOMAIN_TO_JOIN

After a short look into the sources I think that the .mac-FIle isn't locked, so it can't be
fseek'ed.

To avoid the message I added the following lines to 
clienttrust.c/change_trust_account_password,line 90:

if(!trust_password_lock( domain, global_myname, True))
{
    DEBUG(0,("change_trust_account_password: unable to open the trust account password file  
                    for trust %s in domain %s.\n", global_myname, domain ));
    return False;
}
......READING_AND_SETTING_OF_NEW_PASSWORD.........
trust_password_unlock();

which made the message disappear.


2) smbpasswd -j DOMAIN_TO_JOIN results in the following message:

error connecting to X.X.X.X:445 (Connection refused)
error connecting to X.X.X.X:445 (Connection refused)
Joining Domain as Workstation
Domain:DOMAIN_TO_JOIN
cli_nt_setup_creds: auth2 challenge failed.  status: c0000022
1999/12/10 01:37:40 : change_trust_account_password: Failed to change password for domain 
DOMAIN_TO_JOIN.
Unable to join domain DOMAIN_TO_JOIN.


3) when connecting from a NTWKS to the Samba-Server it logs the following:

[1999/12/10 01:39:09, 1] lib/util_sock.c:open_socket_out(749)
  error connecting to X.X.X.X:445 (Connection refused)
[1999/12/10 01:39:10, 1] lib/util_sock.c:open_socket_out(749)
  error connecting to X.X.X.X:445 (Connection refused)
[1999/12/10 01:39:10, 0] lib/util_str.c:safe_strcpy(765)
  ERROR: string overflow by 10 in safe_strcpy [uì2£+^
aƒÃ ©[¡:È»(]                                         öÛcÙ
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
looks not good... #-}

[1999/12/10 01:39:10, 1] rpc_client/cli_login.c:cli_nt_setup_creds(82)
  cli_nt_setup_creds: auth2 challenge failed.  status: c0000022
[1999/12/10 01:39:10, 0] smbd/password.c:domain_client_validate(711)
  domain_client_validate: unable to setup the PDC credentials to machine                \\MY_PDC.
[1999/12/10 01:39:10, 0] smbd/reply.c:reply_sesssetup_and_X(759)
  NT Password did not match ! Defaulting to Lanman
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I have entered the correct password.

What is wrong there? What should I Change? What am I missing?

Thanks for any response,

Yours Osama

---
University of technics Esslingen / Germany
Inst. f. mechatronics / microelectronics


More information about the samba-ntdom mailing list