s3: Remove unused arg "user_sid" from winbindd_store_creds
authorVolker Lendecke <vl@samba.org>
Wed, 8 Sep 2010 23:58:21 +0000 (16:58 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 9 Sep 2010 04:19:23 +0000 (06:19 +0200)
All callers have passed in NULL

source3/winbindd/winbindd_creds.c
source3/winbindd/winbindd_pam.c
source3/winbindd/winbindd_proto.h

index 39968ce46e2b3c36c6d79bdf0b6f5edd19f39313..11dbfed6ba85ea17e920d3458a5c485f4b5ecff3 100644 (file)
@@ -57,8 +57,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
                              TALLOC_CTX *mem_ctx, 
                              const char *user, 
                              const char *pass, 
-                             struct netr_SamInfo3 *info3,
-                             const struct dom_sid *user_sid)
+                             struct netr_SamInfo3 *info3)
 {
        NTSTATUS status;
        uchar nt_pass[NT_HASH_LEN];
@@ -70,10 +69,6 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
                            info3->base.rid);
                info3->base.user_flags |= NETLOGON_CACHED_ACCOUNT;
 
-       } else if (user_sid != NULL) {
-
-               sid_copy(&cred_sid, user_sid);
-
        } else if (user != NULL) {
 
                /* do lookup ourself */
@@ -139,7 +134,7 @@ NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
                                        const char *pass,
                                        struct netr_SamInfo3 *info3)
 {
-       return winbindd_store_creds(domain, mem_ctx, user, pass, info3, NULL);
+       return winbindd_store_creds(domain, mem_ctx, user, pass, info3);
 }
 
 NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
@@ -147,7 +142,7 @@ NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
                                       const char *user,
                                       const char *pass)
 {
-       return winbindd_store_creds(domain, mem_ctx, user, pass, NULL, NULL);
+       return winbindd_store_creds(domain, mem_ctx, user, pass, NULL);
 }
 
 
index 86d9e6d0c388dddd6a8bd11d3f45ee693cfc4fcf..55764178502f810a915ddc2e5fe6bce0374fa4aa 100644 (file)
@@ -1624,7 +1624,7 @@ process_result:
                                                      state->mem_ctx,
                                                      state->request->data.auth.user,
                                                      state->request->data.auth.pass,
-                                                     info3, NULL);
+                                                     info3);
                        }
                }
 
index 9ea2369fc47a11931c6f38ae1fe62abec52c454e..4e21b6558f482440850336e9f2d32b05369ec26c 100644 (file)
@@ -234,8 +234,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
                              TALLOC_CTX *mem_ctx, 
                              const char *user, 
                              const char *pass, 
-                             struct netr_SamInfo3 *info3,
-                             const struct dom_sid *user_sid);
+                             struct netr_SamInfo3 *info3);
 NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
                                        TALLOC_CTX *mem_ctx,
                                        const char *user,