r23779: Change from v2 or later to v3 or later.
[samba.git] / source3 / nsswitch / winbindd_creds.c
index 414dd24af9ec75171d235c2b44d2a99923f93567..e303698bd124b5debf5dc489b505e6830767a8e4 100644 (file)
@@ -7,7 +7,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -31,12 +31,13 @@ NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
                            TALLOC_CTX *mem_ctx,
                            const DOM_SID *sid,
                            NET_USER_INFO_3 **info3,
-                           const uint8 *cached_nt_pass[NT_HASH_LEN])
+                           const uint8 *cached_nt_pass[NT_HASH_LEN],
+                           const uint8 *cred_salt[NT_HASH_LEN])
 {
        NET_USER_INFO_3 *info;
        NTSTATUS status;
 
-       status = wcache_get_creds(domain, mem_ctx, sid, cached_nt_pass);
+       status = wcache_get_creds(domain, mem_ctx, sid, cached_nt_pass, cred_salt);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }
@@ -79,7 +80,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
        
                /* do lookup ourself */
 
-               enum SID_NAME_USE type;
+               enum lsa_SidType type;
                
                if (!lookup_cached_name(mem_ctx,
                                        domain->name,
@@ -118,7 +119,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
                E_md4hash(pass, nt_pass);
 
 #if DEBUG_PASSWORD
-               dump_data(100, (const char *)nt_pass, NT_HASH_LEN);
+               dump_data(100, nt_pass, NT_HASH_LEN);
 #endif
 
                status = wcache_save_creds(domain, mem_ctx, &cred_sid, nt_pass);