Ignore:
Timestamp:
Mar 12, 2008, 9:08:18 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.28a

Location:
branches/samba-3.0/source/auth
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/auth/auth_domain.c

    r22 r124  
    126126        if (!lp_client_schannel()) {
    127127                /* We need to set up a creds chain on an unauthenticated netlogon pipe. */
    128                 uint32 neg_flags = NETLOGON_NEG_AUTH2_FLAGS;
     128                uint32 neg_flags = NETLOGON_NEG_SELECT_AUTH2_FLAGS;
    129129                uint32 sec_chan_type = 0;
    130130                unsigned char machine_pwd[16];
    131 
    132                 if (!get_trust_pw(domain, machine_pwd, &sec_chan_type)) {
     131                const char *account_name;
     132
     133                if (!get_trust_pw_hash(domain, machine_pwd, &account_name,
     134                                       &sec_chan_type))
     135                {
    133136                        DEBUG(0, ("connect_to_domain_password_server: could not fetch "
    134137                        "trust account password for domain '%s'\n",
     
    144147                                        domain, /* domain */
    145148                                        global_myname(), /* client name */
    146                                         global_myname(), /* machine account name */
     149                                        account_name, /* machine account name */
    147150                                        machine_pwd,
    148151                                        sec_chan_type,
  • branches/samba-3.0/source/auth/auth_ntlmssp.c

    r1 r124  
    188188void auth_ntlmssp_end(AUTH_NTLMSSP_STATE **auth_ntlmssp_state)
    189189{
    190         TALLOC_CTX *mem_ctx = (*auth_ntlmssp_state)->mem_ctx;
     190        TALLOC_CTX *mem_ctx;
     191
     192        if (*auth_ntlmssp_state == NULL) {
     193                return;
     194        }
     195
     196        mem_ctx = (*auth_ntlmssp_state)->mem_ctx;
    191197
    192198        if ((*auth_ntlmssp_state)->ntlmssp_state) {
  • branches/samba-3.0/source/auth/auth_server.c

    r62 r124  
    7272
    7373                if (!grab_server_mutex(desthost)) {
     74                        cli_shutdown(cli);
    7475                        return NULL;
    7576                }
  • branches/samba-3.0/source/auth/auth_util.c

    r108 r124  
    812812        }
    813813        fstr_sprintf( root_name, "%s\\root", get_global_sam_name() );
    814         ret = lookup_name( ctx, root_name, 0, NULL, NULL, &root_sid, &type );
     814        ret = lookup_name( ctx, root_name, LOOKUP_NAME_DOMAIN, NULL, NULL, &root_sid, &type );
    815815        TALLOC_FREE( ctx );
    816816
Note: See TracChangeset for help on using the changeset viewer.